Merge branch 'hotfix/gift' into 'master'
Hotfix/gift See merge request !444
Showing
1 changed file
with
8 additions
and
2 deletions
@@ -611,8 +611,14 @@ const formatCart = (cartDataRet, uid, shoppingKey, cartDelList) => { | @@ -611,8 +611,14 @@ const formatCart = (cartDataRet, uid, shoppingKey, cartDelList) => { | ||
611 | // gifts: giftsList, // chelper.formatGifts(_.get(ordCartData, 'gift_list')), | 611 | // gifts: giftsList, // chelper.formatGifts(_.get(ordCartData, 'gift_list')), |
612 | // 全场可选的加价购商品列表 | 612 | // 全场可选的加价购商品列表 |
613 | // priceGifts: priceGifts, // chelper.formatPriceGifts(_.get(ordCartData, 'price_gift')), | 613 | // priceGifts: priceGifts, // chelper.formatPriceGifts(_.get(ordCartData, 'price_gift')), |
614 | - giftsPromotionInfos: formatPoolPromotionInfos(_.get(ordCartData, 'g_gift_list')), | ||
615 | - priceGiftsPromotionInfos: formatPoolPromotionInfos(_.get(ordCartData, 'g_price_gift_list')), | 614 | + giftsPromotionInfos: formatPoolPromotionInfos(_.get(ordCartData, 'g_gift_list', []).map(i => { |
615 | + i.promotion_type = 'Gift'; | ||
616 | + return i; | ||
617 | + })), | ||
618 | + priceGiftsPromotionInfos: formatPoolPromotionInfos(_.get(ordCartData, 'g_price_gift_list', []).map(i => { | ||
619 | + i.promotion_type = 'Needpaygift'; | ||
620 | + return i; | ||
621 | + })), | ||
616 | 622 | ||
617 | // 已选择的全场加价购和赠品 | 623 | // 已选择的全场加价购和赠品 |
618 | goodsList: goodsList, | 624 | goodsList: goodsList, |
-
Please register or login to post a comment