...
|
...
|
@@ -82,10 +82,12 @@ const _handelGlobalSort = (origin, params, originParams) => { |
|
|
_.forEach(origin, value => {
|
|
|
let equalCategory = _checkSortEqual(value.relation_parameter, originParams);
|
|
|
let category = {
|
|
|
categoryId: value.category_id,
|
|
|
name: value.category_name,
|
|
|
num: value.node_count,
|
|
|
childList: [
|
|
|
{
|
|
|
categoryId: value.category_id,
|
|
|
name: `全部${value.category_name}`,
|
|
|
num: value.node_count,
|
|
|
href: `${searchHandler.handleFilterUrl(params, value.relation_parameter)}`,
|
...
|
...
|
@@ -108,6 +110,7 @@ const _handelGlobalSort = (origin, params, originParams) => { |
|
|
|
|
|
_.forEach(value.sub, subValue => {
|
|
|
let child = {
|
|
|
categoryId: subValue.category_id,
|
|
|
name: subValue.category_name,
|
|
|
num: subValue.node_count,
|
|
|
href: `${searchHandler.handleFilterUrl(params, subValue.relation_parameter)}`,
|
...
|
...
|
@@ -197,6 +200,7 @@ const getGlobalProductListData = (params, yoho) => { |
|
|
|
|
|
// pathNav brand
|
|
|
let pathInfo = {};
|
|
|
let fillCondition = _.get(resData, 'list.filters.checkedConditions.conditions');
|
|
|
|
|
|
if (dps.brand) {
|
|
|
let brandName = _.get(result.brand, 'data.brand_name', '');
|
...
|
...
|
@@ -205,6 +209,11 @@ const getGlobalProductListData = (params, yoho) => { |
|
|
pathInfo.brand = {
|
|
|
name: brandName
|
|
|
};
|
|
|
// 添加品信息for seo
|
|
|
fillCondition = _.concat([{
|
|
|
name: brandName,
|
|
|
itemType: 'brand'
|
|
|
}], fillCondition);
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
@@ -216,6 +225,12 @@ const getGlobalProductListData = (params, yoho) => { |
|
|
}
|
|
|
|
|
|
Object.assign(resData.list, _handelGlobalPathNav(pathInfo, yoho.channel, 'global-list'));
|
|
|
|
|
|
let seo = searchHandler.getListSeo(yoho.channel,
|
|
|
_.get(resData, 'list.leftContent.allSort.list'),
|
|
|
fillCondition);
|
|
|
|
|
|
Object.assign(resData, seo);
|
|
|
}
|
|
|
|
|
|
return resData;
|
...
|
...
|
|