Showing
1 changed file
with
3 additions
and
3 deletions
@@ -63,7 +63,7 @@ const formatAdvanceGoods = (advanceGood, isGift) => { | @@ -63,7 +63,7 @@ const formatAdvanceGoods = (advanceGood, isGift) => { | ||
63 | promotionId: advanceGood.promotion_id, | 63 | promotionId: advanceGood.promotion_id, |
64 | promotionTitle: advanceGood.promotion_title, | 64 | promotionTitle: advanceGood.promotion_title, |
65 | status: advanceGood.status, | 65 | status: advanceGood.status, |
66 | - goods: (_.get(advanceGood, 'gift_goods_List') || _.get(advanceGood, 'goods_list') || []).map(good => { | 66 | + goods: _.get(advanceGood, 'goods_list').map(good => { |
67 | return { | 67 | return { |
68 | id: good.product_skn, | 68 | id: good.product_skn, |
69 | name: good.product_name, | 69 | name: good.product_name, |
@@ -300,7 +300,7 @@ const procCartData = (data, onlyGift = false, onlyAdvanceBuy = false, isAdvanceC | @@ -300,7 +300,7 @@ const procCartData = (data, onlyGift = false, onlyAdvanceBuy = false, isAdvanceC | ||
300 | 300 | ||
301 | // 赠品 | 301 | // 赠品 |
302 | result.freebie = data.g_gift_list.filter(freebie => { | 302 | result.freebie = data.g_gift_list.filter(freebie => { |
303 | - return freebie.status !== 30 || freebie.status !== 0; | 303 | + return freebie.status !== 30 && freebie.status !== 0; |
304 | }); | 304 | }); |
305 | result.giftCount = result.freebie.length; | 305 | result.giftCount = result.freebie.length; |
306 | result.giftHasStorage = _.some(result.freebie, freebie => { | 306 | result.giftHasStorage = _.some(result.freebie, freebie => { |
@@ -309,7 +309,7 @@ const procCartData = (data, onlyGift = false, onlyAdvanceBuy = false, isAdvanceC | @@ -309,7 +309,7 @@ const procCartData = (data, onlyGift = false, onlyAdvanceBuy = false, isAdvanceC | ||
309 | 309 | ||
310 | // 加价购 | 310 | // 加价购 |
311 | result.advanceBuy = data.g_price_gift_list.filter(advanceBuy => { | 311 | result.advanceBuy = data.g_price_gift_list.filter(advanceBuy => { |
312 | - return advanceBuy.status !== 30 || advanceBuy.status !== 0; | 312 | + return advanceBuy.status !== 30 && advanceBuy.status !== 0; |
313 | }); | 313 | }); |
314 | result.advanceBuyCount = result.advanceBuy.length; | 314 | result.advanceBuyCount = result.advanceBuy.length; |
315 | result.advanceHasStorage = _.some(result.advanceBuy, advanceBuy => { | 315 | result.advanceHasStorage = _.some(result.advanceBuy, advanceBuy => { |
-
Please register or login to post a comment