实名认证0.9

This commit is contained in:
WindowBird 2025-09-09 16:31:55 +08:00
parent 8b925686f6
commit 2f200f48a7
3 changed files with 32 additions and 27 deletions

View File

@ -112,17 +112,16 @@
} }
}, },
{ {
"path" : "pages/test/test", "path": "pages/test/test",
"style" : "style": {
{ "navigationBarTitleText": "test"
"navigationBarTitleText" : "test" }
}
}, },
{ {
"path" : "pages/realNameAuthentication/realNameAuthentication", "path": "pages/realNameAuthentication/realNameAuthentication",
"style" : { "style": {
"navigationStyle": "custom" "navigationStyle": "custom"
} }
} }
], ],
"subPackages": [ "subPackages": [
@ -151,18 +150,10 @@
} }
}, },
{ {
"path" : "facialRecognition/facialRecognition", "path": "facialRecognition/facialRecognition",
"style" : "style": {
{ "navigationBarTitleText": ""
"navigationBarTitleText" : "" }
}
},
{
"path" : "web-view/web-view",
"style" :
{
"navigationBarTitleText" : ""
}
} }
] ]
} }

View File

@ -23,7 +23,10 @@
<view v-else style="padding: 30rpx"></view> <view v-else style="padding: 30rpx"></view>
</view> </view>
<view class="user-details"> <view class="user-details">
<text class="user-name" @click="goLogin()">{{ userInfo.nickName || '点击登录' }}</text> <view class="user-name">
<text @click="goLogin()">{{ userInfo.nickName || '点击登录' }}</text>
<view v-if="userInfo.isReal" class="tag">已实名</view>
</view>
<view class="settings-icon" @click="goToSettings"> <view class="settings-icon" @click="goToSettings">
<image :src="commonEnum.SET" class="settings-img" mode="aspectFit" /> <image :src="commonEnum.SET" class="settings-img" mode="aspectFit" />
@ -539,11 +542,21 @@ export default {
align-items: flex-start; align-items: flex-start;
.user-name { .user-name {
display: block; display: flex;
font-size: 32rpx; font-size: 32rpx;
font-weight: bold; font-weight: bold;
color: #3d3d3d; color: #3d3d3d;
margin-bottom: 10rpx; margin-bottom: 10rpx;
.tag {
margin-left: 30rpx;
color: #fff;
background: #f15a04;
border-radius: 10rpx;
font-size: 28rpx;
padding: 5rpx;
}
} }
.user-id { .user-id {

View File

@ -2,7 +2,7 @@
<view class="page"> <view class="page">
<custom-nav-bar :fill="false" :show-back="true" background-color="transparent" title="" /> <custom-nav-bar :fill="false" :show-back="true" background-color="transparent" title="" />
<image class="bj" mode="" src="https://api.ccttiot.com/image-1757389708427.png"></image> <image class="bj" mode="" src="https://api.ccttiot.com/image-1757389708427.png"></image>
<view v-if="isReal !== true" class="sfxx"> <view v-if="!isReal" class="sfxx">
<view class="tit"> 请输入您的有效身份信息</view> <view class="tit"> 请输入您的有效身份信息</view>
<view class="name"> 姓名 <input v-model="name" placeholder="请填写姓名" type="text" /></view> <view class="name"> 姓名 <input v-model="name" placeholder="请填写姓名" type="text" /></view>
<view class="name"> <view class="name">
@ -24,7 +24,7 @@
您当前已完成实名认证 您当前已完成实名认证
</view> </view>
</view> </view>
<view v-if="isReal !== true" class="anniu" @click="btnshiming"> <view v-if="!isReal" class="anniu" @click="btnshiming">
<!-- <text>进入人脸识别</text> --> <!-- <text>进入人脸识别</text> -->
<text>提交</text> <text>提交</text>
</view> </view>
@ -40,12 +40,13 @@ import {
export default { export default {
data() { data() {
return { return {
isReal: false,
bgc: { bgc: {
backgroundColor: '', backgroundColor: '',
}, },
name: '', name: '',
zfzh: '', zfzh: '',
isReal: false,
backData: null, backData: null,
smflag: true, smflag: true,
} }
@ -53,7 +54,7 @@ export default {
onLoad(option) { onLoad(option) {
if (option.isReal) { if (option.isReal) {
console.log('用户实名123', option.isReal) console.log('用户实名123', option.isReal)
this.isReal = option.isReal this.isReal = true
console.log('用户实名1', this.isReal) console.log('用户实名1', this.isReal)
} }
}, },