|
|
|
@ -43,6 +43,7 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
Whethertoverify:false,
|
|
|
|
|
modalsType:false,
|
|
|
|
|
pciphone:true,
|
|
|
|
|
boolyzm:false,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -213,7 +214,10 @@ 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位",
|
|
|
|
@ -236,13 +240,6 @@ 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:"验证码不能为空"
|
|
|
|
@ -271,6 +268,12 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
Phonenumberisnotcosyzm:"验证码不正确",
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}else if(result.data.message==="1小时内同一手机号发送次数超过限制"){
|
|
|
|
|
this.setState({
|
|
|
|
|
boolyzm:true,
|
|
|
|
|
})
|
|
|
|
|
this.openNotification(result.data.message);
|
|
|
|
|
return;
|
|
|
|
|
}else {
|
|
|
|
|
this.openNotification(result.data.message);
|
|
|
|
@ -311,6 +314,7 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
login: stirngt,
|
|
|
|
|
Phonenumberisnotco:undefined,
|
|
|
|
|
dragOk:false,
|
|
|
|
|
boolyzm:false,
|
|
|
|
|
Whethertoverify:this.state.Whethertoverify===true?false:true,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
@ -505,6 +509,7 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
codes,
|
|
|
|
|
Whethertoverify,
|
|
|
|
|
pciphone,
|
|
|
|
|
boolyzm,
|
|
|
|
|
} = this.state
|
|
|
|
|
// height: 346px;
|
|
|
|
|
return (
|
|
|
|
@ -667,11 +672,13 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
<Button className=" ml5 "
|
|
|
|
|
style={{"width": "120px", "text-align": "center", "height": "45px"}}
|
|
|
|
|
type="primary"
|
|
|
|
|
disabled={boolyzm}
|
|
|
|
|
onClick={() => this.getverificationcode()} size={"large"}>获取验证码</Button>
|
|
|
|
|
:
|
|
|
|
|
<Button className=" ml5 "
|
|
|
|
|
style={{"width": "120px", "text-align": "center", "height": "45px"}}
|
|
|
|
|
type="primary"
|
|
|
|
|
disabled={boolyzm}
|
|
|
|
|
onClick={() => this.getverificationcode()} size={"large"}>重新发送</Button>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|