<template>
  <div>
    <el-card shadow="always" :body-style="{ padding: '20px' }">
      <el-tabs v-model="activeName" class="demo-tabs" @tab-change="handChange">
        <el-tab-pane label="收款账户信息" name="payment">
          <paymentInfo v-if="activeName == 'payment'"></paymentInfo>
        </el-tab-pane>
        <el-tab-pane label="合作信息" v-action="'jiesuan.BankAccount.hezuoInfo'" name="cooperate">
          <cooperate v-if="activeName == 'cooperate'"></cooperate>
        </el-tab-pane>
      </el-tabs>
    </el-card>
  </div>
</template>

<script lang="ts" setup>
import { useRouter, useRoute } from 'vue-router'
import type { TabsPaneContext } from 'element-plus'
import paymentInfo from "./tabs/paymentInfo/index.vue"
import cooperate from "./tabs/cooperate/index.vue"
const router = useRouter()
const route = useRoute()
const handChange = (tab: TabsPaneContext, event: Event) => {
  activeName.value = tab
}
const activeName = ref('payment')
onMounted(() => {
  activeName.value = route.query.tab || 'payment'
});
</script>

<style scoped lang="scss"></style>
