Commit b2de31a7 by Kyle_Li

Merge branch 'feature/手机号验证bug' of http://115.159.76.241/gicmember/member into dev

parents 3489c389 e66ac27f
......@@ -266,7 +266,7 @@ export default {
this.$refs[formName].resetFields();
}
},
submitPosBaseDetail(formName) {
async submitPosBaseDetail(formName) {
let params = '';
if(this.updateStatus == 1) {
if(!this.posForm.memberName) {
......@@ -310,19 +310,20 @@ export default {
checkFalse('请填写手机号');
return false;
}
this.$refs[formName].validateField('phoneNumber',function (err) {
this.$refs[formName].validateField('phoneNumber',err => {
if(err) {
checkFalse('请填写正确手机号');
return false;
}
params = {
memberId: this.memberId,
updateStatus: this.updateStatus,
phoneNumber: this.posForm.phoneNumber,
nationCode: this.posForm.nationCode || '86',
remark: this.posForm.remark
}
});
params = {
memberId: this.memberId,
updateStatus: this.updateStatus,
phoneNumber: this.posForm.phoneNumber,
nationCode: this.posForm.nationCode || '86',
remark: this.posForm.remark
}
if (!params) return;
}
if(!this.posForm.remark) {
checkFalse('备注不能为空');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment