|
|
|
@ -268,6 +268,16 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
Phonenumberisnotcosymmm:"密码不能为空",
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
} else if (this.state.passwords !==undefined ||this.state.passwords.length>0&&this.state.passwords.length<8){
|
|
|
|
|
this.setState({
|
|
|
|
|
Phonenumberisnotcosymmm:"密码不能少于8位",
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
} else if (this.state.passwords !==undefined ||this.state.passwords.length>0&&this.state.passwords.length>16){
|
|
|
|
|
this.setState({
|
|
|
|
|
Phonenumberisnotcosymmm:"密码不能超过16位",
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
} else if (this.state.Agreetotheterms === false) {
|
|
|
|
|
this.openNotification(`请同意服务协议条款`,2);
|
|
|
|
|
return;
|
|
|
|
|