Commit e5d57493fc9b984984907706497c6c4656a40a88
1 parent
d131c35b
幸运大转盘增加‘抽奖中’
Showing
1 changed file
with
3 additions
and
3 deletions
packageB/pages/luckactivity/luckinfo/luckinfo.js
| ... | ... | @@ -848,7 +848,7 @@ Page({ |
| 848 | 848 | return; |
| 849 | 849 | }; |
| 850 | 850 | wx.showLoading({ |
| 851 | - title: '准备抽奖中' | |
| 851 | + title: '抽奖中' | |
| 852 | 852 | }); |
| 853 | 853 | // 获取积分 |
| 854 | 854 | app.request.promisePost('/api/weshop/marketing/marketingLuckForm/startLuckIntegral', { |
| ... | ... | @@ -885,7 +885,6 @@ Page({ |
| 885 | 885 | const $lucky = self.selectComponent('#myLucky'); |
| 886 | 886 | // 调用play方法开始旋转 |
| 887 | 887 | $lucky.play(); |
| 888 | - wx.hideLoading(); | |
| 889 | 888 | // 获取抽奖结果 |
| 890 | 889 | app.request.post('/api/weshop/marketing/marketingLuckForm/startLuck', { |
| 891 | 890 | isShowLoading: false, |
| ... | ... | @@ -922,6 +921,7 @@ Page({ |
| 922 | 921 | let index = indexArr[random]; |
| 923 | 922 | |
| 924 | 923 | $lucky.stop(index); |
| 924 | + | |
| 925 | 925 | // setTimeout(() => { |
| 926 | 926 | // Promise.resolve($lucky.stop(index)).then(()=>{ |
| 927 | 927 | // self.data.start = false; |
| ... | ... | @@ -1030,7 +1030,7 @@ Page({ |
| 1030 | 1030 | |
| 1031 | 1031 | }, |
| 1032 | 1032 | end (event) { |
| 1033 | - | |
| 1033 | + wx.hideLoading(); | |
| 1034 | 1034 | // 中奖奖品详情 |
| 1035 | 1035 | // console.log('抽奖结果:',event.detail); |
| 1036 | 1036 | let no_luck_urltype = this.data.luckInfo.no_luck_urltype; | ... | ... |