Authored by 郭成尧

首页数据全了

... ... @@ -2,7 +2,7 @@
* @Author: Targaryen
* @Date: 2016-05-30 16:20:03
* @Last Modified by: Targaryen
* @Last Modified time: 2016-06-02 13:53:24
* @Last Modified time: 2016-06-02 14:26:27
*/
'use strict';
... ... @@ -34,7 +34,8 @@ exports.getOutletsIndexData = (params) => {
outletsApi.getChannelResouceData({ content_code: channelCode.index }),
outletsApi.getOutletsActivityOrigin(params), // 获取限时活动列表
outletsApi.getOutletsActivityOrigin(params), // 获取即将结束列表
outletsApi.getOutletsTrendData(params)
outletsApi.getOutletsTrendData(params), // 获取潮流速递商品数据
saleApi.getSaleGoodsList(params) // 获取底部商品数据
]).then(result => {
let finalResult = {};
... ... @@ -60,6 +61,11 @@ exports.getOutletsIndexData = (params) => {
finalResult.limitedBuy.extra.trendGood = outletsProcess.handleOutletstrendGoodData(result[3].data);
}
// 处理底部商品数据
if (result[4].code === 200) {
finalResult.goodsBoard.list = productProcess.processProductList(result[4].data.product_list);
}
return finalResult;
});
};
... ...