...
|
...
|
@@ -37,11 +37,11 @@ exports.getOutletsIndexData = (params, channel) => { |
|
|
|
|
|
return api.all([
|
|
|
headerModel.requestHeaderData('outlets'),
|
|
|
outletsApi.getChannelResouceData({ content_code: channelCode.index }),
|
|
|
outletsApi.getOutletsActivityOrigin({ type: '1', channel: channel }), // 获取限时活动列表
|
|
|
outletsApi.getOutletsActivityOrigin({ type: '2', channel: channel }), // 获取即将结束列表
|
|
|
outletsApi.getOutletsTrendData({ limit: '30' }), // 获取潮流速递商品数据
|
|
|
outletsApi.getOutletsGoodsList({ limit: params.limit || '100' }) // 获取底部商品数据
|
|
|
outletsApi.getChannelResouceData({content_code: channelCode.index}),
|
|
|
outletsApi.getOutletsActivityOrigin({type: '1', channel: channel}), // 获取限时活动列表
|
|
|
outletsApi.getOutletsActivityOrigin({type: '2', channel: channel}), // 获取即将结束列表
|
|
|
outletsApi.getOutletsTrendData({limit: '30'}), // 获取潮流速递商品数据
|
|
|
outletsApi.getOutletsGoodsList({limit: params.limit || '100'}) // 获取底部商品数据
|
|
|
|
|
|
]).then(result => {
|
|
|
let finalResult = {};
|
...
|
...
|
@@ -76,9 +76,10 @@ exports.getOutletsIndexData = (params, channel) => { |
|
|
|
|
|
// 处理底部商品数据
|
|
|
if (result[5].code === 200) {
|
|
|
finalResult.goodsBoard.list = productProcess.processProductList(result[5].data.product_list);
|
|
|
finalResult.goodsBoard.sort = publicHandler.handleSaleOptsData(params, result[5].data.total);
|
|
|
finalResult.goodsBoard.sort.newPage = true;
|
|
|
finalResult.goodsBoard = {
|
|
|
list: productProcess.processProductList(result[5].data.product_list),
|
|
|
sort: Object.assign(publicHandler.handleSaleOptsData(params, result[5].data.total), {newPage: true})
|
|
|
};
|
|
|
finalResult.pager = publicHandler.handleSalePagerData(result[5].data.total, params);
|
|
|
}
|
|
|
|
...
|
...
|
@@ -129,6 +130,7 @@ exports.getOutletsChannelData = (params, channel) => { |
|
|
if (result[1].code === 200) {
|
|
|
Object.assign(channelData, outletsProcess.processFloor(result[1].data.list, params));
|
|
|
}
|
|
|
|
|
|
// 限时嗨购
|
|
|
if (result[2].code === 200) {
|
|
|
channelData.nearOver = outletsProcess.handleOutletsActivityData(result[2].data, '限时嗨购');
|
...
|
...
|
|