Commit 9f5ce8c06a4ce7ce181f69b73fc28ebce5a7de2a
1 parent
685ea4fc
购买提示新建地址
Showing
1 changed file
with
4 additions
and
2 deletions
pages/cart/cart2_pt/cart2_pt.js
@@ -341,7 +341,9 @@ Page({ | @@ -341,7 +341,9 @@ Page({ | ||
341 | //------------立即购买------------- | 341 | //------------立即购买------------- |
342 | console.log("buy_new"); | 342 | console.log("buy_new"); |
343 | 343 | ||
344 | - if(th.data.bn_exp_type == 0 && th.data.user_addr==null ){ ff = false; confirmBox("请新建收货地址"); } | 344 | + if(th.data.bn_exp_type == 0 && th.data.user_addr==null ){ ff = false; |
345 | + getApp().confirmBox("请新建收货地址"); | ||
346 | + } | ||
345 | if (!ff) return false; | 347 | if (!ff) return false; |
346 | var addr = th.data.user_addr; | 348 | var addr = th.data.user_addr; |
347 | if (th.data.bn_exp_type == 1) addr=null; | 349 | if (th.data.bn_exp_type == 1) addr=null; |
@@ -352,7 +354,7 @@ Page({ | @@ -352,7 +354,7 @@ Page({ | ||
352 | 354 | ||
353 | if(th.data.bn_exp_type==0) { | 355 | if(th.data.bn_exp_type==0) { |
354 | if (th.data.wu_arr == null || th.data.wu_arr.length <= 0) { | 356 | if (th.data.wu_arr == null || th.data.wu_arr.length <= 0) { |
355 | - confirmBox("读取物流失败"); | 357 | + getApp().confirmBox("读取物流失败"); |
356 | return false; | 358 | return false; |
357 | } | 359 | } |
358 | } | 360 | } |