...
|
...
|
@@ -41,7 +41,7 @@ exports.getOutletsIndexData = (params, channel) => { |
|
|
outletsApi.getOutletsActivityOrigin({type: '1', channel: channel}), // 获取限时活动列表
|
|
|
outletsApi.getOutletsActivityOrigin({type: '2', channel: channel}), // 获取即将结束列表
|
|
|
outletsApi.getOutletsTrendData({limit: '30'}), // 获取潮流速递商品数据
|
|
|
outletsApi.getOutletsGoodsList({limit: params.limit || '100'}), // 获取底部商品数据
|
|
|
outletsApi.getOutletsGoodsList(Object.assign(params, {limit: params.limit || '100'})), // 获取底部商品数据
|
|
|
outletsApi.getOutletsActivityOrigin({type: '3', channel: channel}) // tar add 16171552 即将上线数据
|
|
|
]).then(result => {
|
|
|
let finalResult = {};
|
...
|
...
|
@@ -77,9 +77,17 @@ exports.getOutletsIndexData = (params, channel) => { |
|
|
// 处理底部商品数据
|
|
|
if (result[5].code === 200) {
|
|
|
finalResult.goodsBoard = {
|
|
|
list: productProcess.processProductList(result[5].data.product_list),
|
|
|
sort: Object.assign(publicHandler.handleSaleOptsData(params, result[5].data.total), {newPage: true})
|
|
|
sort: Object.assign(publicHandler.handleSaleOptsData(params, result[5].data.total), {newPage: true}),
|
|
|
list: productProcess.processProductList(result[5].data.product_list)
|
|
|
};
|
|
|
|
|
|
// 添加锚点
|
|
|
if (!_.isEmpty(finalResult.goodsBoard.sort.sortType)) {
|
|
|
_.forEach(finalResult.goodsBoard.sort.sortType, (value, key) => {
|
|
|
finalResult.goodsBoard.sort.sortType[key].href += '#otspool';
|
|
|
});
|
|
|
}
|
|
|
|
|
|
finalResult.pager = publicHandler.handleSalePagerData(result[5].data.total, params);
|
|
|
}
|
|
|
|
...
|
...
|
|