Commit 4dad4c8429964763648d89e6f03b7b126d13320b
1 parent
773836e4
券值判断
Showing
1 changed file
with
5 additions
and
2 deletions
pages/cart/cart2/cart2.js
... | ... | @@ -2575,7 +2575,10 @@ Page({ |
2575 | 2575 | goods.offline_cut = (g_item.goods_price - g_item.offline_price).toFixed(2); |
2576 | 2576 | goods.pricing_type = g_item.pricing_type; |
2577 | 2577 | } |
2578 | - | |
2578 | + if(g_item.quan_num){ | |
2579 | + goods.quan_num=g_item.quan_num; | |
2580 | + goods.quan_no=g_item.quan_no; | |
2581 | + } | |
2579 | 2582 | //--判断活动的类型-- |
2580 | 2583 | switch (g_item.prom_type) { |
2581 | 2584 | case 1: |
... | ... | @@ -4042,7 +4045,7 @@ Page({ |
4042 | 4045 | |
4043 | 4046 | //进行对商品的平摊g_item是单个商品,you_item是这个商品分多少优惠券的钱,goods是商品列表 |
4044 | 4047 | split_set_goods_quanprice:async function (you_item,t_item) { |
4045 | - var coupon_price=t_item.coupon_price; | |
4048 | + var coupon_price=you_item.WareCashSum; | |
4046 | 4049 | var goods=t_item.goods; |
4047 | 4050 | var arr=[]; |
4048 | 4051 | //判断是不是有goods_id重复 | ... | ... |