Merge branch 'feature/guang2' into 'release/5.8'
goods-limit See merge request !630
Showing
1 changed file
with
13 additions
and
2 deletions
@@ -314,20 +314,31 @@ const processArticleDetail = (articleContent, isApp, gender, isWeixin, isqq, isW | @@ -314,20 +314,31 @@ const processArticleDetail = (articleContent, isApp, gender, isWeixin, isqq, isW | ||
314 | } | 314 | } |
315 | } | 315 | } |
316 | 316 | ||
317 | - // 相关商品 170505 更改了前端样式 | ||
318 | - if (_.get(value, 'goods.data', false) || _.get(value, 'goods.dataGlobal', false)) { | 317 | + // 相关商品 |
318 | + if (_.get(value, 'goods.data', false) || | ||
319 | + _.get(value, 'goods.dataGlobal', false) || | ||
320 | + _.get(value, 'goods.dataLimit', false)) { | ||
319 | let goodsData = _.get(value, 'goods.data', []); | 321 | let goodsData = _.get(value, 'goods.data', []); |
320 | let goodsDataGlobal = _.get(value, 'goods.dataGlobal', []); | 322 | let goodsDataGlobal = _.get(value, 'goods.dataGlobal', []); |
323 | + let goodsDataLimit = _.get(value, 'goods.dataLimit', []); | ||
321 | 324 | ||
325 | + // 普通商品 | ||
322 | _.forEach(goodsData, item => { | 326 | _.forEach(goodsData, item => { |
323 | allgoods += item.id + ','; | 327 | allgoods += item.id + ','; |
324 | }); | 328 | }); |
325 | 329 | ||
330 | + // 全球购商品 | ||
326 | _.forEach(goodsDataGlobal, item => { | 331 | _.forEach(goodsDataGlobal, item => { |
327 | allgoods += item.id + ','; | 332 | allgoods += item.id + ','; |
328 | goodsData.push(item); | 333 | goodsData.push(item); |
329 | }); | 334 | }); |
330 | 335 | ||
336 | + // 限定商品 | ||
337 | + _.forEach(goodsDataLimit, item => { | ||
338 | + allgoods += item.id + ','; | ||
339 | + goodsData.push(item); | ||
340 | + }); | ||
341 | + | ||
331 | finalDetail.push({ | 342 | finalDetail.push({ |
332 | relatedReco: { | 343 | relatedReco: { |
333 | isApp: isApp, | 344 | isApp: isApp, |
-
Please register or login to post a comment