|
|
|
@ -206,14 +206,18 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
}
|
|
|
|
|
//是否验证通过
|
|
|
|
|
dragOkCallback = () => {
|
|
|
|
|
debugger
|
|
|
|
|
this.setState({
|
|
|
|
|
Phonenumberisnotcosytdhk:undefined,
|
|
|
|
|
})
|
|
|
|
|
if (this.state.logins.length === 0) {
|
|
|
|
|
this.setState({
|
|
|
|
|
Phonenumberisnotcos: undefined,
|
|
|
|
|
Phonenumberisnotcobool: false,
|
|
|
|
|
dragOk:true,
|
|
|
|
|
|
|
|
|
|
Phonenumberisnotcos:"账号不能为空",
|
|
|
|
|
Phonenumberisnotcobool: true,
|
|
|
|
|
dragOk:false,
|
|
|
|
|
Whethertoverify:this.state.Whethertoverify===true?false:true,
|
|
|
|
|
})
|
|
|
|
|
console.log("s0");
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
// var telephone = $("#telephoneAdd.tianjia_phone").val();
|
|
|
|
@ -226,11 +230,11 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
if (!regph.test(this.state.logins)) {
|
|
|
|
|
stringdata = "手机号格式不正确";
|
|
|
|
|
this.setState({
|
|
|
|
|
Phonenumberisnotcos: stringdata,
|
|
|
|
|
Phonenumberisnotcobool: true,
|
|
|
|
|
dragOk:false,
|
|
|
|
|
Whethertoverify:this.state.Whethertoverify===true?false:true,
|
|
|
|
|
Phonenumberisnotcos: undefined,
|
|
|
|
|
Phonenumberisnotcobool: false,
|
|
|
|
|
dragOk:true,
|
|
|
|
|
})
|
|
|
|
|
console.log("s1");
|
|
|
|
|
} else {
|
|
|
|
|
this.setState({
|
|
|
|
|
Phonenumberisnotcos: undefined,
|
|
|
|
@ -253,9 +257,12 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
Phonenumberisnotcobool: true,
|
|
|
|
|
dragOk:false,
|
|
|
|
|
Whethertoverify:this.state.Whethertoverify===true?false:true,
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
console.log("s2");
|
|
|
|
|
|
|
|
|
|
return
|
|
|
|
|
} else {
|
|
|
|
|
console.log("s222222");
|
|
|
|
|
this.setState({
|
|
|
|
|
Phonenumberisnotcos: undefined,
|
|
|
|
|
Phonenumberisnotcobool: false,
|
|
|
|
@ -373,21 +380,28 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
// this.openNotification(`请同意服务协议条款`,2);
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
if (this.state.logins === undefined || this.state.logins === ""||this.state.logins.length===0) {
|
|
|
|
|
this.setState({
|
|
|
|
|
Phonenumberisnotcos:"账号不能为空",
|
|
|
|
|
Phonenumberisnotcobool: true,
|
|
|
|
|
dragOk:false,
|
|
|
|
|
Whethertoverify:this.state.Whethertoverify===true?false:true,
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if(this.state.pciphone===true){
|
|
|
|
|
if (this.state.dragOk === false) {
|
|
|
|
|
// this.openNotification(`请拖动滑块完成验证`,2);
|
|
|
|
|
this.setState({
|
|
|
|
|
Phonenumberisnotcosytdhk:"请拖动滑块完成验证",
|
|
|
|
|
dragOk:false,
|
|
|
|
|
Whethertoverify:this.state.Whethertoverify===true?false:true,
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (this.state.logins === undefined || this.state.logins === ""||this.state.logins.length===0) {
|
|
|
|
|
this.setState({
|
|
|
|
|
Phonenumberisnotcos:"账号不能为空",
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
} else if (this.state.codes === undefined || this.state.codes == ""||this.state.codes.length===0) {
|
|
|
|
|
|
|
|
|
|
if (this.state.codes === undefined || this.state.codes == ""||this.state.codes.length===0) {
|
|
|
|
|
// this.openNotification(`请输入验证码`,2);
|
|
|
|
|
this.setState({
|
|
|
|
|
Phonenumberisnotcosyzm:"验证码不能为空",
|
|
|
|
@ -482,6 +496,8 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
dragOk:false,
|
|
|
|
|
Whethertoverify:this.state.Whethertoverify===true?false:true,
|
|
|
|
|
})
|
|
|
|
|
console.log("s5");
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
return;
|
|
|
|
|
} else if (id === 2) {
|
|
|
|
@ -491,7 +507,9 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
dragOk:false,
|
|
|
|
|
Whethertoverify:this.state.Whethertoverify===true?false:true,
|
|
|
|
|
})
|
|
|
|
|
return;
|
|
|
|
|
console.log("s6");
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}else {
|
|
|
|
|
if (id === 1) {
|
|
|
|
|