|
|
@@ -1,14 +1,12 @@
|
|
|
<template>
|
|
|
<div class="setting">
|
|
|
- <div class="tabs">编辑资料</div>
|
|
|
-
|
|
|
<van-cell-group :border="false">
|
|
|
<van-cell title="头像" is-link>
|
|
|
<template #value>
|
|
|
<van-image
|
|
|
- round
|
|
|
- width="36"
|
|
|
- height="36"
|
|
|
+ radius="4"
|
|
|
+ width="38"
|
|
|
+ height="38"
|
|
|
:src="userInfo.avatar || require('@assets/svgs/img_default_photo.svg')"
|
|
|
fit="cover"
|
|
|
/>
|
|
|
@@ -22,26 +20,7 @@
|
|
|
is-link
|
|
|
:value="userInfo.nickname"
|
|
|
/>
|
|
|
- <van-cell
|
|
|
- title="性别"
|
|
|
- :class="{ not: !userInfo.sex }"
|
|
|
- is-link
|
|
|
- :value="userInfo.sex || '未设置'"
|
|
|
- @click="show = true"
|
|
|
- />
|
|
|
- <van-cell
|
|
|
- title="简介"
|
|
|
- :class="[userInfo.intro ? 'intro' : 'not']"
|
|
|
- @click="$router.push('/changeText?type=intro')"
|
|
|
- is-link
|
|
|
- :value="userInfo.intro || '请添加介绍'"
|
|
|
- />
|
|
|
- <van-cell title="主页背景" class="not" is-link>
|
|
|
- <template #value>
|
|
|
- <span> 更换背景图片</span>
|
|
|
- <van-uploader class="avatar" :after-read="afterRead2" result-type="file" />
|
|
|
- </template>
|
|
|
- </van-cell>
|
|
|
+ <van-cell title="实名认证" @click="goAuth" is-link :value="authStatus" />
|
|
|
<van-cell class="not" title="用户ID" :value="userInfo.id" @click="showConsoleEve" />
|
|
|
<van-cell class="not" v-if="showConsole" title="审核版本" is-link @click="goReview" />
|
|
|
<van-cell class="not" v-if="showConsole" title="测试app" is-link @click="goTest" />
|
|
|
@@ -131,6 +110,17 @@ export default {
|
|
|
},
|
|
|
goTest() {
|
|
|
window.location.href = 'https://test.raex.vip/9th/home';
|
|
|
+ },
|
|
|
+ goAuth() {
|
|
|
+ if (this.authStatus === '认证中' || this.authStatus === '认证失败') {
|
|
|
+ this.$router.push('/waiting');
|
|
|
+ } else if (this.authStatus === '未认证') {
|
|
|
+ if (this.faceAuth) {
|
|
|
+ this.$router.push('/faceAuth');
|
|
|
+ } else {
|
|
|
+ this.$router.push('/verified');
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
@@ -171,7 +161,7 @@ export default {
|
|
|
.van-cell__value {
|
|
|
span {
|
|
|
font-size: 16px;
|
|
|
- color: @text0;
|
|
|
+ color: #ffffff;
|
|
|
line-height: 24px;
|
|
|
}
|
|
|
}
|