| | |
| | | <div class="mt-15 p-15 rounded-15 bg-#f5f7f9"> |
| | | <div v-for="(item, index) in helpItems" :key="index" class="flex items-center justify-between text-16" |
| | | :class="{ 'mt-15': index > 0 }" @click="onRoute(item.path)"> |
| | | <div v-if="item.button" class="flex items-center" @click="loginOut"> |
| | | <div v-if="item.button" class="flex items-center" @click.stop="loginOut"> |
| | | <img :src="`${item.icon}`" class="w-20 h-20"> |
| | | <div class="ml-10">{{ item.title }}</div> |
| | | </div> |
| | |
| | | import { useUserStore } from '@/store/user'; |
| | | import { useI18n } from "vue-i18n"; |
| | | import useClipboard from "vue-clipboard3"; |
| | | import { showToast } from "vant"; |
| | | import { showConfirmDialog } from 'vant'; |
| | | import addBankIcon from '@/assets/image/userCenter/addBank.png' |
| | | import kycHighStatusIcon from '@/assets/image/userCenter/kycHighStatus.png' |
| | | import store from '@/store/store' |
| | |
| | | |
| | | }) |
| | | const loginOut = () => { |
| | | _logOut({ |
| | | token: userStore.userInfo.token |
| | | }).then(res => { |
| | | userStore.userInfo = {} |
| | | store.state.user.userInfo = {} |
| | | showConfirmDialog({ |
| | | title: `${t('确认退出')}`, |
| | | message: `${t('确定要退出登录吗?')}` |
| | | }).then(() => { |
| | | _logOut({ |
| | | token: userStore.userInfo.token |
| | | }).then(res => { |
| | | userStore.userInfo = {} |
| | | store.state.user.userInfo = {} |
| | | router.push('/login') |
| | | }) |
| | | .catch(err => { |
| | | // showFailToast(`${t('退出失败,请重试')}`) |
| | | }) |
| | | }).catch(() => { |
| | | // 用户取消操作 |
| | | }) |
| | | } |
| | | const getIdentify = () => { |