...
|
...
|
@@ -140,16 +140,17 @@ exports.getSaleIndexData = (channel) => { |
|
|
saleApi.getSaleActivityList('', channel),
|
|
|
saleApi.getSaleBannerList(contentCode[channel].sale),
|
|
|
saleApi.getSaleGoodsList({channel: channel, saleType: '2', limit: '1'}), // 会员专享分类
|
|
|
// saleApi.getSaleGoodsList({channel: channel, saleType: '1', limit: '1'}), // 断码区分类
|
|
|
saleApi.getSalebreakingYardsSortList({channel: channel}), // 断码区尺码数据
|
|
|
saleApi.getSaleGoodsList({channel: channel, saleType: '3', limit: '1'}) // 最新降价分类
|
|
|
]).then(result => {
|
|
|
var finalResult = result[0];
|
|
|
|
|
|
// 折扣专场活动处理
|
|
|
if (result[1].code === 200) {
|
|
|
finalResult.brandSale = saleHandler.handleSaleActivityData(result[1].data, channel);
|
|
|
}
|
|
|
|
|
|
// 资源位数据处理
|
|
|
if (result[2].code === 200) {
|
|
|
finalResult.topBanner = saleHandler.handleSaleBannerData(result[2].data);
|
|
|
finalResult.activityEnter = saleHandler.handleSaleBannerSmallData(result[2].data);
|
...
|
...
|
|