From 1c892cdc6470952aa705815909b44a1a018b3763 Mon Sep 17 00:00:00 2001 From: water_xu Date: Mon, 12 Aug 2024 10:47:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=91=98=E4=B8=AD=E5=8F=B0=20-=20?= =?UTF-8?q?=E4=BA=BA=E5=91=98=E4=B8=AD=E5=8F=B0=E7=AE=A1=E7=90=86=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E5=A4=B1=E8=B4=A5bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/group/userCenter/index.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/views/system/group/userCenter/index.vue b/src/views/system/group/userCenter/index.vue index 06394eb..8bcebea 100644 --- a/src/views/system/group/userCenter/index.vue +++ b/src/views/system/group/userCenter/index.vue @@ -480,18 +480,24 @@ export default { }) }, goCheck() { - if (this.pd.USER_ID_CARD && this.pd.USERNAME) { + if (this.pd.USER_ID_CARD && this.pd.PHONE) { const phoneJudge = /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[0-9])\d{8}$/ - const phoneResult = phoneJudge.test(this.pd.USERNAME) + const phoneResult = phoneJudge.test(this.pd.PHONE) const cardJudge = /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/ const cardResult = cardJudge.test(this.pd.USER_ID_CARD) + // alert(this.pd.PHONE) + // alert(phoneResult) + + // alert(this.pd.USER_ID_CARD) + // alert(cardResult) if (phoneResult && cardResult) { console.log('格式校验通过') requestFN( 'user/goCheck', { CARD_NO: this.pd.USER_ID_CARD, - USERNAME: this.pd.USERNAME + USERNAME: this.pd.PHONE, + USER_ID: this.pd.USER_ID } ).then((data) => { if (data.result === 'success') {