Commit a9fccde6ed04dc7130befc011b493a8f48688514

Authored by yvan.ni
1 parent 1bcb4014

尾款的优化 同城配送

packageC/pages/presell/cart/cart.js
... ... @@ -2408,6 +2408,9 @@ Page({
2408 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 2415 var dd = {
2413 2416 order_sn: th.data.order.order_sn,
... ...
pages/cart/cart_wk/cart_wk.js
... ... @@ -574,6 +574,8 @@ Page({
574 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 580 var dd = {
579 581 order_sn: th.data.order.order_sn,
... ... @@ -586,7 +588,7 @@ Page({
586 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 592 var index = th.data.index;
591 593 dd.shipping_code = th.data.wu_arr[index].code;
592 594 dd.shipping_name = th.data.wu_arr[index].name;
... ...