|
|
@ -3,9 +3,13 @@ import React, {Component} from 'react';
|
|
|
|
import {BrowserRouter as Router, Route, Link, Switch} from "react-router-dom";
|
|
|
|
import {BrowserRouter as Router, Route, Link, Switch} from "react-router-dom";
|
|
|
|
|
|
|
|
|
|
|
|
import {getImageUrl, DragValidator} from 'educoder';
|
|
|
|
import {getImageUrl, DragValidator} from 'educoder';
|
|
|
|
import DragValidatortwo from '../../../src/common/components/DragValidatortwo'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import {Tabs, Input, Checkbox, Button, notification} from 'antd';
|
|
|
|
import {Tabs, Input, Checkbox, Button, notification} from 'antd';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import DragValidatortwo from '../../../src/common/components/DragValidatortwo'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import ReadPassword from './ReadPassword';
|
|
|
|
|
|
|
|
|
|
|
|
import axios from 'axios';
|
|
|
|
import axios from 'axios';
|
|
|
|
import './common.css'
|
|
|
|
import './common.css'
|
|
|
|
|
|
|
|
|
|
|
@ -150,6 +154,9 @@ 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({
|
|
|
@ -202,8 +209,11 @@ class LoginRegisterComponent extends Component {
|
|
|
|
}).then((result) => {
|
|
|
|
}).then((result) => {
|
|
|
|
// console.log(result);
|
|
|
|
// console.log(result);
|
|
|
|
//登录成功,会生成session
|
|
|
|
//登录成功,会生成session
|
|
|
|
this.openNotification("找回密码成功,请重新登入。");
|
|
|
|
// this.openNotification("找回密码成功,请重新登入。");
|
|
|
|
window.location.href = "/login"
|
|
|
|
// window.location.href = "/login"
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
modalsType:true
|
|
|
|
|
|
|
|
})
|
|
|
|
}).catch((error) => {
|
|
|
|
}).catch((error) => {
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -404,6 +414,11 @@ class LoginRegisterComponent extends Component {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
|
|
|
|
|
|
|
|
<div className="login_register_content" style={{height: "520px"}}>
|
|
|
|
<div className="login_register_content" style={{height: "520px"}}>
|
|
|
|
|
|
|
|
<ReadPassword
|
|
|
|
|
|
|
|
modalsType={this.state.modalsType}
|
|
|
|
|
|
|
|
StudyMakeMoney={()=>this.StudyMakeMoney()}
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
<Input type="text" name="username" value={"namename"}
|
|
|
|
<Input type="text" name="username" value={"namename"}
|
|
|
|
style={{height: '0', width: '0', border: 'none', display: "none"}}/>
|
|
|
|
style={{height: '0', width: '0', border: 'none', display: "none"}}/>
|
|
|
|
<Input type="password" name="password" id="password" value={"123123123"}
|
|
|
|
<Input type="password" name="password" id="password" value={"123123123"}
|
|
|
|