Commit d98026cf286ea1273028b657d89716c076abaa41
1 parent
ae365fc8
加载优化
Showing
5 changed files
with
33 additions
and
8 deletions
packageC/pages/presell/cart/cart.js
... | ... | @@ -1832,11 +1832,16 @@ Page({ |
1832 | 1832 | // setTimeout(() => { |
1833 | 1833 | // this.def_coupon_fn_aft() |
1834 | 1834 | // }, 100); |
1835 | + wx.showLoading({ | |
1836 | + title: '加载中', | |
1837 | + mask:true | |
1838 | + }) | |
1835 | 1839 | try { |
1836 | 1840 | setTimeout(() => { |
1841 | + wx.hideLoading() | |
1837 | 1842 | this.def_coupon_fn_aft() |
1838 | 1843 | }, 1000); |
1839 | - } catch (error) { } | |
1844 | + } catch (error) {} | |
1840 | 1845 | |
1841 | 1846 | }, |
1842 | 1847 | //默认选择优惠券 | ... | ... |
packageC/pages/presell/cart/cart2.js
... | ... | @@ -1311,7 +1311,7 @@ Page({ |
1311 | 1311 | |
1312 | 1312 | //调用默认优惠券方法 |
1313 | 1313 | th.def_coupon_fn() |
1314 | - wx.hideLoading(); | |
1314 | + // wx.hideLoading(); | |
1315 | 1315 | |
1316 | 1316 | |
1317 | 1317 | }, |
... | ... | @@ -2914,8 +2914,13 @@ Page({ |
2914 | 2914 | // setTimeout(() => { |
2915 | 2915 | // this.def_coupon_fn_aft() |
2916 | 2916 | // }, 100); |
2917 | + wx.showLoading({ | |
2918 | + title: '加载中', | |
2919 | + mask:true | |
2920 | + }) | |
2917 | 2921 | try { |
2918 | 2922 | setTimeout(() => { |
2923 | + wx.hideLoading() | |
2919 | 2924 | this.def_coupon_fn_aft() |
2920 | 2925 | }, 1000); |
2921 | 2926 | } catch (error) { } | ... | ... |
packageE/pages/cart/cart2/cart2.js
... | ... | @@ -3987,7 +3987,7 @@ Page({ |
3987 | 3987 | th.set_can_num(); |
3988 | 3988 | //调用默认优惠券方法 |
3989 | 3989 | th.def_coupon_fn(); |
3990 | - wx.hideLoading(); | |
3990 | + // wx.hideLoading(); | |
3991 | 3991 | |
3992 | 3992 | //}); |
3993 | 3993 | }, |
... | ... | @@ -4733,7 +4733,7 @@ Page({ |
4733 | 4733 | //调用默认优惠券方法 |
4734 | 4734 | th.def_coupon_fn() |
4735 | 4735 | |
4736 | - wx.hideLoading(); | |
4736 | + // wx.hideLoading(); | |
4737 | 4737 | |
4738 | 4738 | //}); |
4739 | 4739 | |
... | ... | @@ -7338,8 +7338,13 @@ Page({ |
7338 | 7338 | // setTimeout(() => { |
7339 | 7339 | // this.def_coupon_fn_aft() |
7340 | 7340 | // }, 100); |
7341 | + wx.showLoading({ | |
7342 | + title: '加载中', | |
7343 | + mask:true | |
7344 | + }) | |
7341 | 7345 | try { |
7342 | 7346 | setTimeout(() => { |
7347 | + wx.hideLoading() | |
7343 | 7348 | this.def_coupon_fn_aft() |
7344 | 7349 | }, 1000); |
7345 | 7350 | } catch (error) { } | ... | ... |
packageE/pages/cart/cart2_pt/cart2_pt.js
... | ... | @@ -1368,7 +1368,7 @@ Page({ |
1368 | 1368 | |
1369 | 1369 | //调用默认优惠券方法 |
1370 | 1370 | th.def_coupon_fn() |
1371 | - wx.hideLoading(); | |
1371 | + // wx.hideLoading(); | |
1372 | 1372 | |
1373 | 1373 | //}); |
1374 | 1374 | |
... | ... | @@ -2580,8 +2580,13 @@ Page({ |
2580 | 2580 | // setTimeout(() => { |
2581 | 2581 | // this.def_coupon_fn_aft() |
2582 | 2582 | // }, 100); |
2583 | + wx.showLoading({ | |
2584 | + title: '加载中', | |
2585 | + mask:true | |
2586 | + }) | |
2583 | 2587 | try { |
2584 | 2588 | setTimeout(() => { |
2589 | + wx.hideLoading() | |
2585 | 2590 | this.def_coupon_fn_aft() |
2586 | 2591 | }, 1000); |
2587 | 2592 | } catch (error) { } | ... | ... |
packageE/pages/cart/cart_wk/cart_wk.js
... | ... | @@ -621,7 +621,7 @@ Page({ |
621 | 621 | |
622 | 622 | th.setData({exp_price: 0, allpice: allpice, submit: 0, show_submit: 1}) |
623 | 623 | th.def_coupon_fn() |
624 | - wx.hideLoading(); | |
624 | + // wx.hideLoading(); | |
625 | 625 | } |
626 | 626 | }, |
627 | 627 | |
... | ... | @@ -1188,7 +1188,7 @@ Page({ |
1188 | 1188 | th.setData({exp_price: 0, allpice: allpice, submit: 0, show_submit: 1}) |
1189 | 1189 | } |
1190 | 1190 | th.def_coupon_fn() |
1191 | - wx.hideLoading(); | |
1191 | + // wx.hideLoading(); | |
1192 | 1192 | //}); |
1193 | 1193 | |
1194 | 1194 | }, |
... | ... | @@ -1356,7 +1356,7 @@ Page({ |
1356 | 1356 | th.setData({ exp_price: 0, allpice: allpice,submit:0,show_submit:1}) |
1357 | 1357 | } |
1358 | 1358 | th.def_coupon_fn() |
1359 | - wx.hideLoading(); | |
1359 | + // wx.hideLoading(); | |
1360 | 1360 | |
1361 | 1361 | |
1362 | 1362 | }, |
... | ... | @@ -2095,8 +2095,13 @@ Page({ |
2095 | 2095 | // setTimeout(() => { |
2096 | 2096 | // this.def_coupon_fn_aft() |
2097 | 2097 | // }, 100); |
2098 | + wx.showLoading({ | |
2099 | + title: '加载中', | |
2100 | + mask:true | |
2101 | + }) | |
2098 | 2102 | try { |
2099 | 2103 | setTimeout(() => { |
2104 | + wx.hideLoading() | |
2100 | 2105 | this.def_coupon_fn_aft() |
2101 | 2106 | }, 1000); |
2102 | 2107 | } catch (error) { } | ... | ... |