dev_forum
杨树林 5 years ago
parent b41e69bcd5
commit b3cc2fcac5

@ -162,7 +162,7 @@ class EducoderLogin extends Component {
<div> <div>
<LoginRegisterComponent {...this.props} {...this.state} <LoginRegisterComponent {...this.props} {...this.state}
Setshowbool={(e,name,pass)=>this.Setshowbool(e,name,pass)} ></LoginRegisterComponent> Setshowbool={(e)=>this.Setshowbool(e)} ></LoginRegisterComponent>
</div> </div>

@ -41,6 +41,8 @@ class LoginRegisterComponent extends Component {
readonlyInput: true, readonlyInput: true,
dragOk: false, dragOk: false,
Whethertoverify:false, Whethertoverify:false,
modalsType:true,
} }
} }
@ -154,9 +156,6 @@ class LoginRegisterComponent extends Component {
} }
//找回密码 //找回密码
Retrievepassword = () => { Retrievepassword = () => {
this.setState({
modalsType:true
})
if (this.state.Phonenumberisnotcobool === false) { if (this.state.Phonenumberisnotcobool === false) {
if (this.state.login.length === 0) { if (this.state.login.length === 0) {
this.setState({ this.setState({
@ -409,7 +408,6 @@ class LoginRegisterComponent extends Component {
render() { render() {
const { const {
activeKey,
// 登录 // 登录
autoLogin, autoLogin,
// 注册 // 注册
@ -434,7 +432,7 @@ class LoginRegisterComponent extends Component {
<div className="login_register_content" style={{height: "520px"}}> <div className="login_register_content" style={{height: "520px"}}>
<ReadPassword <ReadPassword
modalsTypes={this.state.modalsType} modalsType={this.state.modalsType}
StudyMakeMoney={()=>this.StudyMakeMoney()} StudyMakeMoney={()=>this.StudyMakeMoney()}
/> />

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

@ -28,12 +28,12 @@ class ReadPassword extends Component {
destroyOnClose={true} destroyOnClose={true}
title="提示" title="提示"
centered={true} centered={true}
visible={this.props.modalsTypes===undefined?false:this.props.modalsTypes} visible={this.props.modalsType===undefined?false:this.props.modalsType}
width="530px" width="530px"
> >
<div className="educouddiv"> <div className="educouddiv">
<div><p>密码已重置请重新登录</p></div> <div><p>密码已重置请重新登录</p></div>
<a className="task-btn task-btn-orange" onClick={this.setDownload()}>知道啦</a> <a className="task-btn task-btn-orange" onClick={this.setDownload}>知道啦</a>
</div> </div>
</Modal> </Modal>
) )

Loading…
Cancel
Save