From 9f5ce8c06a4ce7ce181f69b73fc28ebce5a7de2a Mon Sep 17 00:00:00 2001 From: F5VT98DI7XY4X12\Administrator <765199919@qq.com> Date: Wed, 4 Sep 2019 20:58:43 +0800 Subject: [PATCH] 购买提示新建地址 --- pages/cart/cart2_pt/cart2_pt.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } } -- libgit2 0.21.4