Commit 6dd7b3c9 by zhanghaozhe

修改我的页面只点击膨胀券才会跳转中间页

parent 10033192
...@@ -17,7 +17,7 @@ class Coupon extends PureComponent { ...@@ -17,7 +17,7 @@ class Coupon extends PureComponent {
pick = (e) => { pick = (e) => {
let {useCoupon, invalid, start_amount, id, location, history, code} = this.props let {useCoupon, invalid, start_amount, id, location, history, code} = this.props
const {state} = location const {state} = location
if(state && state.from && state.from === '/my'){ if(state && state.from && state.from === '/my' && typeof start_amount !== 'undefined'){
history.push(`/expand/index?deposit_code=${code}`) history.push(`/expand/index?deposit_code=${code}`)
return return
} }
......
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