Commit 4194739c60296bf275982caf99c6cfcdb621f1d3
1 parent
7b36e157
预售测试的bug优化
Showing
1 changed file
with
2 additions
and
1 deletions
packageC/pages/presell/cart/cart.js
... | ... | @@ -668,8 +668,9 @@ Page({ |
668 | 668 | order_prom_id = ord_prom['id']; |
669 | 669 | switch (ord_prom['type']) { |
670 | 670 | case 0: |
671 | + var all_1=o_condition; | |
671 | 672 | o_condition = Math.round(o_condition * ord_prom['expression']) / 100;//满额打折 |
672 | - order_prom_amount = (o_condition - order_m).toFixed(2); | |
673 | + order_prom_amount = (all_1 - o_condition).toFixed(2); | |
673 | 674 | break; |
674 | 675 | case 1: |
675 | 676 | o_condition = o_condition - ord_prom['expression'];//满额优惠金额 | ... | ... |