...
|
...
|
@@ -43,14 +43,14 @@ exports.getSearchData = (params) => { |
|
|
// 获取左侧类目数据
|
|
|
if (result[1].code === 200) {
|
|
|
finalResult.search = {
|
|
|
leftContent: searchHandler.handleSortData(result[1].data.sort, params),
|
|
|
pathNav: searchHandler.handlePathNavData({total: result[1].data.total }, params, 'search')
|
|
|
leftContent: searchHandler.handleSortData(result[1].data.sort, params)
|
|
|
};
|
|
|
}
|
|
|
|
|
|
// 获取商品数据和顶部筛选条件
|
|
|
if (result[2].code === 200) {
|
|
|
Object.assign(finalResult.search, {
|
|
|
pathNav: searchHandler.handlePathNavData({total: result[2].data.total }, params, 'search'),
|
|
|
filters: searchHandler.handleFilterData(result[2].data.filter, params),
|
|
|
opts: searchHandler.handleOptsData(params, result[2].data.total, result[2].data.filter),
|
|
|
totalCount: result[2].data.total,
|
...
|
...
|
@@ -58,7 +58,8 @@ exports.getSearchData = (params) => { |
|
|
goods: productProcess.processProductList(result[2].data.product_list,
|
|
|
Object.assign({showDiscount: false}, params)),
|
|
|
latestWalk: 7,
|
|
|
hasNextPage: searchHandler.handleNextPage(params, result[2].data.total)
|
|
|
hasNextPage: searchHandler.handleNextPage(params, result[2].data.total)//,
|
|
|
//brandBanner : isset($data['brand']) && !empty($data['brand']) ? self::getBannerFormat($data['brand'], $options['brandBanner']) : array();
|
|
|
});
|
|
|
}
|
|
|
return finalResult;
|
...
|
...
|
|