Showing
1 changed file
with
5 additions
and
0 deletions
@@ -15,6 +15,11 @@ shopCoupon = { | @@ -15,6 +15,11 @@ shopCoupon = { | ||
15 | couponTemplate: require('product/shop/coupon.hbs') | 15 | couponTemplate: require('product/shop/coupon.hbs') |
16 | }, | 16 | }, |
17 | init: function() { | 17 | init: function() { |
18 | + // 如果都为空,则不请求 | ||
19 | + if (this.common.shopId === '' && this.common.brandId === '') { | ||
20 | + return true; | ||
21 | + } | ||
22 | + | ||
18 | this.loginCoupon(); | 23 | this.loginCoupon(); |
19 | this.getShopCouponsList(); | 24 | this.getShopCouponsList(); |
20 | }, | 25 | }, |
-
Please register or login to post a comment