diff --git a/pages/cart/cart2_pt/cart2_pt.js b/pages/cart/cart2_pt/cart2_pt.js index 190a2d6..dc2f8a5 100644 --- a/pages/cart/cart2_pt/cart2_pt.js +++ b/pages/cart/cart2_pt/cart2_pt.js @@ -341,7 +341,9 @@ Page({ //------------立即购买------------- console.log("buy_new"); - if(th.data.bn_exp_type == 0 && th.data.user_addr==null ){ ff = false; confirmBox("请新建收货地址"); } + if(th.data.bn_exp_type == 0 && th.data.user_addr==null ){ ff = false; + getApp().confirmBox("请新建收货地址"); + } if (!ff) return false; var addr = th.data.user_addr; if (th.data.bn_exp_type == 1) addr=null; @@ -352,7 +354,7 @@ Page({ if(th.data.bn_exp_type==0) { if (th.data.wu_arr == null || th.data.wu_arr.length <= 0) { - confirmBox("读取物流失败"); + getApp().confirmBox("读取物流失败"); return false; } }