1
jhzh
2025-08-12 e88c67ddf91ce593785f565912837c9a3ffe3930
src/views/my/index.vue
@@ -1,5 +1,5 @@
<template>
  <section class="my-index">
  <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>
@@ -21,7 +21,7 @@
      <div class="mt-4 flex items-start" v-else>
        <img class="w-24 h-24" src="@/assets/image/avatar.png" alt="avatar" />
        <div class="ml-5 pt-1 flex flex-col justify-center">
          <div class="font-bold text-lg name">{{ userStore.userInfo && userStore.userInfo.username }}</div>
          <div class="font-bold text-lg name" style="width: 200px;overflow-wrap: break-word;">{{ userStore.userInfo && userStore.userInfo.username }}</div>
          <div class="text-sm text-gray-400 mt-5 flex items-center id-text">
            ID:{{ userStore.userInfo && userStore.userInfo.usercode }}<img class="w-8 h-8 ml-4"
              src="@/assets/image/idcopy.png" alt="id" @click="copy" /></div>
@@ -35,6 +35,7 @@
            <div class="label pl-2 pr-2 ml-3" :class="{ 'green': kycHighStatus == 2 }">
              {{ kycHighStatus == 2 ? $t('高级用户') : $t('普通用户') }}
            </div>
         <div class="pl-2 pr-2 ml-3" style="font-size: 12px;">{{$t('信用分')}} : {{userStore.userInfo.creditScore}}</div>
          </div>
        </div>
      </div>
@@ -144,6 +145,12 @@
})
const onRoute = (path) => {
  console.log(path)
  // if(path=='/login'){
    //  console.log(status.value);
    //  // router.$refs.app.loginButton();
  // }else{
    //  router.push(path)
  // }
  router.push(path)
}
onMounted(() => {
@@ -285,9 +292,11 @@
  }
  .label_item {
    width: 25%;
    font-size: 14px;
    width: 33%;
    font-size: 12px;
   div{
      text-align: center;
   }
    img {
      width: 32%;
      margin-bottom: 3px;