|
|
|
@ -213,10 +213,7 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (this.state.password !== this.state.passwords==="") {
|
|
|
|
|
this.openNotification(`两次输入的密码不一致`);
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
else if (this.state.password !==undefined&&this.state.password.length>0&&this.state.password.length<8){
|
|
|
|
|
this.setState({
|
|
|
|
|
Phonenumberisnotcosmmm:"密码不能少于8位",
|
|
|
|
@ -239,6 +236,13 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (this.state.password !== this.state.passwords) {
|
|
|
|
|
this.setState({
|
|
|
|
|
Phonenumberisnotcosmmm:"两次输入的密码不一致",
|
|
|
|
|
Phonenumberisnotcosymmmm:"两次输入的密码不一致",
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (this.state.codes === undefined|| this.state.codes.length ===0 || this.state.codes === "") {
|
|
|
|
|
this.setState({
|
|
|
|
|
Phonenumberisnotcosyzm:"验证码不能为空"
|
|
|
|
|