Authored by 郝肖肖

判断shopId和brandId是否存在

... ... @@ -15,6 +15,11 @@ shopCoupon = {
couponTemplate: require('product/shop/coupon.hbs')
},
init: function() {
// 如果都为空,则不请求
if (this.common.shopId === '' && this.common.brandId === '') {
return true;
}
this.loginCoupon();
this.getShopCouponsList();
},
... ...