Commit ed40ea49 by zhanghaozhe

优惠券

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