Authored by 郭成尧

'首页折扣专场链接'

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