Commit 12432bfb8f24e37f4395eb4bec1cb758e86da3b4
1 parent
f6cdc5ce
计算金额的优化
Showing
1 changed file
with
5 additions
and
1 deletions
packageE/pages/cart/cart2/cart2.js
@@ -7264,6 +7264,10 @@ Page({ | @@ -7264,6 +7264,10 @@ Page({ | ||
7264 | } | 7264 | } |
7265 | } | 7265 | } |
7266 | 7266 | ||
7267 | + if(gd.is_collocation && gd.market_price && !gd.goods_market_price){ | ||
7268 | + gd.goods_market_price=gd.market_price; | ||
7269 | + } | ||
7270 | + | ||
7267 | //如果有限制使用优惠券,就要返回 | 7271 | //如果有限制使用优惠券,就要返回 |
7268 | if (gd.prom_type == 3) { | 7272 | if (gd.prom_type == 3) { |
7269 | 7273 | ||
@@ -7286,7 +7290,7 @@ Page({ | @@ -7286,7 +7290,7 @@ Page({ | ||
7286 | item_price2 = gd.ld_account * gd.goods_num; | 7290 | item_price2 = gd.ld_account * gd.goods_num; |
7287 | real_price=gd.ld_account; | 7291 | real_price=gd.ld_account; |
7288 | } | 7292 | } |
7289 | - ckeck_quan_price += item_price2; | 7293 | + ckeck_quan_price += item_price; |
7290 | 7294 | ||
7291 | //如果实收价等于市场价的死后 | 7295 | //如果实收价等于市场价的死后 |
7292 | if(real_price>=gd.goods_market_price){ | 7296 | if(real_price>=gd.goods_market_price){ |