Commit fe7bc33a5ee90d97854af62cea7cbaccdb79d5a7

Authored by taiyuan
1 parent b89084cd

幸运大转盘抽奖积分不足提醒

packageB/pages/luckactivity/luckinfo/luckinfo.js
@@ -564,13 +564,6 @@ Page({ @@ -564,13 +564,6 @@ Page({
564 564
565 565
566 } else { 566 } else {
567 - // console.log('请求出错');  
568 - if(self.data.luckInfo.vip_act_num != 0) {  
569 - self.setData({  
570 - 'luckInfo.user_LuckNumDay': self.data.luckInfo.user_LuckNumDay - 1,  
571 - });  
572 - };  
573 -  
574 let thxIndexArr = self.data.thxIndexArr; 567 let thxIndexArr = self.data.thxIndexArr;
575 const random = Math.random() * thxIndexArr.length >> 0; 568 const random = Math.random() * thxIndexArr.length >> 0;
576 const index = thxIndexArr[random]; 569 const index = thxIndexArr[random];
@@ -580,6 +573,25 @@ Page({ @@ -580,6 +573,25 @@ Page({
580 $lucky.stop(index); 573 $lucky.stop(index);
581 self.data.start = false; 574 self.data.start = false;
582 }, 3000); 575 }, 3000);
  576 +
  577 +
  578 + if(res.data.code == -1) {
  579 + wx.showToast({
  580 + title: res.data.msg,
  581 + icon: 'none',
  582 + });
  583 + self.data.luckInfo.msgInfo = res.data.msg;
  584 + return;
  585 + // self.data.start = true;
  586 + };
  587 + // console.log('请求出错');
  588 + if(self.data.luckInfo.vip_act_num != 0) {
  589 + self.setData({
  590 + 'luckInfo.user_LuckNumDay': self.data.luckInfo.user_LuckNumDay - 1,
  591 + });
  592 + };
  593 +
  594 +
583 }; 595 };
584 }, 596 },
585 597