Commit 9c43e71a074d64d6a1e176e62777fa2bebe83f06
1 parent
4547134d
1. 加 转圈圈的效果
Showing
3 changed files
with
25 additions
and
6 deletions
pages/cart/cart2/cart2.js
... | ... | @@ -891,7 +891,9 @@ Page({ |
891 | 891 | var th = this; |
892 | 892 | to.getConfig2(function(ee){ |
893 | 893 | to.getwuliuprice( async function (rs) { |
894 | - | |
894 | + wx.showLoading({ | |
895 | + title:"处理中." | |
896 | + }) | |
895 | 897 | var all_price=0; //所有的商品总价 |
896 | 898 | var all_shipping_m= 0; //所有的物流总价 |
897 | 899 | var all_total_m = 0; //所有的订单应付总价 |
... | ... | @@ -1268,7 +1270,8 @@ Page({ |
1268 | 1270 | [atxt7]: all_order_prom, show_submit:1 |
1269 | 1271 | }) |
1270 | 1272 | th.data.order_prom_list_cart=c_arr; |
1271 | - th.set_can_num(); | |
1273 | + th.set_can_num(); | |
1274 | + wx.hideLoading(); | |
1272 | 1275 | |
1273 | 1276 | }); |
1274 | 1277 | }); |
... | ... | @@ -1312,6 +1315,10 @@ Page({ |
1312 | 1315 | th.calculatePrice(); |
1313 | 1316 | return false; |
1314 | 1317 | } |
1318 | + | |
1319 | + wx.showLoading({ | |
1320 | + title:"处理中." | |
1321 | + }) | |
1315 | 1322 | //-----------计算商品总价-------------- |
1316 | 1323 | var allpice = good.shop_price * good.buynum; |
1317 | 1324 | var cut_price=0; |
... | ... | @@ -1577,6 +1584,8 @@ Page({ |
1577 | 1584 | th.setData({ [l_txt]:good.s_coupon_id,[l_txt1]:ob }); |
1578 | 1585 | } |
1579 | 1586 | } |
1587 | + | |
1588 | + wx.hideLoading(); | |
1580 | 1589 | |
1581 | 1590 | }); |
1582 | 1591 | }); | ... | ... |
pages/user/order_detail/order_detail.js
... | ... | @@ -994,6 +994,7 @@ Page({ |
994 | 994 | if(!err_text){ |
995 | 995 | th.more_add_cart(); |
996 | 996 | }else{ |
997 | + wx.hideLoading(); | |
997 | 998 | // 如果没有获取用户信息 |
998 | 999 | wx.showModal({ |
999 | 1000 | title:'确定', |
... | ... | @@ -1008,6 +1009,7 @@ Page({ |
1008 | 1009 | |
1009 | 1010 | } |
1010 | 1011 | }else{ |
1012 | + wx.hideLoading(); | |
1011 | 1013 | getApp().confirmBox(err_text); |
1012 | 1014 | } |
1013 | 1015 | }, |
... | ... | @@ -1100,8 +1102,9 @@ Page({ |
1100 | 1102 | } |
1101 | 1103 | }) |
1102 | 1104 | } |
1103 | - } | |
1104 | - | |
1105 | + } | |
1106 | + | |
1107 | + wx.hideLoading(); | |
1105 | 1108 | if(ok_num==0){ |
1106 | 1109 | //-- 如果没有获取用户信息 -- |
1107 | 1110 | wx.showModal({ | ... | ... |
pages/user/order_list/order_list.js
... | ... | @@ -767,6 +767,10 @@ Page({ |
767 | 767 | }).then(res=>{ |
768 | 768 | pickup = res.data.data; |
769 | 769 | }) |
770 | + | |
771 | + wx.showLoading({ | |
772 | + title:"处理中." | |
773 | + }); | |
770 | 774 | |
771 | 775 | //--------获取商品---------- |
772 | 776 | var goods_list=item.order_goods; |
... | ... | @@ -1080,6 +1084,7 @@ Page({ |
1080 | 1084 | if(!err_text){ |
1081 | 1085 | th.more_add_cart(); |
1082 | 1086 | }else{ |
1087 | + wx.hideLoading(); | |
1083 | 1088 | // 如果没有获取用户信息 |
1084 | 1089 | wx.showModal({ |
1085 | 1090 | title:'确定', |
... | ... | @@ -1094,6 +1099,7 @@ Page({ |
1094 | 1099 | |
1095 | 1100 | } |
1096 | 1101 | }else{ |
1102 | + wx.hideLoading(); | |
1097 | 1103 | getApp().confirmBox(err_text); |
1098 | 1104 | } |
1099 | 1105 | }, |
... | ... | @@ -1191,8 +1197,9 @@ Page({ |
1191 | 1197 | } |
1192 | 1198 | }) |
1193 | 1199 | } |
1194 | - } | |
1195 | - | |
1200 | + } | |
1201 | + | |
1202 | + wx.hideLoading(); | |
1196 | 1203 | if(ok_num==0){ |
1197 | 1204 | //-- 如果没有获取用户信息 -- |
1198 | 1205 | wx.showModal({ | ... | ... |