Commit 537fe5ca4214111daf9d376b0db2bdeedb081c96
1 parent
f0eb1558
尾款支付的优化
Showing
1 changed file
with
11 additions
and
0 deletions
packageE/pages/cart/cart_wk/cart_wk.js
... | ... | @@ -672,6 +672,17 @@ Page({ |
672 | 672 | //--弹起支付框-- |
673 | 673 | to_pay() { |
674 | 674 | |
675 | + let order=this.data.order; | |
676 | + let formData=this.data.formData; | |
677 | + let exp_price=this.data.exp_price; | |
678 | + let bn_use_commission=this.data.bn_use_commission; | |
679 | + | |
680 | + //如果支付为0的时候 | |
681 | + if(order.tail_money+exp_price-formData.coupon_price-(bn_use_commission?goods.use_commission:0)-(formData.order_prom_amount?formData.order_prom_amount:0)<=0 ){ | |
682 | + this.to_pay_type(1); | |
683 | + return false; | |
684 | + } | |
685 | + | |
675 | 686 | //如果有再计算价格的过程中,不能提交订单 |
676 | 687 | if(this.data.submit){ return false} |
677 | 688 | if(!this.data.same_ok){ return false} | ... | ... |