...
|
...
|
@@ -105,6 +105,10 @@ const procProductImgs = (item, gender) => { |
|
|
}
|
|
|
};
|
|
|
|
|
|
const procCnAlphabetName = (nameStr) => {
|
|
|
return nameStr.match(/\w/ig).join('');
|
|
|
};
|
|
|
|
|
|
/**
|
|
|
* 商品搜索商品数据处理
|
|
|
*/
|
...
|
...
|
@@ -191,6 +195,8 @@ 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.urlFormat(`/product/pro_${product.product_id}_${_.get(product, 'goods_list[0].goods_id', 0)}/${product.cn_alphabet}.html`, '', 'item'); // eslint-disable-line
|
|
|
|
...
|
...
|
|