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') {