From 3a214a3b9d4d77849fd7c352b50f433c23a46931 Mon Sep 17 00:00:00 2001 From: linxi <957440651@qq.com> Date: Thu, 14 May 2026 09:44:35 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A5272=20=E3=80=90=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E8=BA=AB=E4=BB=BD=E8=AF=81?= =?UTF-8?q?=E5=8F=B7=E6=9C=AB=E5=B0=BE=E8=BE=93=E5=85=A5=E5=B0=8F=E5=86=99?= =?UTF-8?q?=E2=80=9Cx=E2=80=9D=EF=BC=8C=E5=BA=94=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg-video/views/county-realname.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkg-video/views/county-realname.vue b/pkg-video/views/county-realname.vue index 17daeb2..9c2d871 100644 --- a/pkg-video/views/county-realname.vue +++ b/pkg-video/views/county-realname.vue @@ -112,7 +112,9 @@ export default { uni.showToast({ title: '请输入真实姓名', icon: 'none' }) return } - if (!/^\d{15}$|^\d{17}[\dXx]$/.test(this.form.idCard)) { + const idCard = String(this.form.idCard || '').trim().toUpperCase() + this.form.idCard = idCard + if (!/^\d{15}$|^\d{17}[\dX]$/.test(idCard)) { uni.showToast({ title: '请输入正确身份证号', icon: 'none' }) return } @@ -124,7 +126,7 @@ export default { try { const res = await submitDrawRealname({ realName: this.form.realName, - idCard: this.form.idCard, + idCard, phone: this.form.phone }) const data = (res && res.data) || {} @@ -149,7 +151,7 @@ export default { icon: 'none' }) } finally { - uni.hideLoading() + // uni.hideLoading() } } }