...
|
...
|
@@ -44,13 +44,13 @@ exports.getOutletsIndexData = (params, channel) => { |
|
|
outletsApi.getOutletsGoodsList(Object.assign(params, {limit: params.limit || '100'})), // 获取底部商品数据
|
|
|
outletsApi.getOutletsActivityOrigin({type: '3', channel: channel}) // tar add 16171552 即将上线数据
|
|
|
]).then(result => {
|
|
|
let finalResult = {};
|
|
|
|
|
|
finalResult.headerData = {};
|
|
|
finalResult.headerData = result[0].headerData;
|
|
|
finalResult.headerData.header = true;
|
|
|
finalResult.headerData.headType = 'outlets';
|
|
|
|
|
|
let finalResult = {
|
|
|
headerData: Object.assign(result[0].headerData, {
|
|
|
header: true,
|
|
|
headType: 'outlets'
|
|
|
})
|
|
|
};
|
|
|
|
|
|
// 处理资源位数据
|
|
|
if (result[1].code === 200) {
|
...
|
...
|
@@ -129,18 +129,18 @@ exports.getOutletsChannelData = (params, channel) => { |
|
|
}
|
|
|
|
|
|
return api.all(apiArr).then(result => {
|
|
|
let finalResult = {};
|
|
|
|
|
|
finalResult.headerData = {};
|
|
|
finalResult.headerData = result[0].headerData;
|
|
|
finalResult.headerData.header = true;
|
|
|
finalResult.headerData.headType = 'outlets';
|
|
|
let finalResult = {
|
|
|
headerData: Object.assign(result[0].headerData, {
|
|
|
header: true,
|
|
|
headType: 'outlets'
|
|
|
})
|
|
|
};
|
|
|
|
|
|
Object.assign(channelData, finalResult);
|
|
|
|
|
|
if (!channelData.pageErr) {
|
|
|
// 资源楼层
|
|
|
if (result[1].code === 200) {
|
|
|
if (result[1].code === channelData) {
|
|
|
Object.assign(channelData, outletsProcess.processFloor(result[1].data.list, params));
|
|
|
}
|
|
|
|
...
|
...
|
@@ -158,6 +158,13 @@ exports.getOutletsChannelData = (params, channel) => { |
|
|
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 (!_.isEmpty(channelData.goodsBoard.sort.sortType)) {
|
|
|
_.forEach(channelData.goodsBoard.sort.sortType, (value, key) => {
|
|
|
channelData.goodsBoard.sort.sortType[key].href += '#otspool';
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -216,12 +223,12 @@ exports.getOutletsCategoryData = (params, channel) => { |
|
|
return api.all([
|
|
|
headerModel.requestHeaderData('outlets')
|
|
|
]).then(result => {
|
|
|
let finalResult = {};
|
|
|
|
|
|
finalResult.headerData = {};
|
|
|
finalResult.headerData = result[0].headerData;
|
|
|
finalResult.headerData.header = true;
|
|
|
finalResult.headerData.headType = 'outlets';
|
|
|
let finalResult = {
|
|
|
headerData: Object.assign(result[0].headerData, {
|
|
|
header: true,
|
|
|
headType: 'outlets'
|
|
|
})
|
|
|
};
|
|
|
|
|
|
return api.all([
|
|
|
list.getListData(params, channel)
|
...
|
...
|
|