实名认证页面,优化提交实名认证逻辑,可以在当页面快速提交,不必退出到个人中心页面解锁,添加刷新实名状态按钮
This commit is contained in:
parent
281df0a116
commit
fcea02505e
|
|
@ -24,10 +24,14 @@
|
||||||
您当前已完成实名认证
|
您当前已完成实名认证
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view v-if="!isReal" class="anniu" @click="btnshiming">
|
<view v-if="!isReal" class="anniu" @click="btnshiming">
|
||||||
<!-- <text>进入人脸识别</text> -->
|
<!-- <text>进入人脸识别</text> -->
|
||||||
<text>提交</text>
|
<text>提交</text>
|
||||||
</view>
|
</view>
|
||||||
|
<view v-if="isRefresh" class="refresh" @click="getshuaxin">
|
||||||
|
<text>刷新实名状态</text>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
@ -40,6 +44,7 @@ import {
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
isRefresh: false,
|
||||||
isReal: false,
|
isReal: false,
|
||||||
bgc: {
|
bgc: {
|
||||||
backgroundColor: '',
|
backgroundColor: '',
|
||||||
|
|
@ -64,6 +69,7 @@ export default {
|
||||||
// this.getshuaxin();
|
// this.getshuaxin();
|
||||||
// this.backData = null; // 重置
|
// this.backData = null; // 重置
|
||||||
// }
|
// }
|
||||||
|
this.smflag = true
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 刷新人脸识别是否成功
|
// 刷新人脸识别是否成功
|
||||||
|
|
@ -112,30 +118,42 @@ export default {
|
||||||
userName: this.name,
|
userName: this.name,
|
||||||
idCard: this.zfzh,
|
idCard: this.zfzh,
|
||||||
}
|
}
|
||||||
console.log('<UNK>', data)
|
console.log('身份信息', data)
|
||||||
putRealName(data).then(res => {
|
putRealName(data)
|
||||||
if (res.code === 200) {
|
.then(res => {
|
||||||
let https = encodeURIComponent(res.data.jumpUrl)
|
if (res.code === 200) {
|
||||||
this.backData = true
|
let https = encodeURIComponent(res.data.jumpUrl)
|
||||||
uni.navigateTo({
|
this.backData = true
|
||||||
url: '/page_user/facialRecognition/facialRecognition?https=' + https,
|
uni.navigateTo({
|
||||||
})
|
url: '/page_user/facialRecognition/facialRecognition?https=' + https,
|
||||||
} else if (res.code === 500 && res.msg === null) {
|
})
|
||||||
uni.showToast({
|
this.isRefresh = true
|
||||||
title: '已提交,请等待系统反馈',
|
}
|
||||||
icon: 'none',
|
// else if (res.code === 500 && res.msg === null) {
|
||||||
duration: 2000,
|
// uni.showToast({
|
||||||
})
|
// title: '已提交,请等待系统反馈',
|
||||||
|
// icon: 'none',
|
||||||
|
// duration: 2000,
|
||||||
|
// })
|
||||||
|
// this.smflag = true
|
||||||
|
// } else {
|
||||||
|
// uni.showToast({
|
||||||
|
// title: res.msg,
|
||||||
|
// icon: 'none',
|
||||||
|
// duration: 2000,
|
||||||
|
// })
|
||||||
|
// this.smflag = true
|
||||||
|
// }
|
||||||
|
})
|
||||||
|
.catch(error => {
|
||||||
|
if (error.code === 500 && error === null) {
|
||||||
|
uni.showToast({ title: '已提交,请等待系统反馈', icon: 'none' })
|
||||||
|
} else {
|
||||||
|
uni.showToast({ title: error || '系统错误', icon: 'none' })
|
||||||
|
console.log('@@@@@@@@', error)
|
||||||
|
}
|
||||||
this.smflag = true
|
this.smflag = true
|
||||||
} else {
|
})
|
||||||
uni.showToast({
|
|
||||||
title: res.msg,
|
|
||||||
icon: 'none',
|
|
||||||
duration: 2000,
|
|
||||||
})
|
|
||||||
this.smflag = true
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// this.$u.put(`/app/realName/realName`,data).then(res =>{ //人脸
|
// this.$u.put(`/app/realName/realName`,data).then(res =>{ //人脸
|
||||||
|
|
@ -185,6 +203,28 @@ export default {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.refresh {
|
||||||
|
width: 250rpx;
|
||||||
|
height: 174rpx;
|
||||||
|
|
||||||
|
line-height: 174rpx;
|
||||||
|
text-align: center;
|
||||||
|
padding: 0 250rpx;
|
||||||
|
|
||||||
|
text {
|
||||||
|
display: inline-block;
|
||||||
|
width: 250rpx;
|
||||||
|
height: 84rpx;
|
||||||
|
background: #f15a04;
|
||||||
|
border-radius: 42rpx 42rpx 42rpx 42rpx;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 84rpx;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 36rpx;
|
||||||
|
color: #ffffff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.sfxx {
|
.sfxx {
|
||||||
width: 676rpx;
|
width: 676rpx;
|
||||||
height: 480rpx;
|
height: 480rpx;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user