Authored by ccbikai(👎🏻🍜)

Merge remote-tracking branch 'origin/hotfix/searchCoupon' into feature/captcha

@@ -88,8 +88,10 @@ @@ -88,8 +88,10 @@
88 {{/ baseShopHome}} 88 {{/ baseShopHome}}
89 <!-- /基础店铺页面 --> 89 <!-- /基础店铺页面 -->
90 90
91 - <!-- 优惠卷 -->  
92 - <div class="coupon-group"></div> 91 + {{#ifor brandHome baseShopHome}}
  92 + <!-- 优惠卷 -->
  93 + <div class="coupon-group"></div>
  94 + {{/ifor}}
93 95
94 <div> 96 <div>
95 <ul id="list-nav" class="list-nav clearfix"> 97 <ul id="list-nav" class="list-nav clearfix">
@@ -29,6 +29,10 @@ shopCoupon = { @@ -29,6 +29,10 @@ shopCoupon = {
29 var that = this, 29 var that = this,
30 _url = location.protocol + '//m.yohobuy.com'; 30 _url = location.protocol + '//m.yohobuy.com';
31 31
  32 + if ($('.coupon-group').length <= 0) {
  33 + return false;
  34 + }
  35 +
32 if (that.common.shopId) { 36 if (that.common.shopId) {
33 // 店铺领券 37 // 店铺领券
34 _url += '/product/index/getShopCouponsList'; 38 _url += '/product/index/getShopCouponsList';