|
|
@@ -11,10 +11,12 @@
|
|
|
<img class="g-image--avatar" :src="userAvatar" />
|
|
|
</div>
|
|
|
<div class="profile-user__info">
|
|
|
- <div>
|
|
|
- <Tag :type="authStatus ? 'success' : 'primary'">{{ getAuthStatusName(authStatus) }}</Tag>
|
|
|
+ <div class="top" v-if="accountInfo?.accountname">
|
|
|
+ <span>{{ accountInfo.accountname }}</span>
|
|
|
+ <Icon name="checked" color="var(--van-tag-success-color)" v-if="authStatus" />
|
|
|
+ <Icon name="warning" color="var(--van-tag-warning-color)" v-else />
|
|
|
</div>
|
|
|
- <span>{{ loginStore.loginId }}</span>
|
|
|
+ <div class="bottom">{{ loginStore.loginId }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="profile-account">
|
|
|
@@ -122,7 +124,7 @@
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
import { shallowRef, onActivated, computed } from 'vue'
|
|
|
-import { Cell, CellGroup, Button, Tag, showFailToast } from 'vant'
|
|
|
+import { Cell, CellGroup, Button, showFailToast, Icon } from 'vant'
|
|
|
import { fullloading, dialog } from '@/utils/vant'
|
|
|
import { getFileUrl } from '@/filters'
|
|
|
import { useNavigation } from '@/hooks/navigation'
|
|
|
@@ -131,7 +133,7 @@ import { localData } from '@/stores/storage'
|
|
|
import AppIconfont from '@mobile/components/base/iconfont/index.vue'
|
|
|
import { queryBankAccountSign } from '@/services/api/bank'
|
|
|
import { queryUserAccount } from '@/services/api/account'
|
|
|
-import { AuthStatus, getAuthStatusName } from '@/constants/account'
|
|
|
+import { AuthStatus } from '@/constants/account'
|
|
|
import eventBus from '@/services/bus'
|
|
|
import AppRegisterCode from '@mobile/components/modules/register-code/index.vue'
|
|
|
|