diff --git a/pages/cart/cart2/cart2.js b/pages/cart/cart2/cart2.js index ebe8f55..58dbcfe 100644 --- a/pages/cart/cart2/cart2.js +++ b/pages/cart/cart2/cart2.js @@ -891,7 +891,9 @@ Page({ var th = this; to.getConfig2(function(ee){ to.getwuliuprice( async function (rs) { - + wx.showLoading({ + title:"处理中." + }) var all_price=0; //所有的商品总价 var all_shipping_m= 0; //所有的物流总价 var all_total_m = 0; //所有的订单应付总价 @@ -1268,7 +1270,8 @@ Page({ [atxt7]: all_order_prom, show_submit:1 }) th.data.order_prom_list_cart=c_arr; - th.set_can_num(); + th.set_can_num(); + wx.hideLoading(); }); }); @@ -1312,6 +1315,10 @@ Page({ th.calculatePrice(); return false; } + + wx.showLoading({ + title:"处理中." + }) //-----------计算商品总价-------------- var allpice = good.shop_price * good.buynum; var cut_price=0; @@ -1577,6 +1584,8 @@ Page({ th.setData({ [l_txt]:good.s_coupon_id,[l_txt1]:ob }); } } + + wx.hideLoading(); }); }); diff --git a/pages/user/order_detail/order_detail.js b/pages/user/order_detail/order_detail.js index cc755c5..e1931e7 100644 --- a/pages/user/order_detail/order_detail.js +++ b/pages/user/order_detail/order_detail.js @@ -994,6 +994,7 @@ Page({ if(!err_text){ th.more_add_cart(); }else{ + wx.hideLoading(); // 如果没有获取用户信息 wx.showModal({ title:'确定', @@ -1008,6 +1009,7 @@ Page({ } }else{ + wx.hideLoading(); getApp().confirmBox(err_text); } }, @@ -1100,8 +1102,9 @@ Page({ } }) } - } - + } + + wx.hideLoading(); if(ok_num==0){ //-- 如果没有获取用户信息 -- wx.showModal({ diff --git a/pages/user/order_list/order_list.js b/pages/user/order_list/order_list.js index ed589b9..64da06f 100644 --- a/pages/user/order_list/order_list.js +++ b/pages/user/order_list/order_list.js @@ -767,6 +767,10 @@ Page({ }).then(res=>{ pickup = res.data.data; }) + + wx.showLoading({ + title:"处理中." + }); //--------获取商品---------- var goods_list=item.order_goods; @@ -1080,6 +1084,7 @@ Page({ if(!err_text){ th.more_add_cart(); }else{ + wx.hideLoading(); // 如果没有获取用户信息 wx.showModal({ title:'确定', @@ -1094,6 +1099,7 @@ Page({ } }else{ + wx.hideLoading(); getApp().confirmBox(err_text); } }, @@ -1191,8 +1197,9 @@ Page({ } }) } - } - + } + + wx.hideLoading(); if(ok_num==0){ //-- 如果没有获取用户信息 -- wx.showModal({