Showing
1 changed file
with
10 additions
and
2 deletions
@@ -203,8 +203,16 @@ exports.processProductList = (list, options) => { | @@ -203,8 +203,16 @@ exports.processProductList = (list, options) => { | ||
203 | product.is_few = product.is_soon_sold_out === 'Y'; | 203 | product.is_few = product.is_soon_sold_out === 'Y'; |
204 | product.url = helpers.getUrlBySkc(product.product_id, _.get(product, 'goods_list[0].goods_id'), product.cn_alphabet);// eslint-disable-line | 204 | product.url = helpers.getUrlBySkc(product.product_id, _.get(product, 'goods_list[0].goods_id'), product.cn_alphabet);// eslint-disable-line |
205 | 205 | ||
206 | - // tar add 1606071146 品牌链接处理 | ||
207 | - product.brandUrl = helpers.urlFormat('', '', product.brand_domain); | 206 | + // 4.6需求 商品列表显示店铺名 |
207 | + if (product.shop_id * 1) { | ||
208 | + product.brand_name = product.shop_name; | ||
209 | + product.brandUrl = helpers.urlFormat('', { | ||
210 | + shopId: product.shop_id | ||
211 | + }, product.shop_domain || 'default-domain'); | ||
212 | + } else { | ||
213 | + // tar add 1606071146 品牌链接处理 | ||
214 | + product.brandUrl = helpers.urlFormat('', '', product.brand_domain); | ||
215 | + } | ||
208 | 216 | ||
209 | // TODO 删除from参数,暂时保留注释 | 217 | // TODO 删除from参数,暂时保留注释 |
210 | // if (itemFrom) { | 218 | // if (itemFrom) { |
-
Please register or login to post a comment