...
|
...
|
@@ -106,14 +106,20 @@ const getListData = (params, channel) => { |
|
|
|
|
|
finalResult.list = Object.assign(
|
|
|
searchHandler.handlePathNavData(result[1].data.sort, params, 'sort', channel), {
|
|
|
leftContent: searchHandler.handleSortData(result[1].data.sort, dps)
|
|
|
leftContent: searchHandler.handleSortData(result[1].data.sort, dps, params)
|
|
|
});
|
|
|
}
|
|
|
|
|
|
// 获取商品数据和顶部筛选条件
|
|
|
if (result[2].code === 200) {
|
|
|
let filters = Object.assign(searchHandler.handleFilterDataAll(result[2].data, params),
|
|
|
finalResult.list.leftContent.sort);
|
|
|
|
|
|
filters.checkedConditions.conditions = _.concat(filters.checkedConditions.conditions,
|
|
|
finalResult.list.leftContent.checked);
|
|
|
|
|
|
Object.assign(finalResult.list, {
|
|
|
filters: searchHandler.handleFilterDataAll(result[2].data, params),
|
|
|
filters: filters,
|
|
|
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),
|
...
|
...
|
@@ -184,14 +190,20 @@ const getListNewData = (params, channel) => { |
|
|
if (result[1].code === 200) {
|
|
|
finalResult.list = Object.assign(
|
|
|
searchHandler.handlePathNavData(result[1].data.sort, params, 'new', channel), {
|
|
|
leftContent: searchHandler.handleSortData(result[1].data.sort, dps)
|
|
|
leftContent: searchHandler.handleSortData(result[1].data.sort, dps, params)
|
|
|
});
|
|
|
}
|
|
|
|
|
|
// 获取商品数据和顶部筛选条件
|
|
|
if (result[2].code === 200) {
|
|
|
let filters = Object.assign(searchHandler.handleFilterDataAll(result[2].data, params),
|
|
|
finalResult.list.leftContent.sort);
|
|
|
|
|
|
filters.checkedConditions.conditions = _.concat(filters.checkedConditions.conditions,
|
|
|
finalResult.list.leftContent.checked);
|
|
|
|
|
|
Object.assign(finalResult.list, {
|
|
|
filters: searchHandler.handleFilterDataAll(result[2].data, params),
|
|
|
filters: filters,
|
|
|
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),
|
...
|
...
|
@@ -295,14 +307,20 @@ const getBrandData = (params, extra, channel) => { |
|
|
});
|
|
|
|
|
|
Object.assign(finalResult.brand, {
|
|
|
leftContent: searchHandler.handleSortData(result[1].data.sort, dps)
|
|
|
leftContent: searchHandler.handleSortData(result[1].data.sort, dps, params)
|
|
|
}, searchHandler.handlePathNavData(extra, params, 'brand', channel));
|
|
|
}
|
|
|
|
|
|
// 获取商品数据和顶部筛选条件
|
|
|
if (result[2].code === 200) {
|
|
|
let filters = Object.assign(searchHandler.handleFilterDataAll(result[2].data, params),
|
|
|
finalResult.brand.leftContent.sort);
|
|
|
|
|
|
filters.checkedConditions.conditions = _.concat(filters.checkedConditions.conditions,
|
|
|
finalResult.brand.leftContent.checked);
|
|
|
|
|
|
Object.assign(finalResult.brand, {
|
|
|
filters: searchHandler.handleFilterDataAll(result[2].data, params),
|
|
|
filters: filters,
|
|
|
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),
|
...
|
...
|
|