Merge branch 'feature/captcha' of http://git.yoho.cn/fe/yohobuywap-node into feature/captcha
Showing
3 changed files
with
13 additions
and
2 deletions
@@ -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'; |
@@ -699,9 +699,14 @@ var chat = { | @@ -699,9 +699,14 @@ var chat = { | ||
699 | _drawMSG: function(viewData, cusAction = null) { | 699 | _drawMSG: function(viewData, cusAction = null) { |
700 | let chatWin = this.$chatWin[0]; | 700 | let chatWin = this.$chatWin[0]; |
701 | 701 | ||
702 | + if (viewData.type === 'picture') { | ||
703 | + viewData.data.content = viewData.data.content.replace(/^http:/, ''); | ||
704 | + } | ||
705 | + | ||
702 | // console.log(viewData); | 706 | // console.log(viewData); |
703 | let $html = $(this.messageT(viewData)); | 707 | let $html = $(this.messageT(viewData)); |
704 | 708 | ||
709 | + | ||
705 | this.checkTime(); | 710 | this.checkTime(); |
706 | if (cusAction) { | 711 | if (cusAction) { |
707 | cusAction.apply(this, [$html]); | 712 | cusAction.apply(this, [$html]); |
-
Please register or login to post a comment