Index.vue 917 B

123456789101112131415161718192021222324252627
  1. <template>
  2. <app-view>
  3. <template #header>
  4. <app-navbar title="个人信息" />
  5. </template>
  6. <CellGroup>
  7. <Cell title="发票信息" :to="{ name: 'mine-invoice' }" is-link />
  8. <Cell title="收货地址" :to="{ name: 'mine-address' }" is-link />
  9. <Cell title="微信" :to="{ name: 'mine-wechat' }" :value="decryptAES(userStore.userInfo.wechat ?? '')" is-link />
  10. <Cell title="邮箱" :to="{ name: 'mine-email' }" :value="decryptAES(userStore.userInfo.email ?? '')" is-link />
  11. </CellGroup>
  12. </app-view>
  13. </template>
  14. <script lang="ts" setup>
  15. import { Cell, CellGroup } from 'vant'
  16. import { useUserStore } from '@/stores'
  17. import { decryptAES } from '@/services/websocket/package/crypto'
  18. import { onActivated } from 'vue';
  19. // userStore
  20. const userStore = useUserStore()
  21. onActivated(() => {
  22. userStore.getUserData()
  23. })
  24. </script>