|
|
|
@ -33,7 +33,6 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
// console.log(props.loginstatus);
|
|
|
|
|
this.state = {
|
|
|
|
|
tab:["0"],
|
|
|
|
|
activeKey: 0,
|
|
|
|
|
classpass: "text",
|
|
|
|
|
// 登录
|
|
|
|
|
passopens: passoff,
|
|
|
|
@ -67,7 +66,6 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
// console.log(props.loginstatus);
|
|
|
|
|
this.state = {
|
|
|
|
|
tab:["1"],
|
|
|
|
|
activeKey: '1',
|
|
|
|
|
classpass: "text",
|
|
|
|
|
// 登录
|
|
|
|
|
passopens: passoff,
|
|
|
|
@ -111,12 +109,10 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
this.state = {
|
|
|
|
|
tab:["0"],
|
|
|
|
|
}
|
|
|
|
|
this.onTabChange('0');
|
|
|
|
|
} else if (this.props.match.url === "/register") {
|
|
|
|
|
this.state = {
|
|
|
|
|
tab:["1"],
|
|
|
|
|
}
|
|
|
|
|
this.onTabChange('1');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -132,7 +128,6 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;
|
|
|
|
|
StudyMakeMoney = () => { // 调用父组件方法
|
|
|
|
|
this.props.Setshowbool(3);
|
|
|
|
|
// this.props.Setlogins(3);
|
|
|
|
@ -146,8 +141,6 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
}
|
|
|
|
|
onTabChange = (activeKey) => {
|
|
|
|
|
console.log("onTabChange");
|
|
|
|
|
// console.log(activeKey);
|
|
|
|
|
// this.setState({activeKey})
|
|
|
|
|
}
|
|
|
|
|
// -------------------- LOGIN START
|
|
|
|
|
//下次自动登入
|
|
|
|
@ -608,7 +601,6 @@ class LoginRegisterComponent extends Component {
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
const {
|
|
|
|
|
activeKey,
|
|
|
|
|
// 登录
|
|
|
|
|
autoLogin,
|
|
|
|
|
classpass,
|
|
|
|
|