Commit e5d57493fc9b984984907706497c6c4656a40a88

Authored by taiyuan
1 parent d131c35b

幸运大转盘增加‘抽奖中’

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