|
|
|
@ -36,12 +36,12 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
activeKey: 0,
|
|
|
|
|
classpass: "text",
|
|
|
|
|
// 登录
|
|
|
|
|
passopens: passopen,
|
|
|
|
|
passopens: passoff,
|
|
|
|
|
seconds: 35,
|
|
|
|
|
discodeBtn: false,
|
|
|
|
|
clearInterval: false,
|
|
|
|
|
autoLogin: true,
|
|
|
|
|
classpassbool: true,
|
|
|
|
|
classpassbool: false,
|
|
|
|
|
// 注册
|
|
|
|
|
readAgreement: false,
|
|
|
|
|
getverificationcodes: true,
|
|
|
|
@ -66,12 +66,12 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
activeKey: '1',
|
|
|
|
|
classpass: "text",
|
|
|
|
|
// 登录
|
|
|
|
|
passopens: passopen,
|
|
|
|
|
passopens: passoff,
|
|
|
|
|
seconds: 35,
|
|
|
|
|
discodeBtn: false,
|
|
|
|
|
clearInterval: false,
|
|
|
|
|
autoLogin: true,
|
|
|
|
|
classpassbool: true,
|
|
|
|
|
classpassbool: false,
|
|
|
|
|
// 注册
|
|
|
|
|
readAgreement: false,
|
|
|
|
|
getverificationcodes: true,
|
|
|
|
@ -252,20 +252,21 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
code: this.state.codes,
|
|
|
|
|
}).then((result) => {
|
|
|
|
|
console.log(result);
|
|
|
|
|
try {
|
|
|
|
|
// this.onTabChange("1");
|
|
|
|
|
this.setState({
|
|
|
|
|
logins: "",
|
|
|
|
|
dragOk: false,
|
|
|
|
|
codes: "",
|
|
|
|
|
passwords: "",
|
|
|
|
|
Agreetotheterms: "",
|
|
|
|
|
})
|
|
|
|
|
this.props.history.push("/interesse");
|
|
|
|
|
// this.props.Setshowbool(2,this.state.logins,this.state.passwords);
|
|
|
|
|
} catch (e) {
|
|
|
|
|
if(result){
|
|
|
|
|
try {
|
|
|
|
|
this.setState({
|
|
|
|
|
logins: "",
|
|
|
|
|
dragOk: false,
|
|
|
|
|
codes: "",
|
|
|
|
|
passwords: "",
|
|
|
|
|
Agreetotheterms: "",
|
|
|
|
|
})
|
|
|
|
|
} catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
@ -572,6 +573,7 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
tab,
|
|
|
|
|
dragOk,
|
|
|
|
|
Whethertoverify,
|
|
|
|
|
classpassbool,
|
|
|
|
|
// 注册
|
|
|
|
|
readAgreement,
|
|
|
|
|
} = this.state
|
|
|
|
@ -580,7 +582,7 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
// window.location.href='http://www.cnblogs.com/a-cat/';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// console.log(activeKey);
|
|
|
|
|
console.log(classpass);
|
|
|
|
|
return (
|
|
|
|
|
|
|
|
|
|
<div className="login_register_content" style={ parseInt(tab[0])==0?{height: "346px"} :{height: "490px"}}>
|
|
|
|
@ -764,7 +766,7 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<Input className="loginInput font-14 mt25 color-grey-9 loginInputzhuche" placeholder="输入8~16位密码,区分大小写"
|
|
|
|
|
type={classpass}
|
|
|
|
|
type={classpassbool===false?"text":"password"}
|
|
|
|
|
|
|
|
|
|
autoComplete="new-password"
|
|
|
|
|
onClick={this.changeType}
|
|
|
|
|