Merge branch 'feature/cart' into 'release/5.4.1'
购物车促销全角人民币符号 See merge request !319
Showing
1 changed file
with
3 additions
and
3 deletions
@@ -28,7 +28,7 @@ const formatPromotionTitle = (promo) => { | @@ -28,7 +28,7 @@ const formatPromotionTitle = (promo) => { | ||
28 | let match = regPromoTitle.exec(promo.promotion_title); | 28 | let match = regPromoTitle.exec(promo.promotion_title); |
29 | let promotionTitle = match !== null && match.length > 1 ? match[1] : promo.promotion_title; | 29 | let promotionTitle = match !== null && match.length > 1 ? match[1] : promo.promotion_title; |
30 | 30 | ||
31 | - promotionTitle = promotionTitle.replace('¥', '¥'); | 31 | + promotionTitle = promotionTitle.replace(/¥/g, '¥'); |
32 | return `${title}【${promotionTitle}】`; | 32 | return `${title}【${promotionTitle}】`; |
33 | }; | 33 | }; |
34 | const formatPromotionOpt = (promo) => { | 34 | const formatPromotionOpt = (promo) => { |
@@ -300,7 +300,7 @@ const procCartData = (data, isAdvanceCart) => { | @@ -300,7 +300,7 @@ const procCartData = (data, isAdvanceCart) => { | ||
300 | result.giftHasStorage = _.some(result.freebie, freebie => freebie.status === 10); | 300 | result.giftHasStorage = _.some(result.freebie, freebie => freebie.status === 10); |
301 | 301 | ||
302 | // 加价购 | 302 | // 加价购 |
303 | - result.advanceBuy = data.g_price_gift_list.filter(advanceBuy => advanceBuy.status !== 30 && advanceBuy.status !== 0); | 303 | + result.advanceBuy = data.g_price_gift_list.filter(advanceBuy => advanceBuy.status !== 30 && advanceBuy.status !== 0);// eslint-disable-line |
304 | result.selectAdvanceBuy = result.advanceBuy.filter(advanceBuy => advanceBuy.status === 10); | 304 | result.selectAdvanceBuy = result.advanceBuy.filter(advanceBuy => advanceBuy.status === 10); |
305 | result.advanceHasStorage = _.some(result.advanceBuy, advanceBuy => advanceBuy.status === 10); | 305 | result.advanceHasStorage = _.some(result.advanceBuy, advanceBuy => advanceBuy.status === 10); |
306 | } | 306 | } |
@@ -341,7 +341,7 @@ const procCartData = (data, isAdvanceCart) => { | @@ -341,7 +341,7 @@ const procCartData = (data, isAdvanceCart) => { | ||
341 | 341 | ||
342 | result.formulaPrice = data.shopping_cart_data.promotion_formula; | 342 | result.formulaPrice = data.shopping_cart_data.promotion_formula; |
343 | result.count = data.shopping_cart_data.selected_goods_count; | 343 | result.count = data.shopping_cart_data.selected_goods_count; |
344 | - result.isAllSelected = (goodCount <= data.shopping_cart_data.selected_goods_count) && (data.shopping_cart_data.selected_goods_count > 0); | 344 | + result.isAllSelected = (goodCount <= data.shopping_cart_data.selected_goods_count) && (data.shopping_cart_data.selected_goods_count > 0);// eslint-disable-line |
345 | result.sumPrice = transPrice(data.shopping_cart_data.last_order_amount); | 345 | result.sumPrice = transPrice(data.shopping_cart_data.last_order_amount); |
346 | result.hasNoSaleGoods = result.notValidGoods.length || result.offShelveGoods.length; | 346 | result.hasNoSaleGoods = result.notValidGoods.length || result.offShelveGoods.length; |
347 | 347 |
-
Please register or login to post a comment