index.vue 920 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <div>
  3. <div class="default-width mb-3 pa-3" style="margin: 0 auto;background-color: #fff;">
  4. <v-tabs v-model="tab" align-tabs="start" color="primary" bg-color="#f7f8fa" @update:model-value="null">
  5. <v-tab :value="0">{{ $t('enterprise.account.accountBalances') }}</v-tab>
  6. <v-tab :value="1">{{ $t('resume.goldCoins') }}</v-tab>
  7. </v-tabs>
  8. </div>
  9. <myBalance v-if="tab === 0"></myBalance>
  10. <IntegralPage v-if="tab === 1"></IntegralPage>
  11. </div>
  12. </template>
  13. <script setup>
  14. defineOptions({ name: 'myWallet'})
  15. import myBalance from './myBalance'
  16. import IntegralPage from '@/views/integral/pointsManagement'
  17. import { useUserStore } from '@/store/user'
  18. import { ref } from 'vue'
  19. const tab = ref(0)
  20. const store = useUserStore()
  21. const updateAccountInfo = async () => {
  22. await store.getUserAccountInfo()
  23. }
  24. updateAccountInfo()
  25. </script>
  26. <style scoped lang="scss">
  27. </style>