From fcea02505e5252413f4a449576983d96af5e480f Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Thu, 11 Sep 2025 10:38:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E5=90=8D=E8=AE=A4=E8=AF=81=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=EF=BC=8C=E4=BC=98=E5=8C=96=E6=8F=90=E4=BA=A4=E5=AE=9E?= =?UTF-8?q?=E5=90=8D=E8=AE=A4=E8=AF=81=E9=80=BB=E8=BE=91=EF=BC=8C=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E5=9C=A8=E5=BD=93=E9=A1=B5=E9=9D=A2=E5=BF=AB=E9=80=9F?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=EF=BC=8C=E4=B8=8D=E5=BF=85=E9=80=80=E5=87=BA?= =?UTF-8?q?=E5=88=B0=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E8=A7=A3=E9=94=81=EF=BC=8C=E6=B7=BB=E5=8A=A0=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E5=AE=9E=E5=90=8D=E7=8A=B6=E6=80=81=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../realNameAuthentication.vue | 86 ++++++++++++++----- 1 file changed, 63 insertions(+), 23 deletions(-) diff --git a/pages/realNameAuthentication/realNameAuthentication.vue b/pages/realNameAuthentication/realNameAuthentication.vue index fccec6f..a2d63c3 100644 --- a/pages/realNameAuthentication/realNameAuthentication.vue +++ b/pages/realNameAuthentication/realNameAuthentication.vue @@ -24,10 +24,14 @@ 您当前已完成实名认证 + 提交 + + 刷新实名状态 + @@ -40,6 +44,7 @@ import { export default { data() { return { + isRefresh: false, isReal: false, bgc: { backgroundColor: '', @@ -64,6 +69,7 @@ export default { // this.getshuaxin(); // this.backData = null; // 重置 // } + this.smflag = true }, methods: { // 刷新人脸识别是否成功 @@ -112,30 +118,42 @@ export default { userName: this.name, idCard: this.zfzh, } - console.log('', data) - putRealName(data).then(res => { - if (res.code === 200) { - let https = encodeURIComponent(res.data.jumpUrl) - this.backData = true - uni.navigateTo({ - url: '/page_user/facialRecognition/facialRecognition?https=' + https, - }) - } else if (res.code === 500 && res.msg === null) { - uni.showToast({ - title: '已提交,请等待系统反馈', - icon: 'none', - duration: 2000, - }) + console.log('身份信息', data) + putRealName(data) + .then(res => { + if (res.code === 200) { + let https = encodeURIComponent(res.data.jumpUrl) + this.backData = true + uni.navigateTo({ + url: '/page_user/facialRecognition/facialRecognition?https=' + https, + }) + this.isRefresh = true + } + // else if (res.code === 500 && res.msg === null) { + // 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 - } else { - uni.showToast({ - title: res.msg, - icon: 'none', - duration: 2000, - }) - this.smflag = true - } - }) + }) } // 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 { width: 676rpx; height: 480rpx;