Commit 3f589afa14ee6eb8a71ea108435654fe2d3bb2bd
1 parent
c6ae1afa
增加‘准备抽奖中’
Showing
1 changed file
with
4 additions
and
2 deletions
packageB/pages/luckactivity/luckinfo/luckinfo.js
| @@ -847,7 +847,9 @@ Page({ | @@ -847,7 +847,9 @@ Page({ | ||
| 847 | }); | 847 | }); |
| 848 | return; | 848 | return; |
| 849 | }; | 849 | }; |
| 850 | - | 850 | + wx.showLoading({ |
| 851 | + title: '准备抽奖中' | ||
| 852 | + }); | ||
| 851 | // 获取积分 | 853 | // 获取积分 |
| 852 | app.request.promisePost('/api/weshop/marketing/marketingLuckForm/startLuckIntegral', { | 854 | app.request.promisePost('/api/weshop/marketing/marketingLuckForm/startLuckIntegral', { |
| 853 | isShowLoading: false, | 855 | isShowLoading: false, |
| @@ -882,7 +884,7 @@ Page({ | @@ -882,7 +884,7 @@ Page({ | ||
| 882 | const $lucky = self.selectComponent('#myLucky'); | 884 | const $lucky = self.selectComponent('#myLucky'); |
| 883 | // 调用play方法开始旋转 | 885 | // 调用play方法开始旋转 |
| 884 | $lucky.play(); | 886 | $lucky.play(); |
| 885 | - | 887 | + wx.hideLoading(); |
| 886 | // 获取抽奖结果 | 888 | // 获取抽奖结果 |
| 887 | app.request.post('/api/weshop/marketing/marketingLuckForm/startLuck', { | 889 | app.request.post('/api/weshop/marketing/marketingLuckForm/startLuck', { |
| 888 | isShowLoading: false, | 890 | isShowLoading: false, |