...
|
...
|
@@ -102,10 +102,6 @@ const procProductImgs = (item, gender) => { |
|
|
}
|
|
|
};
|
|
|
|
|
|
const procCnAlphabetName = (nameStr) => {
|
|
|
return nameStr.match(/\w/ig).join('');
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* 商品搜索商品数据处理
|
|
|
*/
|
...
|
...
|
@@ -198,8 +194,6 @@ exports.processProductList = (list, options) => { |
|
|
thumb: product.default_images
|
|
|
});
|
|
|
|
|
|
product.cn_alphabet = procCnAlphabetName(product.cn_alphabet);
|
|
|
|
|
|
product.is_few = product.is_soon_sold_out === 'Y';
|
|
|
product.url = helpers.getUrlBySkc(product.product_id, _.get(product, 'goods_list[0].goods_id'), product.cn_alphabet);// eslint-disable-line
|
|
|
|
...
|
...
|
|