Commit 26c9e174527112d90f0133526ae2a3dc6636c937

Authored by yvan.ni
1 parent d775222a

支付尾款的bug优化

pages/cart/cart_wk/cart_wk.js
@@ -51,7 +51,10 @@ Page({ @@ -51,7 +51,10 @@ Page({
51 bn_is_post_temp:1, //是不是进行计算包邮模板 51 bn_is_post_temp:1, //是不是进行计算包邮模板
52 52
53 paying:0, //支付中 53 paying:0, //支付中
54 - same_ok:1 //同城配送的控制 54 + same_ok:1, //同城配送的控制
  55 + formData:{
  56 + order_prom_amount:0
  57 + }
55 58
56 }, 59 },
57 60
pages/cart/cart_wk/cart_wk.wxml
@@ -134,7 +134,7 @@ @@ -134,7 +134,7 @@
134 <text class='zf_left_wz'>支付合计:</text> 134 <text class='zf_left_wz'>支付合计:</text>
135 <text class='zf_left_red'>¥{{filters.toFix(order.tail_money+exp_price,2)}}</text> 135 <text class='zf_left_red'>¥{{filters.toFix(order.tail_money+exp_price,2)}}</text>
136 </view> --> 136 </view> -->
137 - <view class='zf_left'>支付合计:<text class='zf_left_red'>¥{{filters.toFix(order.tail_money+exp_price-(bn_use_commission?goods.use_commission:0)-formData.order_prom_amount ,2)}}</text></view> 137 + <view class='zf_left'>支付合计:<text class='zf_left_red'>¥{{filters.toFix(order.tail_money+exp_price-(bn_use_commission?goods.use_commission:0)-(formData.order_prom_amount?formData.order_prom_amount:0) ,2)}}</text></view>
138 <view class="zf_btn {{(submit || !same_ok)?'gray':''}}" bindtap="to_pay">支付尾款</view> 138 <view class="zf_btn {{(submit || !same_ok)?'gray':''}}" bindtap="to_pay">支付尾款</view>
139 </view> 139 </view>
140 140