Authored by 郭成尧

'首页折扣专场链接'

@@ -581,7 +581,7 @@ exports.handleSaleActivityData = (origin, channel) => { @@ -581,7 +581,7 @@ exports.handleSaleActivityData = (origin, channel) => {
581 let activity = {}; 581 let activity = {};
582 582
583 activity.link = 583 activity.link =
584 - helpers.urlFormat('/sale/discount/detail', {id: value.id, channel: channel}); 584 + helpers.urlFormat('/product/sale/discount/detail', {id: value.id, channel: channel});
585 activity.img = value.cover_url; 585 activity.img = value.cover_url;
586 activity.time = processTime(value.left_time); 586 activity.time = processTime(value.left_time);
587 activity.brand = value.logo_url; 587 activity.brand = value.logo_url;
@@ -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);