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() } } }