|
|
|
@ -179,7 +179,7 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
}
|
|
|
|
|
//找回密码
|
|
|
|
|
Retrievepassword = () => {
|
|
|
|
|
if (this.state.Phonenumberisnotcobool === false) {
|
|
|
|
|
if (this.state.Phonenumberisnotcobool === false&&this.state.Phonenumberisnotco!==undefined) {
|
|
|
|
|
this.openNotification(this.state.Phonenumberisnotco);
|
|
|
|
|
this.setState({
|
|
|
|
|
Whethertoverify:this.state.Whethertoverify===true?false:true,
|
|
|
|
@ -189,6 +189,9 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
if (this.state.login === undefined|| this.state.login.length ===0 || this.state.login === "") {
|
|
|
|
|
this.setState({
|
|
|
|
|
Phonenumberisnotco:"账号不能为空",
|
|
|
|
|
Phonenumberisnotcobool: false,
|
|
|
|
|
dragOk: false,
|
|
|
|
|
Whethertoverify: this.state.Whethertoverify === true ? false : true,
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
@ -197,6 +200,8 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
// this.openNotification(`请拖动滑块完成验证`,2);
|
|
|
|
|
this.setState({
|
|
|
|
|
Phonenumberisnotcosytdhk:"请拖动滑块完成验证",
|
|
|
|
|
dragOk: false,
|
|
|
|
|
Whethertoverify: this.state.Whethertoverify === true ? false : true,
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
@ -479,12 +484,15 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
//是否验证通过
|
|
|
|
|
dragOkCallback = () => {
|
|
|
|
|
console.log(this.state.login);
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
Phonenumberisnotcosytdhk:undefined,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
if (this.state.login === "" || this.state.login.length === 0) {
|
|
|
|
|
this.setState({
|
|
|
|
|
Phonenumberisnotco: "账号不能为空",
|
|
|
|
|
Phonenumberisnotcobool: false,
|
|
|
|
|
Phonenumberisnotcosytdhk:undefined,
|
|
|
|
|
dragOk: false,
|
|
|
|
|
Whethertoverify: this.state.Whethertoverify === true ? false : true,
|
|
|
|
|
})
|
|
|
|
@ -502,6 +510,7 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
this.setState({
|
|
|
|
|
Phonenumberisnotco: stringdata,
|
|
|
|
|
Phonenumberisnotcobool: false,
|
|
|
|
|
Phonenumberisnotcosytdhk:undefined,
|
|
|
|
|
dragOk:false,
|
|
|
|
|
Whethertoverify: this.state.Whethertoverify === true ? false : true,
|
|
|
|
|
})
|
|
|
|
@ -509,6 +518,7 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
this.setState({
|
|
|
|
|
Phonenumberisnotco: undefined,
|
|
|
|
|
Phonenumberisnotcobool: true,
|
|
|
|
|
Phonenumberisnotcosytdhk:undefined,
|
|
|
|
|
dragOk: true,
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|