dev_forum
杨树林 5 years ago
parent 57f08bd5a6
commit 463dd5841c

@ -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,
}); });

@ -207,12 +207,15 @@ class LoginRegisterComponent extends Component {
//是否验证通过 //是否验证通过
dragOkCallback = () => { dragOkCallback = () => {
debugger debugger
this.setState({
Phonenumberisnotcosytdhk:undefined,
})
if (this.state.logins.length === 0) { if (this.state.logins.length === 0) {
this.setState({ this.setState({
Phonenumberisnotcos: undefined, Phonenumberisnotcos:"账号不能为空",
Phonenumberisnotcobool: false, Phonenumberisnotcobool: true,
dragOk:true, dragOk:false,
Whethertoverify:this.state.Whethertoverify===true?false:true,
}) })
return; return;
} }
@ -373,21 +376,28 @@ class LoginRegisterComponent extends Component {
// this.openNotification(`请同意服务协议条款`,2); // this.openNotification(`请同意服务协议条款`,2);
// return; // 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.pciphone===true){
if (this.state.dragOk === false) { if (this.state.dragOk === false) {
// this.openNotification(`请拖动滑块完成验证`,2); // this.openNotification(`请拖动滑块完成验证`,2);
this.setState({ this.setState({
Phonenumberisnotcosytdhk:"请拖动滑块完成验证", Phonenumberisnotcosytdhk:"请拖动滑块完成验证",
dragOk:false,
Whethertoverify:this.state.Whethertoverify===true?false:true,
}) })
return return
} }
} }
if (this.state.logins === undefined || this.state.logins === ""||this.state.logins.length===0) {
this.setState({ if (this.state.codes === undefined || this.state.codes == ""||this.state.codes.length===0) {
Phonenumberisnotcos:"账号不能为空",
})
return
} else if (this.state.codes === undefined || this.state.codes == ""||this.state.codes.length===0) {
// this.openNotification(`请输入验证码`,2); // this.openNotification(`请输入验证码`,2);
this.setState({ this.setState({
Phonenumberisnotcosyzm:"验证码不能为空", Phonenumberisnotcosyzm:"验证码不能为空",

Loading…
Cancel
Save