...
|
...
|
@@ -472,9 +472,9 @@ exports.getShopData = (shopId, channel, params, shopInfo) => { |
|
|
list: productProcess.processProductList(_.get(result[2], 'data.product_list', []), {
|
|
|
newCoverSort: true,
|
|
|
showDiscount: false,
|
|
|
gender: gender,
|
|
|
gender: gender
|
|
|
}),
|
|
|
href: `/product/shoplist?navBar=1&shopId=${shopId}`
|
|
|
})
|
|
|
};
|
|
|
|
|
|
_.set(allGoods, 'sort.newPage', true); // 启用新的分页导航
|
...
|
...
|
@@ -521,7 +521,8 @@ exports.getShopData = (shopId, channel, params, shopInfo) => { |
|
|
});
|
|
|
|
|
|
_.forEach(prodList, value => {
|
|
|
coverList[value.productSkn] = value.defaultImages;
|
|
|
coverList[value.product_skn] = helpers.getForceSourceUrl(value.default_images) +
|
|
|
'?imageView/1/w/{width}/h/{height}';
|
|
|
});
|
|
|
|
|
|
if (_.has(finalResult, 'newArrivel.list')) {
|
...
|
...
|
@@ -551,6 +552,31 @@ exports.getShopData = (shopId, channel, params, shopInfo) => { |
|
|
}
|
|
|
}
|
|
|
|
|
|
let articleList = [];
|
|
|
|
|
|
for (let i = 2; i < subRes.length; i++) {
|
|
|
articleList = _.concat(articleList, _.get(subRes[i], 'data', []));
|
|
|
}
|
|
|
|
|
|
if (articleList.length >= 3) {
|
|
|
let trendList = [];
|
|
|
|
|
|
for (let i = 0; i < 3; i++) {
|
|
|
trendList.push({
|
|
|
href: articleList[i].url,
|
|
|
src: articleList[i].src,
|
|
|
mainTitle: articleList[i].title,
|
|
|
Subtitle: articleList[i].intro
|
|
|
});
|
|
|
articleList = _.concat(articleList, _.get(subRes[i], 'data', []));
|
|
|
}
|
|
|
|
|
|
finalResult.trendInfo = {
|
|
|
name: '潮流资讯 HOT ITEMS',
|
|
|
trendList: trendList
|
|
|
};
|
|
|
}
|
|
|
|
|
|
return finalResult;
|
|
|
});
|
|
|
});
|
...
|
...
|
|