Authored by 周少峰

header type

... ... @@ -41,7 +41,7 @@ const shop = (shopId, req, res, next) => {
exports.index = (req, res, next) => {
let resData = {};
list.getListData(req.query).then(result => {
list.getListData(req.query, req.yoho.channel).then(result => {
Object.assign(resData, result);
res.render('list/index', resData);
}).catch(next);
... ...
... ... @@ -46,10 +46,10 @@ const _getGender = (channel) => {
/**
* 获取商品分类列表数据
*/
exports.getListData = (params) => {
exports.getListData = (params, channel) => {
// 调用接口
let apiMethod = [
headerModel.requestHeaderData(),
headerModel.requestHeaderData(channel),
searchApi.getSortList(),
searchApi.getProductList(params)
];
... ...