...
|
...
|
@@ -771,23 +771,23 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
});
|
|
|
|
|
|
_.forEach(value.sub, (subValue, subKey) => {
|
|
|
value.sub[subKey].url = helpers.urlFormat('/product/search/list', {
|
|
|
value.sub[subKey].url = helpers.urlFormat('', {
|
|
|
shop_id: params.shopId,
|
|
|
sort: _.get(subValue, 'relation_parameter.sort', ''),
|
|
|
title: subValue.category_name,
|
|
|
query: subValue.category_name
|
|
|
});
|
|
|
}, 'search');
|
|
|
});
|
|
|
|
|
|
let subCategory = [
|
|
|
{
|
|
|
category_name: '全部' + value.category_name,
|
|
|
url: helpers.urlFormat('/product/search/list', {
|
|
|
url: helpers.urlFormat('', {
|
|
|
shop_id: params.shopId,
|
|
|
sort: _.get(value, 'relation_parameter.sort', ''),
|
|
|
title: '全部' + value.category_name,
|
|
|
query: value.category_name
|
|
|
})
|
|
|
}, 'search')
|
|
|
}
|
|
|
];
|
|
|
|
...
|
...
|
@@ -798,9 +798,9 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
});
|
|
|
});
|
|
|
|
|
|
finalResult.allProduct = helpers.urlFormat('/product/search/list', {
|
|
|
finalResult.allProduct = helpers.urlFormat('', {
|
|
|
shop_id: params.shopId
|
|
|
});
|
|
|
}, 'search');
|
|
|
|
|
|
return finalResult;
|
|
|
});
|
...
|
...
|
|