diff --git a/packageC/pages/luckyGo/luckyGo_cart_ct/luckyGo_cart_ct.js b/packageC/pages/luckyGo/luckyGo_cart_ct/luckyGo_cart_ct.js index cb3adf2..fdf3caa 100644 --- a/packageC/pages/luckyGo/luckyGo_cart_ct/luckyGo_cart_ct.js +++ b/packageC/pages/luckyGo/luckyGo_cart_ct/luckyGo_cart_ct.js @@ -949,6 +949,17 @@ Page({ if (out_of_weight >= 0) out_of_weight = -cut_good_weight; else out_of_weight = -back_data.weight_free * 1000; + + if(!th.data.wu_arr){ + wx.hideLoading(); + wx.showToast({ + title: "物流配置未启用物流公司", icon: 'none', duration: 2000 + }) + //th.setData({ show_submit:0, }); + th.setData({show_submit:1, submit: 0,same_ok:0 }) + return false; + } + var code = th.data.wu_arr[th.data.index].code; var shipping_price = 0; // ut.calculatewuliu(code, o_shipping_price, goods_weight, out_of_weight, diff --git a/packageC/pages/presell/cart/cart.js b/packageC/pages/presell/cart/cart.js index 06fd175..c11d9f4 100644 --- a/packageC/pages/presell/cart/cart.js +++ b/packageC/pages/presell/cart/cart.js @@ -2075,6 +2075,16 @@ Page({ else out_of_weight = -back_data.weight_free * 1000; + if(!th.data.wu_arr){ + wx.hideLoading(); + wx.showToast({ + title: "物流配置未启用物流公司", icon: 'none', duration: 2000 + }) + //th.setData({ show_submit:0, }); + th.setData({show_submit:1, submit: 0,same_ok:0 }) + return false; + } + var code = th.data.wu_arr[th.data.index].code; th.data.is_no_by[th.data.bn_pick] = 0; diff --git a/packageE/pages/cart/cart2/cart2.js b/packageE/pages/cart/cart2/cart2.js index 01e2992..4ea8332 100644 --- a/packageE/pages/cart/cart2/cart2.js +++ b/packageE/pages/cart/cart2/cart2.js @@ -3180,6 +3180,17 @@ Page({ else out_of_weight = -back_data.weight_free * 1000; var code = ""; + + if(!th.data.wu_arr){ + wx.hideLoading(); + wx.showToast({ + title: "物流配置未启用物流公司", icon: 'none', duration: 2000 + }) + //th.setData({ show_submit:0, }); + th.setData({show_submit:1, submit: 0,same_ok:0 }) + return false; + } + if (th.data.wu_arr && th.data.wu_arr[cart_item.wind]) code = th.data.wu_arr[cart_item.wind].code; @@ -3877,6 +3888,17 @@ Page({ else out_of_weight = -back_data.weight_free * 1000; var code = ""; + if(!th.data.wu_arr){ + wx.hideLoading(); + wx.showToast({ + title: "物流配置未启用物流公司", icon: 'none', duration: 2000 + }) + //th.setData({ show_submit:0, }); + th.setData({show_submit:1, submit: 0,same_ok:0 }) + return false; + } + + if (th.data.wu_arr && th.data.wu_arr[th.data.index]) code = th.data.wu_arr[th.data.index].code; th.data.is_no_by[th.data.bn_pick] = 0; th.data.is_by[th.data.bn_pick] = 0; diff --git a/packageE/pages/cart/cart2_inte/cart2_inte.js b/packageE/pages/cart/cart2_inte/cart2_inte.js index 146fba0..a354d02 100644 --- a/packageE/pages/cart/cart2_inte/cart2_inte.js +++ b/packageE/pages/cart/cart2_inte/cart2_inte.js @@ -825,6 +825,17 @@ Page({ else out_of_weight = -back_data.weight_free * 1000; var code = ""; + if(!th.data.wu_arr){ + wx.hideLoading(); + wx.showToast({ + title: "物流配置未启用物流公司", icon: 'none', duration: 2000 + }) + //th.setData({ show_submit:0, }); + th.setData({show_submit:1, submit: 0,same_ok:0 }) + return false; + } + + if (th.data.wu_arr && th.data.wu_arr[th.data.index]) code = th.data.wu_arr[th.data.index].code; //--------------开始计算物流------------------ var shipping_price=0; diff --git a/packageE/pages/cart/cart2_pt/cart2_pt.js b/packageE/pages/cart/cart2_pt/cart2_pt.js index 57dc3b3..908f8d4 100644 --- a/packageE/pages/cart/cart2_pt/cart2_pt.js +++ b/packageE/pages/cart/cart2_pt/cart2_pt.js @@ -843,7 +843,17 @@ Page({ else out_of_weight = -back_data.weight_free * 1000; - var code = th.data.wu_arr[th.data.index].code; + if(!th.data.wu_arr){ + wx.hideLoading(); + wx.showToast({ + title: "物流配置未启用物流公司", icon: 'none', duration: 2000 + }) + //th.setData({ show_submit:0, }); + th.setData({show_submit:1, submit: 0,same_ok:0 }) + return false; + } + + var code = th.data.wu_arr[th.data.index].code; //--------------开始计算物流------------------ var shipping_price = 0; diff --git a/packageE/pages/cart/cart_wk/cart_wk.js b/packageE/pages/cart/cart_wk/cart_wk.js index 2970eb5..7a6926c 100644 --- a/packageE/pages/cart/cart_wk/cart_wk.js +++ b/packageE/pages/cart/cart_wk/cart_wk.js @@ -860,6 +860,15 @@ Page({ if (out_of_weight >= 0) out_of_weight = -cut_good_weight; else out_of_weight = -back_data.weight_free * 1000; + if(!th.data.wu_arr){ + wx.hideLoading(); + wx.showToast({ + title: "物流配置未启用物流公司", icon: 'none', duration: 2000 + }) + //th.setData({ show_submit:0, }); + th.setData({show_submit:1, submit: 0,same_ok:0 }) + return false; + } var code = th.data.wu_arr[th.data.index].code; //--------------开始计算物流------------------