dev_forum
杨树林 5 years ago
parent 3ca4437ad6
commit 62b48f7713

@ -31,7 +31,7 @@ class LoginRegisterComponent extends Component {
seconds: 60, seconds: 60,
codes: "", codes: "",
getverificationcodes: true, getverificationcodes: true,
Phonenumberisnotcobool: false, Phonenumberisnotcobool: true,
Phonenumberisnotco: undefined, Phonenumberisnotco: undefined,
Phonenumberisnotcosytdhk:undefined, Phonenumberisnotcosytdhk:undefined,
Phonenumberisnotcosmmm: undefined, Phonenumberisnotcosmmm: undefined,
@ -508,11 +508,10 @@ class LoginRegisterComponent extends Component {
if (!regph.test(this.state.login)) { if (!regph.test(this.state.login)) {
stringdata = "手机号格式不正确"; stringdata = "手机号格式不正确";
this.setState({ this.setState({
Phonenumberisnotco: stringdata, Phonenumberisnotco: undefined,
Phonenumberisnotcobool: false, Phonenumberisnotcobool: true,
Phonenumberisnotcosytdhk:undefined, Phonenumberisnotcosytdhk:undefined,
dragOk:false, dragOk: true,
Whethertoverify: this.state.Whethertoverify === true ? false : true,
}) })
} else { } else {
this.setState({ this.setState({

@ -206,7 +206,6 @@ class LoginRegisterComponent extends Component {
} }
//是否验证通过 //是否验证通过
dragOkCallback = () => { dragOkCallback = () => {
debugger
this.setState({ this.setState({
Phonenumberisnotcosytdhk:undefined, Phonenumberisnotcosytdhk:undefined,
}) })
@ -217,6 +216,8 @@ class LoginRegisterComponent extends Component {
dragOk:false, dragOk:false,
Whethertoverify:this.state.Whethertoverify===true?false:true, Whethertoverify:this.state.Whethertoverify===true?false:true,
}) })
console.log("s0");
return; return;
} }
// var telephone = $("#telephoneAdd.tianjia_phone").val(); // var telephone = $("#telephoneAdd.tianjia_phone").val();
@ -229,11 +230,11 @@ class LoginRegisterComponent extends Component {
if (!regph.test(this.state.logins)) { if (!regph.test(this.state.logins)) {
stringdata = "手机号格式不正确"; stringdata = "手机号格式不正确";
this.setState({ this.setState({
Phonenumberisnotcos: stringdata, Phonenumberisnotcos: undefined,
Phonenumberisnotcobool: true, Phonenumberisnotcobool: false,
dragOk:false, dragOk:true,
Whethertoverify:this.state.Whethertoverify===true?false:true,
}) })
console.log("s1");
} else { } else {
this.setState({ this.setState({
Phonenumberisnotcos: undefined, Phonenumberisnotcos: undefined,
@ -256,9 +257,12 @@ class LoginRegisterComponent extends Component {
Phonenumberisnotcobool: true, Phonenumberisnotcobool: true,
dragOk:false, dragOk:false,
Whethertoverify:this.state.Whethertoverify===true?false:true, Whethertoverify:this.state.Whethertoverify===true?false:true,
}) });
console.log("s2");
return return
} else { } else {
console.log("s222222");
this.setState({ this.setState({
Phonenumberisnotcos: undefined, Phonenumberisnotcos: undefined,
Phonenumberisnotcobool: false, Phonenumberisnotcobool: false,
@ -492,6 +496,8 @@ class LoginRegisterComponent extends Component {
dragOk:false, dragOk:false,
Whethertoverify:this.state.Whethertoverify===true?false:true, Whethertoverify:this.state.Whethertoverify===true?false:true,
}) })
console.log("s5");
} }
return; return;
} else if (id === 2) { } else if (id === 2) {
@ -501,7 +507,9 @@ class LoginRegisterComponent extends Component {
dragOk:false, dragOk:false,
Whethertoverify:this.state.Whethertoverify===true?false:true, Whethertoverify:this.state.Whethertoverify===true?false:true,
}) })
return; console.log("s6");
return;
} }
}else { }else {
if (id === 1) { if (id === 1) {

Loading…
Cancel
Save