Commit ed40ea49 by zhanghaozhe

优惠券

parent 82d57e50
......@@ -28,19 +28,16 @@ class UseCoupon extends PureComponent {
location.state && location.state.from ? history.replace(location.state.from) : history.goBack()
}
const {state} = this.props.location
if (state && state.from) {
switch (state.from) {
case '/my' :
if (state.from === '/my') {
this.getMyCoupons();
this.setState({
showUseButton: true
})
break;
default:
} else {
this.getAllCoupons();
}
} else {
this.getAllCoupons()
}
}
......
......@@ -29,7 +29,7 @@ class AccountLogin extends PureComponent {
render={({field}) => (
<Input
{...field}
type={'number'}
type={'text'}
placeholder={'手机/邮箱/昵称'}
wrapperClass={'tel-input'}
icon={
......
......@@ -41,7 +41,6 @@ class ForgotPassword extends Component {
values,
errors
} = this.props
console.log(this.props)
return (
<div className={'forgot-password'}>
<HeaderBar title='忘记密码'/>
......
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