Authored by zhangxiaoru

guang url

... ... @@ -154,13 +154,11 @@ const pageData = (req, res, next) => {
*/
const index = (req, res, next) => {
let gender = req.cookies._Channel || 'boys';
let responseData = {
module: 'guang',
page: 'index',
title: '逛 | Yoho!Buy有货 | 潮流购物逛不停',
showFooterTab: footerModel.getUrlData('guang', gender)
showFooterTab: footerModel.getUrlData('guang')
};
let param = {
... ...
... ... @@ -23,8 +23,6 @@ exports.index = (req, res, next) => {
udid: require('md5')(req.ip)
};
let gender = req.cookies._Channel || 'boys';
indexModel.index(params).then(result => {
if (result) {
res.render('home', Object.assign(result, {
... ... @@ -36,7 +34,7 @@ exports.index = (req, res, next) => {
pageChannel: {
boys: true
},
showFooterTab: footerModel.getUrlData('mine', gender)
showFooterTab: footerModel.getUrlData('mine')
}));
}
}).catch(next);
... ...