...
|
...
|
@@ -87,7 +87,8 @@ exports.getListData = (params, channel) => { |
|
|
// 获取商品数据和顶部筛选条件
|
|
|
if (result[2].code === 200) {
|
|
|
Object.assign(finalResult.list, {
|
|
|
filters: searchHandler.handleFilterData(result[2].data.filter, params),
|
|
|
//filters: searchHandler.handleFilterData(result[2].data.filter, params),
|
|
|
filters: searchHandler.handleFilterDataAll(result[2].data, params),
|
|
|
opts: searchHandler.handleOptsData(params, result[2].data.total, result[2].data.filter),
|
|
|
totalCount: result[2].data.total,
|
|
|
footPager: searchHandler.handlePagerData(result[2].data.total, params),
|
...
|
...
|
@@ -96,12 +97,12 @@ exports.getListData = (params, channel) => { |
|
|
});
|
|
|
|
|
|
// 获取高级筛选条件
|
|
|
if (finalResult.list && finalResult.list.filters) {
|
|
|
/*if (finalResult.list && finalResult.list.filters) {
|
|
|
Object.assign(finalResult.list.filters, searchHandler.handleSeniorFilterData({
|
|
|
style: _.get(result[2], 'data.filter.style', []),
|
|
|
standard: _.get(result[2], 'data.standard', [])
|
|
|
}, params));
|
|
|
}
|
|
|
}*/
|
|
|
}
|
|
|
|
|
|
// 分类介绍
|
...
|
...
|
@@ -126,7 +127,7 @@ exports.getListNewData = (params, channel) => { |
|
|
let apiMethod = [
|
|
|
headerModel.requestHeaderData(channel),
|
|
|
searchApi.getSortList(),
|
|
|
searchApi.getProductList(params),
|
|
|
searchApi.getProductList(Object.assign({new: 'Y'}, params)),
|
|
|
searchApi.getWeekNew(params)
|
|
|
];
|
|
|
|
...
|
...
|
@@ -151,7 +152,8 @@ exports.getListNewData = (params, channel) => { |
|
|
// 获取商品数据和顶部筛选条件
|
|
|
if (result[2].code === 200) {
|
|
|
Object.assign(finalResult.list, {
|
|
|
filters: searchHandler.handleFilterData(result[2].data.filter, params),
|
|
|
//filters: searchHandler.handleFilterData(result[2].data.filter, params),
|
|
|
filters: searchHandler.handleFilterDataAll(result[2].data, params),
|
|
|
opts: searchHandler.handleOptsData(params, result[2].data.total, result[2].data.filter),
|
|
|
totalCount: result[2].data.total,
|
|
|
footPager: searchHandler.handlePagerData(result[2].data.total, params),
|
...
|
...
|
@@ -160,12 +162,12 @@ exports.getListNewData = (params, channel) => { |
|
|
});
|
|
|
|
|
|
// 获取高级筛选条件
|
|
|
if (finalResult.list && finalResult.list.filters) {
|
|
|
/*if (finalResult.list && finalResult.list.filters) {
|
|
|
Object.assign(finalResult.list.filters, searchHandler.handleSeniorFilterData({
|
|
|
style: _.get(result[2], 'data.filter.style', []),
|
|
|
standard: _.get(result[2], 'data.standard', [])
|
|
|
}, params));
|
|
|
}
|
|
|
}*/
|
|
|
}
|
|
|
|
|
|
// 新品上架
|
...
|
...
|
@@ -516,7 +518,8 @@ exports.getShopListData = (channel, params) => { |
|
|
}
|
|
|
|
|
|
Object.assign(finalResult, {
|
|
|
filters: searchHandler.handleFilterData(_.get(result[2], 'data.filter', {}), params),
|
|
|
//filters: searchHandler.handleFilterData(_.get(result[2], 'data.filter', {}), params),
|
|
|
filters: searchHandler.handleFilterDataAll(result[2].data, params),
|
|
|
opts: searchHandler.handleOptsData(params, tip.total),
|
|
|
goods: productProcess.processProductList(_.get(result[2], 'data.product_list', []), {
|
|
|
newCoverSort: true,
|
...
|
...
|
@@ -527,12 +530,12 @@ exports.getShopListData = (channel, params) => { |
|
|
});
|
|
|
|
|
|
// 获取高级筛选条件
|
|
|
if (finalResult.list && finalResult.list.filters) {
|
|
|
/*if (finalResult.list && finalResult.list.filters) {
|
|
|
Object.assign(finalResult.list.filters, searchHandler.handleSeniorFilterData({
|
|
|
style: _.get(result[2], 'data.filter.style', []),
|
|
|
standard: _.get(result[2], 'data.standard', [])
|
|
|
}, params));
|
|
|
}
|
|
|
}*/
|
|
|
}
|
|
|
|
|
|
if (result[3].code === 200) {
|
...
|
...
|
|