diff --git a/pages/cart/cart2/cart2.js b/pages/cart/cart2/cart2.js index 28f8aba..ae38c3b 100644 --- a/pages/cart/cart2/cart2.js +++ b/pages/cart/cart2/cart2.js @@ -1460,8 +1460,14 @@ Page({ //-------------------计算订单价格------------------- calculatePrice: function (t, s) { var th = this; + + wx.showLoading({ + title: "处理中.", + mask:true + }) + to.getwuliuprice(async function (rs) { - wx.showLoading({ title: "处理中." }) + //是不是区域包邮 th.data.is_area_by = 0; //当不是区域不包邮的时候,没有不包邮商品的时候 @@ -2000,7 +2006,8 @@ Page({ } wx.showLoading({ - title: "处理中." + title: "处理中.", + mask:true }) //-----------计算商品总价-------------- var allpice = good.shop_price * good.buynum; diff --git a/pages/cart/cart2_pt/cart2_pt.js b/pages/cart/cart2_pt/cart2_pt.js index 96ae1d4..1f39299 100644 --- a/pages/cart/cart2_pt/cart2_pt.js +++ b/pages/cart/cart2_pt/cart2_pt.js @@ -395,6 +395,12 @@ Page({ }, //---------计算立即购买---------- calculatePrice2: function () { + + wx.showLoading({ + title: "处理中.", + mask:true + }) + var th = this, good = this.data.bn_goods; //-----------计算商品总价-------------- var allpice = good.shop_price * good.buynum; @@ -507,6 +513,8 @@ Page({ th.setData({ [txt]: 0, [txt2]: order_m }) } + wx.hideLoading(); + }); },