Authored by 王水玲

Merge branch 'feature/sale' of http://git.dev.yoho.cn/web/yohobuywap-node into feature/sale

... ... @@ -44,7 +44,7 @@ const channelPage = (req, res, data) => {
gender: data.gender,
uid: _.toString(req.user.uid)
}).then(result => {
res.render('channel', Object.assign(renderData, data, result));
res.render('channel', Object.assign({}, renderData, data, result));
}).catch((err) => {
channelLogger(err, res);
});
... ... @@ -107,7 +107,7 @@ exports.kids = (req, res) => {
channelPage(req, res, {
gender: 'kids',
title: '潮童首页',
boysHomePage: true
kidsHomePage: true
});
};
... ...
<div class="mobile-container">
<div class="mobile-wrap boys-wrap yoho-page">
<div class="mobile-wrap {{#if boysHomePage}}boys-wrap{{/if}} {{#if girlsHomePage}}girls-wrap{{/if}} {{#if kidsHomePage}}kids-wrap{{/if}} {{#if lifestyleHomePage}}lifestyle-wrap{{/if}} yoho-page">
{{! 首页header}}
{{#homeHeader}}
{{> channel/home-header}}
... ... @@ -16,7 +16,7 @@
{{! 你可能喜欢}}
{{#if lifestyleHomePage}}
{{> channel/maybe-like-lifestyle}}
{{else}}
{{else}}
{{> channel/maybe-like}}
{{/if}}
... ...