Commit 740c97d8 by zhanghaozhe

账号登录页面

parent f8ccd957
...@@ -21,7 +21,6 @@ class AccountLogin extends PureComponent { ...@@ -21,7 +21,6 @@ class AccountLogin extends PureComponent {
render() { render() {
const loginWays = this.props.loginWays.filter(item => item.text !== '账号登录')
return ( return (
<div className={'account-login'}> <div className={'account-login'}>
<Header/> <Header/>
......
...@@ -17,6 +17,7 @@ import wechat from './wechat.png' ...@@ -17,6 +17,7 @@ import wechat from './wechat.png'
class Passport extends Component { class Passport extends Component {
constructor(props) { constructor(props) {
super(props); super(props);
this.state = { this.state = {
...@@ -53,9 +54,7 @@ class Passport extends Component { ...@@ -53,9 +54,7 @@ class Passport extends Component {
/> />
<Route path={match.url + '/wechat-login'} <Route path={match.url + '/wechat-login'}
render={props => <WechatLogin {...props} loginWays={this.state.loginWays}/>}/> render={props => <WechatLogin {...props} loginWays={this.state.loginWays}/>}/>
<Route path={match.url + '/account-login'} render={props => { <Route path={match.url + '/account-login'} component={AccountLogin}/>
return <AccountLogin {...props} loginWays={this.state.loginWays}/>
}}/>
<Route path={match.url + '/forgot-password'} component={ForgotPassword}/> <Route path={match.url + '/forgot-password'} component={ForgotPassword}/>
<Route path={match.url + '/set-password'} component={SetPassword}/> <Route path={match.url + '/set-password'} component={SetPassword}/>
<Route path={match.url + '/binding-tel'} component={BindingTel}/> <Route path={match.url + '/binding-tel'} component={BindingTel}/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment