<template>
  <div class="app-container">
    <el-tabs v-model="activeName" type="border-card" @tab-click="handleClick">
      <el-tab-pane label="钱包汇总" name="wallet">
        <adapay-member :merchantId="merchantId"></adapay-member>
        <wallet-summary :merchantId="merchantId"></wallet-summary>
      </el-tab-pane>
      <el-tab-pane label="营收报表" name="revenue">
        <revenue :merchantId="merchantId"></revenue>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import adapayMember from "./components/adapayMember.vue";
import Revenue from "./components/revenue.vue";
import WalletSummary from "./components/walletSummary.vue";
export default {
  components: { adapayMember, Revenue, WalletSummary },
  data() {
    return {
      activeName: "wallet",
      merchantId: this.$route.params.id,
    };
  },
  methods: {
    handleClick(tab, event) {
      console.log(tab, event);
    },
  },
};
</script>

<style></style>
