Commit a9fccde6ed04dc7130befc011b493a8f48688514
1 parent
1bcb4014
尾款的优化 同城配送
Showing
2 changed files
with
6 additions
and
1 deletions
packageC/pages/presell/cart/cart.js
@@ -2408,6 +2408,9 @@ Page({ | @@ -2408,6 +2408,9 @@ Page({ | ||
2408 | return getApp().my_warnning("请选择收货地址", 0, th); | 2408 | return getApp().my_warnning("请选择收货地址", 0, th); |
2409 | } | 2409 | } |
2410 | 2410 | ||
2411 | + | ||
2412 | + | ||
2413 | + th.data.exp_type=parseInt(th.data.exp_type+''); | ||
2411 | //---支付参数-- | 2414 | //---支付参数-- |
2412 | var dd = { | 2415 | var dd = { |
2413 | order_sn: th.data.order.order_sn, | 2416 | order_sn: th.data.order.order_sn, |
pages/cart/cart_wk/cart_wk.js
@@ -574,6 +574,8 @@ Page({ | @@ -574,6 +574,8 @@ Page({ | ||
574 | return getApp().my_warnning("请选择收货地址", 0, th); | 574 | return getApp().my_warnning("请选择收货地址", 0, th); |
575 | } | 575 | } |
576 | 576 | ||
577 | + | ||
578 | + th.data.exp_type=parseInt(th.data.exp_type+''); | ||
577 | //---支付参数-- | 579 | //---支付参数-- |
578 | var dd = { | 580 | var dd = { |
579 | order_sn: th.data.order.order_sn, | 581 | order_sn: th.data.order.order_sn, |
@@ -586,7 +588,7 @@ Page({ | @@ -586,7 +588,7 @@ Page({ | ||
586 | tail_pay_type: ind,//0微信支付 1余额支付 | 588 | tail_pay_type: ind,//0微信支付 1余额支付 |
587 | }; | 589 | }; |
588 | 590 | ||
589 | - if (th.data.exp_type == 0 && th.data.exp_type == 2) { | 591 | + if (th.data.exp_type == 0 || th.data.exp_type == 2) { |
590 | var index = th.data.index; | 592 | var index = th.data.index; |
591 | dd.shipping_code = th.data.wu_arr[index].code; | 593 | dd.shipping_code = th.data.wu_arr[index].code; |
592 | dd.shipping_name = th.data.wu_arr[index].name; | 594 | dd.shipping_name = th.data.wu_arr[index].name; |