Authored by zhangxiaoru

shop

... ... @@ -37,9 +37,9 @@ const shopIndex = (req, res) => {
res.render('shop-collect/index', Object.assign({
module: 'activity',
page: 'shop-collect',
wechatShare: true,
title: req.query.title || '店铺收藏',
width750: true,
showHeader: !req.yoho.isWechat,
shopCollect: {
bannerTop: result
}
... ...
... ... @@ -17,6 +17,7 @@ const singleDay = (req, res) => {
title: title || '超级单品日',
isApp: req.yoho.isApp,
width750: true,
showHeader: !req.yoho.isWechat,
pageHeader: headerModel.setNav({
navTitle: title || '超级单品日',
navBtn: false
... ...
... ... @@ -405,7 +405,7 @@ const favoriteBrand = (req, res, next) => {
if (appVersion && appVersion !== 'false') {
uid = req.query.uid ? crypto.decrypt('', req.query.uid) : req.cookies.appUid;
uid = _.trim(uid);
uid = parseInt(uid, 10);
if (!uid || uid === 'undefined') {
uid = _getUidFromUserAgent(req);
... ...
... ... @@ -56,9 +56,11 @@
{{> updata}}
{{/if}}
{{#unless isApp}}
{{> header}}
{{/unless}}
{{#if showHeader}}
{{#unless isApp}}
{{> header}}
{{/unless}}
{{/if}}
{{{body}}}
... ...