购买添加登录判断-- reviewed by jingyou
Showing
1 changed file
with
5 additions
and
0 deletions
@@ -10,6 +10,7 @@ import share from '../../static/images/share.png'; | @@ -10,6 +10,7 @@ import share from '../../static/images/share.png'; | ||
10 | import collect from '../../static/images/collect.png'; | 10 | import collect from '../../static/images/collect.png'; |
11 | import collectOff from '../../static/images/collect-off.png'; | 11 | import collectOff from '../../static/images/collect-off.png'; |
12 | import './index.scss'; | 12 | import './index.scss'; |
13 | +import event from '../../utils/event' | ||
13 | 14 | ||
14 | @connect(({ productDetail }) => ({ | 15 | @connect(({ productDetail }) => ({ |
15 | productDetail | 16 | productDetail |
@@ -122,7 +123,11 @@ export default class ProductDetail extends Component { | @@ -122,7 +123,11 @@ export default class ProductDetail extends Component { | ||
122 | onClickBuy() { | 123 | onClickBuy() { |
123 | let {showSizeBox} = this.props; | 124 | let {showSizeBox} = this.props; |
124 | 125 | ||
126 | + event.emit('user-is-login',function () { | ||
125 | showSizeBox(true); | 127 | showSizeBox(true); |
128 | + },function () { | ||
129 | + showSizeBox(true); | ||
130 | + }) | ||
126 | } | 131 | } |
127 | 132 | ||
128 | render() { | 133 | render() { |
-
Please register or login to post a comment