Showing
2 changed files
with
7 additions
and
2 deletions
@@ -246,7 +246,12 @@ const shop = { | @@ -246,7 +246,12 @@ const shop = { | ||
246 | }); | 246 | }); |
247 | } | 247 | } |
248 | 248 | ||
249 | - res.render('newshop/shop-reds', finalResult); | 249 | + // 店铺收藏开关 |
250 | + let shppFavHide = _.get(req.app.locals.wap, 'shop.removeCollect', false); | ||
251 | + | ||
252 | + res.render('newshop/shop-reds', _.assign(finalResult, { | ||
253 | + shppFavHide: shppFavHide | ||
254 | + })); | ||
250 | })().catch(next); | 255 | })().catch(next); |
251 | }, | 256 | }, |
252 | 257 |
@@ -14,7 +14,7 @@ | @@ -14,7 +14,7 @@ | ||
14 | <div class="fav-box clearfix"> | 14 | <div class="fav-box clearfix"> |
15 | <div class="favs pull-left">粉丝数: {{favCount}} </div> | 15 | <div class="favs pull-left">粉丝数: {{favCount}} </div> |
16 | {{!-- 店铺收藏开关 data-switch --}} | 16 | {{!-- 店铺收藏开关 data-switch --}} |
17 | - <div class="not-collect pull-left" data-switch="false" id="collect" data-bp-id="shop_branner_collect_1"></div> | 17 | + <div class="not-collect pull-left {{#if shppFavHide}}hide{{/if}}" data-switch="{{shppFavHide}}" id="collect" data-bp-id="shop_branner_collect_1"></div> |
18 | </div> | 18 | </div> |
19 | </div> | 19 | </div> |
20 | {{/if}} | 20 | {{/if}} |
-
Please register or login to post a comment