Authored by 郝肖肖

判断shopId和brandId是否存在

@@ -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 },