Showing
1 changed file
with
7 additions
and
1 deletions
@@ -9,6 +9,12 @@ | @@ -9,6 +9,12 @@ | ||
9 | const _ = require('lodash'); | 9 | const _ = require('lodash'); |
10 | const helpers = global.yoho.helpers; | 10 | const helpers = global.yoho.helpers; |
11 | const queryString = require('querystring'); | 11 | const queryString = require('querystring'); |
12 | +const indexUrl = { | ||
13 | + boys: helpers.urlFormat('/'), | ||
14 | + girls: helpers.urlFormat('/woman'), | ||
15 | + kids: helpers.urlFormat('/kids'), | ||
16 | + lifestyle: helpers.urlFormat('/lifestyle'), | ||
17 | +} | ||
12 | 18 | ||
13 | // 打折、新品、限量 | 19 | // 打折、新品、限量 |
14 | const checksName = { | 20 | const checksName = { |
@@ -903,7 +909,7 @@ exports.handlePathNavData = (data, params, page, channel) => { | @@ -903,7 +909,7 @@ exports.handlePathNavData = (data, params, page, channel) => { | ||
903 | } | 909 | } |
904 | 910 | ||
905 | let pathNav = [{ | 911 | let pathNav = [{ |
906 | - href: helpers.urlFormat('/'), | 912 | + href: indexUrl[channel], |
907 | name: rootName, // '首页', // TODO 从根据cookie获取频道 | 913 | name: rootName, // '首页', // TODO 从根据cookie获取频道 |
908 | pathTitle: rootName // '首页' | 914 | pathTitle: rootName // '首页' |
909 | }]; | 915 | }]; |
-
Please register or login to post a comment