...
|
...
|
@@ -8,18 +8,19 @@ |
|
|
const mRoot = '../models';
|
|
|
const plustarModel = require(`${mRoot}/plustar`);
|
|
|
const headerModel = require('../../../doraemon/models/header'); // 头部model
|
|
|
// let channels = {
|
|
|
// boys: 1,
|
|
|
// girl: 2,
|
|
|
// kids: 3,
|
|
|
// lifestyle: 4
|
|
|
// };
|
|
|
let channels = {
|
|
|
boys: 1,
|
|
|
girl: 2,
|
|
|
kids: 3,
|
|
|
lifestyle: 4
|
|
|
};
|
|
|
|
|
|
const getListData = (req, res, next) => {
|
|
|
let gender = req.query.gender || req.cookies._Channel && channels[req.cookies._Channel] || 1;
|
|
|
let recom = '4';
|
|
|
let all = '1';
|
|
|
//console.log(gender);
|
|
|
|
|
|
// console.log(gender);
|
|
|
|
|
|
plustarModel.getListData(gender, recom, all).then((result) => {
|
|
|
|
...
|
...
|
@@ -32,11 +33,11 @@ const getListData = (req, res, next) => { |
|
|
ps: {
|
|
|
sName: '设计师',
|
|
|
pName: '经典潮牌'
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}).catch(next);
|
|
|
};
|
|
|
|
|
|
module.exports = {
|
|
|
getListData
|
|
|
}; |
|
|
\ No newline at end of file |
|
|
}; |
...
|
...
|
|