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