Authored by 周少峰

header type

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