...
|
...
|
@@ -366,9 +366,9 @@ exports.getSaleDiscountData = (params, channel) => { |
|
|
]).then(result => {
|
|
|
let finalResult = result[0];
|
|
|
|
|
|
//默认order: ''
|
|
|
// 默认order: ''
|
|
|
if (_.isEmpty(params.order)) {
|
|
|
Object.assign(params, {order: ''})
|
|
|
Object.assign(params, {order: ''});
|
|
|
}
|
|
|
|
|
|
// 处理折扣专场标题 banner 数据
|
...
|
...
|
@@ -389,10 +389,10 @@ exports.getSaleDiscountData = (params, channel) => { |
|
|
}
|
|
|
return api.all([
|
|
|
saleApi.getSaleGoodsList({
|
|
|
channel: channel,
|
|
|
saleType: '3',
|
|
|
limit: '1',
|
|
|
productPool: result[1].data[0].product_pool,
|
|
|
channel: channel,
|
|
|
saleType: '3',
|
|
|
limit: '1',
|
|
|
productPool: result[1].data[0].product_pool,
|
|
|
order: ''
|
|
|
}),
|
|
|
saleApi.getSaleGoodsList(Object.assign(params, {productPool: result[1].data[0].product_pool}))
|
...
|
...
|
@@ -401,7 +401,9 @@ exports.getSaleDiscountData = (params, channel) => { |
|
|
// 处理分页等筛选信息
|
|
|
if (subResult[0].code === 200) {
|
|
|
Object.assign(finalResult, {
|
|
|
leftContent: publicHandler.handleSaleSortData(subResult[0].data.filter.group_sort, params, 'discount'),
|
|
|
leftContent: publicHandler.handleSaleSortData(subResult[0].data.filter.group_sort,
|
|
|
params,
|
|
|
'discount'),
|
|
|
saleList: {
|
|
|
footPager: publicHandler.handlePagerData(subResult[0].data.total, params),
|
|
|
opts: publicHandler.handleSaleOptsData(params, subResult[0].data.total, 'default')
|
...
|
...
|
|