Merge branch 'develop' into feature/sale
Showing
2 changed files
with
4 additions
and
4 deletions
@@ -44,7 +44,7 @@ const channelPage = (req, res, data) => { | @@ -44,7 +44,7 @@ const channelPage = (req, res, data) => { | ||
44 | gender: data.gender, | 44 | gender: data.gender, |
45 | uid: _.toString(req.user.uid) | 45 | uid: _.toString(req.user.uid) |
46 | }).then(result => { | 46 | }).then(result => { |
47 | - res.render('channel', Object.assign(renderData, data, result)); | 47 | + res.render('channel', Object.assign({}, renderData, data, result)); |
48 | }).catch((err) => { | 48 | }).catch((err) => { |
49 | channelLogger(err, res); | 49 | channelLogger(err, res); |
50 | }); | 50 | }); |
@@ -107,7 +107,7 @@ exports.kids = (req, res) => { | @@ -107,7 +107,7 @@ exports.kids = (req, res) => { | ||
107 | channelPage(req, res, { | 107 | channelPage(req, res, { |
108 | gender: 'kids', | 108 | gender: 'kids', |
109 | title: '潮童首页', | 109 | title: '潮童首页', |
110 | - boysHomePage: true | 110 | + kidsHomePage: true |
111 | }); | 111 | }); |
112 | }; | 112 | }; |
113 | 113 |
1 | <div class="mobile-container"> | 1 | <div class="mobile-container"> |
2 | - <div class="mobile-wrap boys-wrap yoho-page"> | 2 | + <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"> |
3 | {{! 首页header}} | 3 | {{! 首页header}} |
4 | {{#homeHeader}} | 4 | {{#homeHeader}} |
5 | {{> channel/home-header}} | 5 | {{> channel/home-header}} |
@@ -16,7 +16,7 @@ | @@ -16,7 +16,7 @@ | ||
16 | {{! 你可能喜欢}} | 16 | {{! 你可能喜欢}} |
17 | {{#if lifestyleHomePage}} | 17 | {{#if lifestyleHomePage}} |
18 | {{> channel/maybe-like-lifestyle}} | 18 | {{> channel/maybe-like-lifestyle}} |
19 | - {{else}} | 19 | + {{else}} |
20 | {{> channel/maybe-like}} | 20 | {{> channel/maybe-like}} |
21 | {{/if}} | 21 | {{/if}} |
22 | 22 |
-
Please register or login to post a comment