Commit 94472fb9c1daf7d206967c027efe4956ceef688d
1 parent
cae8b14a
加载中要mask
Showing
2 changed files
with
17 additions
and
2 deletions
pages/cart/cart2/cart2.js
... | ... | @@ -1460,8 +1460,14 @@ Page({ |
1460 | 1460 | //-------------------计算订单价格------------------- |
1461 | 1461 | calculatePrice: function (t, s) { |
1462 | 1462 | var th = this; |
1463 | + | |
1464 | + wx.showLoading({ | |
1465 | + title: "处理中.", | |
1466 | + mask:true | |
1467 | + }) | |
1468 | + | |
1463 | 1469 | to.getwuliuprice(async function (rs) { |
1464 | - wx.showLoading({ title: "处理中." }) | |
1470 | + | |
1465 | 1471 | //是不是区域包邮 |
1466 | 1472 | th.data.is_area_by = 0; |
1467 | 1473 | //当不是区域不包邮的时候,没有不包邮商品的时候 |
... | ... | @@ -2000,7 +2006,8 @@ Page({ |
2000 | 2006 | } |
2001 | 2007 | |
2002 | 2008 | wx.showLoading({ |
2003 | - title: "处理中." | |
2009 | + title: "处理中.", | |
2010 | + mask:true | |
2004 | 2011 | }) |
2005 | 2012 | //-----------计算商品总价-------------- |
2006 | 2013 | var allpice = good.shop_price * good.buynum; | ... | ... |
pages/cart/cart2_pt/cart2_pt.js
... | ... | @@ -395,6 +395,12 @@ Page({ |
395 | 395 | }, |
396 | 396 | //---------计算立即购买---------- |
397 | 397 | calculatePrice2: function () { |
398 | + | |
399 | + wx.showLoading({ | |
400 | + title: "处理中.", | |
401 | + mask:true | |
402 | + }) | |
403 | + | |
398 | 404 | var th = this, good = this.data.bn_goods; |
399 | 405 | //-----------计算商品总价-------------- |
400 | 406 | var allpice = good.shop_price * good.buynum; |
... | ... | @@ -507,6 +513,8 @@ Page({ |
507 | 513 | th.setData({ [txt]: 0, [txt2]: order_m }) |
508 | 514 | } |
509 | 515 | |
516 | + wx.hideLoading(); | |
517 | + | |
510 | 518 | }); |
511 | 519 | |
512 | 520 | }, | ... | ... |