...
|
...
|
@@ -59,7 +59,7 @@ const brandList = (req, res, next) => { |
|
|
res.render('brand/brand-list', {
|
|
|
layout: false,
|
|
|
brandList: result.brandList
|
|
|
})
|
|
|
});
|
|
|
}).catch(next);
|
|
|
};
|
|
|
|
...
|
...
|
@@ -67,13 +67,13 @@ const categoryData = (req, res, next) => { |
|
|
let code;
|
|
|
let gender = req.query.gender || req.cookies._Channel && channels[req.cookies._Channel] || 1;
|
|
|
|
|
|
if (parseInt(gender) === 1) {
|
|
|
if (parseInt(gender, 10) === 1) {
|
|
|
code = '7f885e9cab53231cff34ea236f3f1120';
|
|
|
} else {
|
|
|
code = 'a6f9dc00219eb7d08520a18864929a30';
|
|
|
}
|
|
|
|
|
|
brandModel.categoryData(code, gender).then(result => {
|
|
|
brandModel.categoryData(code).then(result => {
|
|
|
res.render('brand/category', {
|
|
|
layout: false,
|
|
|
categoryData: result.categoryData
|
...
|
...
|
@@ -97,7 +97,7 @@ const cateAll = (req, res, next) => { |
|
|
// showFooterTab: footerModel.getUrlData('category')
|
|
|
});
|
|
|
}).catch(next);
|
|
|
}
|
|
|
};
|
|
|
|
|
|
module.exports = {
|
|
|
index,
|
...
|
...
|
|