Showing
4 changed files
with
10 additions
and
2 deletions
@@ -49,6 +49,7 @@ exports.boys = (req, res) => { | @@ -49,6 +49,7 @@ exports.boys = (req, res) => { | ||
49 | module: mod, | 49 | module: mod, |
50 | page: 'home', | 50 | page: 'home', |
51 | title: '男生首页', | 51 | title: '男生首页', |
52 | + boysHomePage: true, | ||
52 | homeHeader: { | 53 | homeHeader: { |
53 | searchUrl: helpers.url('/search', null, 'search') | 54 | searchUrl: helpers.url('/search', null, 'search') |
54 | }, | 55 | }, |
@@ -36,7 +36,13 @@ const processSideBar = (list) => { | @@ -36,7 +36,13 @@ const processSideBar = (list) => { | ||
36 | item = camelCase.listCamelCase(item); | 36 | item = camelCase.listCamelCase(item); |
37 | 37 | ||
38 | if (item.sub) { | 38 | if (item.sub) { |
39 | - let sub = []; | 39 | + let sub = [{ |
40 | + textCn: '逛', | ||
41 | + textEn: 'TrendFinder', | ||
42 | + back: true, | ||
43 | + isSelect: false, | ||
44 | + bgColor: '#000' | ||
45 | + }]; | ||
40 | 46 | ||
41 | _.forEach(item.sub, (s) => { | 47 | _.forEach(item.sub, (s) => { |
42 | s = camelCase.listCamelCase(s); // 子菜单键名驼峰化 | 48 | s = camelCase.listCamelCase(s); // 子菜单键名驼峰化 |
@@ -23,6 +23,7 @@ | @@ -23,6 +23,7 @@ | ||
23 | {{#if sub}} | 23 | {{#if sub}} |
24 | <ul class="sub-nav"> | 24 | <ul class="sub-nav"> |
25 | {{# sub}} | 25 | {{# sub}} |
26 | + {{log this}} | ||
26 | <li class="{{# isSelect}}current{{/ isSelect}}" style="background-color:{{bgColor}};"> | 27 | <li class="{{# isSelect}}current{{/ isSelect}}" style="background-color:{{bgColor}};"> |
27 | {{#if sortUrl}} | 28 | {{#if sortUrl}} |
28 | <a href="{{sortUrl}}" style="{{#if sortNameColor}}color:{{sortNameColor}};{{/if}}"> | 29 | <a href="{{sortUrl}}" style="{{#if sortNameColor}}color:{{sortNameColor}};{{/if}}"> |
@@ -17,7 +17,7 @@ const config = require('../config/common'); | @@ -17,7 +17,7 @@ const config = require('../config/common'); | ||
17 | * @return {[tring]} | 17 | * @return {[tring]} |
18 | */ | 18 | */ |
19 | exports.image = (url, width, height, mode) => { | 19 | exports.image = (url, width, height, mode) => { |
20 | - mode = _.isNumber(mode) ? mode : 1; | 20 | + mode = _.isNumber(mode) ? mode : 2; |
21 | return url.replace(/{width}/g, width).replace(/{height}/g, height).replace(/{mode}/g, mode); | 21 | return url.replace(/{width}/g, width).replace(/{height}/g, height).replace(/{mode}/g, mode); |
22 | }; | 22 | }; |
23 | 23 |
-
Please register or login to post a comment