...
|
...
|
@@ -237,8 +237,10 @@ exports.getSaleOthersData = (params, channel) => { |
|
|
if (result[1].code === 200) {
|
|
|
finalResult.goods = productProcess.processProductList(result[1].data.product_list);
|
|
|
|
|
|
if (!_.isEmpty(result[1].data.filter)) {
|
|
|
// 顶部筛选条件
|
|
|
finalResult.filters = saleHandler.handleSaleFilterData(result[1].data.filter, params);
|
|
|
}
|
|
|
|
|
|
// 处理排序数据
|
|
|
finalResult.opts = saleHandler.handleSaleOptsData(params, result[1].data.total);
|
...
|
...
|
@@ -387,9 +389,13 @@ exports.getSalebreakingYardsData = (params, channel) => { |
|
|
|
|
|
// 处理商品数据
|
|
|
if (subResult[1].code === 200) {
|
|
|
|
|
|
if (!_.isEmpty(subResult[1].data.filter)) {
|
|
|
finalResult.filters = saleHandler.handleSaleFilterData(
|
|
|
Object.assign(subResult[1].data.filter, {size: result[2].data}),
|
|
|
params);
|
|
|
}
|
|
|
|
|
|
finalResult.goods = productProcess.processProductList(subResult[1].data.product_list);
|
|
|
finalResult.opts = saleHandler.handleSaleOptsData(params, subResult[1].data.total);
|
|
|
finalResult.totalCount = subResult[1].data.total;
|
...
|
...
|
|