...
|
...
|
@@ -140,7 +140,8 @@ 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.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];
|
...
|
...
|
@@ -167,10 +168,26 @@ exports.getSaleIndexData = (channel) => { |
|
|
|
|
|
// 断码区分类处理
|
|
|
if (result[4].code === 200) {
|
|
|
let breakingSizeSort = saleHandler.handleSaleBreakingSizeData(result[4].data);
|
|
|
|
|
|
return api.all([saleApi.getSaleGoodsList({
|
|
|
channel: channel,
|
|
|
saleType: '1',
|
|
|
limit: '1'
|
|
|
})]).then(subResult => {
|
|
|
if (subResult[0].code === 200) {
|
|
|
finalResult.saleCategory.push(
|
|
|
saleHandler.handleSaleCategoryData(
|
|
|
subResult[0].data.filter.group_sort,
|
|
|
'1',
|
|
|
channel,
|
|
|
breakingSizeSort
|
|
|
)
|
|
|
);
|
|
|
return finalResult;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
finalResult.saleCategory.push(
|
|
|
saleHandler.handleSaleCategoryData(result[4].data.filter.group_sort, '1', channel)
|
|
|
);
|
|
|
}
|
|
|
|
|
|
// 最新降价分类处理
|
...
|
...
|
|