Authored by 李靖

开关

... ... @@ -246,7 +246,12 @@ const shop = {
});
}
res.render('newshop/shop-reds', finalResult);
// 店铺收藏开关
let shppFavHide = _.get(req.app.locals.wap, 'shop.removeCollect', false);
res.render('newshop/shop-reds', _.assign(finalResult, {
shppFavHide: shppFavHide
}));
})().catch(next);
},
... ...
... ... @@ -14,7 +14,7 @@
<div class="fav-box clearfix">
<div class="favs pull-left">粉丝数: {{favCount}} </div>
{{!-- 店铺收藏开关 data-switch --}}
<div class="not-collect pull-left" data-switch="false" id="collect" data-bp-id="shop_branner_collect_1"></div>
<div class="not-collect pull-left {{#if shppFavHide}}hide{{/if}}" data-switch="{{shppFavHide}}" id="collect" data-bp-id="shop_branner_collect_1"></div>
</div>
</div>
{{/if}}
... ...