|
|
|
@ -212,8 +212,8 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
Phonenumberisnotcos: undefined,
|
|
|
|
|
Phonenumberisnotcobool: true,
|
|
|
|
|
})
|
|
|
|
|
this.Emailphonenumberverification(value, id)
|
|
|
|
|
}
|
|
|
|
|
this.Emailphonenumberverification(value, id)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -222,8 +222,11 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
stringdata = "邮箱格式不正确";
|
|
|
|
|
} else {
|
|
|
|
|
stringdata = "手机号格式不正确";
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
if (!regph.test(value)) {
|
|
|
|
|
// 这里先判断是不是手机号然后在判断是不是邮箱然后又判断是不是手机号,如果不是手机号就是账号
|
|
|
|
|
stringdata=undefined;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (id === 1) {
|
|
|
|
|
this.setState({
|
|
|
|
|
Phonenumberisnotco: stringdata,
|
|
|
|
@ -234,8 +237,8 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
Phonenumberisnotcos: stringdata,
|
|
|
|
|
Phonenumberisnotcobool: false,
|
|
|
|
|
})
|
|
|
|
|
this.Emailphonenumberverification(value, id)
|
|
|
|
|
}
|
|
|
|
|
this.Emailphonenumberverification(value, id)
|
|
|
|
|
return
|
|
|
|
|
} else {
|
|
|
|
|
if (id === 1) {
|
|
|
|
@ -248,8 +251,8 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
Phonenumberisnotcos: undefined,
|
|
|
|
|
Phonenumberisnotcobool: true,
|
|
|
|
|
})
|
|
|
|
|
this.Emailphonenumberverification(value, id)
|
|
|
|
|
}
|
|
|
|
|
this.Emailphonenumberverification(value, id)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|