Commit 9c43e71a074d64d6a1e176e62777fa2bebe83f06

Authored by yvan.ni
1 parent 4547134d

1. 加 转圈圈的效果

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