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