1
jhzh
2025-09-18 92ca7dfd2b7dc282fbb1846891b11ff6d471045d
src/views/my/index.vue
@@ -2,7 +2,7 @@
  <section class="my-index">
    <fx-header :title="$t('my')">
      <template v-slot:right>
        <van-icon name="service-o" size="24" @click="$router.push('/customerService')"></van-icon>
        <!-- <van-icon name="service-o" size="24" @click="$router.push('/customerService')"></van-icon> -->
      </template>
    </fx-header>
@@ -107,17 +107,18 @@
<script setup>
import { reactive, onMounted, ref, computed } from 'vue';
import { useRouter } from 'vue-router';
import { _getIdentify, _getKycHighLevel, _logOut } from "@/service/user.api.js";
import { _getIdentify, _getKycHighLevel, _logOut,_customer } from "@/service/user.api.js";
import { useUserStore } from '@/store/user';
import { useI18n } from "vue-i18n";
import useClipboard from "vue-clipboard3";
import { showToast } from "vant";
import { getStorage, setStorage, getBrowserLang } from '@/utils/index'
import addBankIcon from '@/assets/image/userCenter/addBank.png'
import kycHighStatusIcon from '@/assets/image/userCenter/kycHighStatus.png'
import store from '@/store/store'
const { t } = useI18n()
const { toClipboard } = useClipboard();
const customer_service_url = ref('')
const router = useRouter()
const userStore = useUserStore()
const status = ref(null)
@@ -143,13 +144,34 @@
  ]
})
const onRoute = (path) => {
  console.log(path)
  router.push(path)
  if(path=='/customerService'){
     // if(customer_service_url.value){
       //  window.open(customer_service_url.value)
     // }else{
       //  router.push(path)
     // }
     var path = ''
     var lang = getStorage('lang')
     if(!lang){
        path = 'https://line.me/ti/p/KVk2TPuXWB'
        //日语客服
     }else if(lang=='en'){
        path = 'https://t.me/ME_COIN_USA'
        //英语客服
     }else if(lang == 'CN'){
        path = 'https://line.me/ti/p/rZ6rrD_VTS'
        //中文客服
     }
      window.open(path)
  }else{
     router.push(path)
  }
}
onMounted(() => {
  if (userStore.userInfo && userStore.userInfo.token) {
    getIdentify()
    getKycHighLevel()
   Customer()
  }
})
const cellList = computed(() => {
@@ -170,7 +192,7 @@
          { icon: new URL('../../assets/image/assets-center/AdvancedCertification.png', import.meta.url), title: t('高级认证'), path: '/advancedCtf', show: true },
          // { icon: 'todo-list-o', title: t('账变记录'), path: '/cryptos/accountChange' },
          { icon: new URL('../../assets/image/assets-center/valuation.png', import.meta.url), title: t('计价方式'), path: '/cryptos/exchangeRate' },
          { icon: new URL('../../assets/image/assets-center/AddPaymentMethod.png', import.meta.url), title: t('AddPaymentMethod'), path: '/payMentMethod/list' },
          // { icon: new URL('../../assets/image/assets-center/AddPaymentMethod.png', import.meta.url), title: t('AddPaymentMethod'), path: '/payMentMethod/list' },
          { icon: new URL('../../assets/image/assets-center/help.png', import.meta.url), title: t('帮助中心'), path: '/helpCenter' },
        ]
      }
@@ -195,6 +217,15 @@
  }
})
const Customer = () => {
  _customer({
    token: userStore.userInfo.token,
   customer_service_url:'code'
  }).then((res) => {
   customer_service_url.value = res.customer_service_url
  })
}
const loginOut = () => {
  _logOut({
    token: userStore.userInfo.token