...
|
...
|
@@ -44,9 +44,7 @@ const handleGoodsListData = (origin) => { |
|
|
if (!_.isEmpty(value.goods_list)) {
|
|
|
_.forEach(value.goods_list, (subValue, subKey) => {
|
|
|
origin[key].goods_list[subKey].url =
|
|
|
helpers.urlFormat(
|
|
|
`/product/pro_${value.product_id}_${subValue.goods_id}` +
|
|
|
`/${value.cn_alphabet}.html`);
|
|
|
helpers.getUrlBySkc(value.product_id, subValue.goods_id, value.cn_alphabet);
|
|
|
});
|
|
|
}
|
|
|
});
|
...
|
...
|
@@ -198,7 +196,7 @@ exports.processProductList = (list, options) => { |
|
|
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
|
|
|
product.url = helpers.getUrlBySkc(product.product_id, _.get(product, 'goods_list[0].goods_id'), product.cn_alphabet);// eslint-disable-line
|
|
|
|
|
|
// tar add 1606071146 品牌链接处理
|
|
|
product.brandUrl = helpers.urlFormat('', '', product.brand_domain);
|
...
|
...
|
@@ -446,8 +444,7 @@ exports.processProduct = (productData, options) => { |
|
|
}
|
|
|
|
|
|
result.is_soon_sold_out = (productData.is_soon_sold_out === 'Y');
|
|
|
result.url = helpers.urlFormat(`/product/pro_${productData.product_id}_${productData.goods_list[0].goods_id}/${productData.cn_alphabet}.html`, null, 'item'); // eslint-disable-line
|
|
|
|
|
|
result.url = helpers.getUrlBySkc(productData.product_id, _.get(productData, "goods_list[0].goods_id"), productData.cn_alphabet);// eslint-disable-line
|
|
|
|
|
|
if (options.showTags) {
|
|
|
result.tags = {};
|
...
|
...
|
|