Showing
1 changed file
with
5 additions
and
4 deletions
@@ -186,7 +186,7 @@ const detailDataPkg = (origin, uid, vipLevel, ua) => { | @@ -186,7 +186,7 @@ const detailDataPkg = (origin, uid, vipLevel, ua) => { | ||
186 | 186 | ||
187 | // 商品返回 YOHO 币 | 187 | // 商品返回 YOHO 币 |
188 | if (origin.productPriceBo.yohoCoinNum !== null && origin.productPriceBo.yohoCoinNum !== 0) { | 188 | if (origin.productPriceBo.yohoCoinNum !== null && origin.productPriceBo.yohoCoinNum !== 0) { |
189 | - dest.commodityReturn = dest.productPriceBo.yohoCoinNum; | 189 | + dest.commodityReturn = origin.productPriceBo.yohoCoinNum; |
190 | } | 190 | } |
191 | } | 191 | } |
192 | 192 | ||
@@ -413,14 +413,15 @@ const detailDataPkg = (origin, uid, vipLevel, ua) => { | @@ -413,14 +413,15 @@ const detailDataPkg = (origin, uid, vipLevel, ua) => { | ||
413 | 413 | ||
414 | // 商品图:多个 | 414 | // 商品图:多个 |
415 | if (goodsGroup[1] !== null && typeof goodsGroup[1] !== 'undefined') { | 415 | if (goodsGroup[1] !== null && typeof goodsGroup[1] !== 'undefined') { |
416 | - _.forEach(goodsGroup, function(value, key) { | 416 | + |
417 | dest.bannerTop = {}; | 417 | dest.bannerTop = {}; |
418 | + dest.bannerTop.list = []; | ||
418 | 419 | ||
419 | - dest.bannerTop.list = {}; | 420 | + _.forEach(goodsGroup, function(value) { |
420 | let params = {}; | 421 | let params = {}; |
421 | 422 | ||
422 | params.img = value.img; | 423 | params.img = value.img; |
423 | - dest.bannerTop.list[key] = params; | 424 | + dest.bannerTop.list.push(params); |
424 | }); | 425 | }); |
425 | } else if (goodsGroup[0] !== null && typeof goodsGroup[0] !== 'undefined') { | 426 | } else if (goodsGroup[0] !== null && typeof goodsGroup[0] !== 'undefined') { |
426 | dest.bannerTop = {}; | 427 | dest.bannerTop = {}; |
-
Please register or login to post a comment