Authored by 周少峰

outlets channel

... ... @@ -161,24 +161,21 @@ exports.getOutletsChannelData = (params, channel) => {
// 商品列表
if (result[3].code === 200) {
if (!channelData.goodsBoard) {
channelData.goodsBoard = {};
}
channelData.goodsBoard.sort = publicHandler.handleSaleOptsData(params, result[3].data.total);
channelData.goodsBoard.sort.newPage = true;
channelData.goodsBoard.list = productProcess.processProductList(result[3].data.product_list);
channelData.pager = publicHandler.handleSalePagerData(result[3].data.total, params);
// 添加锚点
if (channelData.goodsBoard.sort.sortType) {
_.forEach(channelData.goodsBoard.sort.sortType, (value, key) => {
channelData.goodsBoard.sort.sortType[key].href += '#otspool';
});
if (finalResult.goodsBoard.sort.preHref) {
finalResult.goodsBoard.sort.preHref += '#otspool';
if (channelData.goodsBoard.sort.preHref) {
channelData.goodsBoard.sort.preHref += '#otspool';
}
if (finalResult.goodsBoard.sort.nextHref) {
finalResult.goodsBoard.sort.nextHref += '#otspool';
if (channelData.goodsBoard.sort.nextHref) {
channelData.goodsBoard.sort.nextHref += '#otspool';
}
}
}
... ...