Authored by yyq

list parameter

... ... @@ -47,6 +47,20 @@ const _getGender = (channel) => {
* 获取商品分类列表数据
*/
const getListData = (params, channel) => {
let standard = [];
_.forEach(params, (value, key) => {
let s = _.split(key, 'parameter_', 2);
if (s.length > 1) {
standard.push(`${s[1]}_${value}`);
_.unset(params, `${key}`);
}
});
if (standard.length) {
params.standard = standard.join(',');
}
let searchParams = searchHandler.getSearchParams(params);
... ... @@ -576,7 +590,7 @@ const getShopData = (shopId, channel, params, shopInfo) => {
'?imageView/1/w/{width}/h/{height}',
title: value.product_name,
price: ${value.sales_price}`
}
};
});
if (_.has(finalResult, 'newArrivel.list')) {
... ... @@ -805,4 +819,4 @@ module.exports = {
getShopData,
getShopListData,
getBaseShopData
}
};
... ...