dev_forum
杨树林 6 years ago
parent b3cc2fcac5
commit 7226e28176

@ -193,6 +193,17 @@ class LoginRegisterComponent extends Component {
this.openNotification(`两次输入的密码不一致`); this.openNotification(`两次输入的密码不一致`);
return 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
}
if (this.state.codes === undefined|| this.state.codes.length ===0 || this.state.codes === "") { if (this.state.codes === undefined|| this.state.codes.length ===0 || this.state.codes === "") {
this.setState({ this.setState({
Phonenumberisnotcosyzm:"验证码不能为空" Phonenumberisnotcosyzm:"验证码不能为空"

@ -268,6 +268,16 @@ class LoginRegisterComponent extends Component {
Phonenumberisnotcosymmm:"密码不能为空", Phonenumberisnotcosymmm:"密码不能为空",
}) })
return 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) { } else if (this.state.Agreetotheterms === false) {
this.openNotification(`请同意服务协议条款`,2); this.openNotification(`请同意服务协议条款`,2);
return; return;

Loading…
Cancel
Save