Commit a7ae446c4ad81a433c1df1131eb0ee248f8adcc7
1 parent
0e5a35ed
转盘
Showing
1 changed file
with
12 additions
and
9 deletions
packageB/pages/luckactivity/luckinfo/luckinfo.js
... | ... | @@ -109,6 +109,7 @@ Page({ |
109 | 109 | |
110 | 110 | // console.log('luckInfo', res.data.data); |
111 | 111 | let luckInfo = res.data.data; |
112 | + | |
112 | 113 | |
113 | 114 | if(luckInfo && luckInfo.template_type != null && luckInfo.template_type == 1) { //获取模板 |
114 | 115 | let url = `/api/weshop/marketing/marketingLuckTemplate/get/${store_id}/${luckInfo.template_id}`; |
... | ... | @@ -131,6 +132,15 @@ Page({ |
131 | 132 | }; |
132 | 133 | |
133 | 134 | }; |
135 | + | |
136 | + | |
137 | + if(self.data.luckInfo.msgInfo) { | |
138 | + wx.showToast({ | |
139 | + title: self.data.luckInfo.msgInfo, | |
140 | + icon: 'none', | |
141 | + }); | |
142 | + // return; | |
143 | + }; | |
134 | 144 | |
135 | 145 | }, |
136 | 146 | }); |
... | ... | @@ -475,14 +485,11 @@ Page({ |
475 | 485 | return; |
476 | 486 | }; |
477 | 487 | |
478 | - if(this.data.luckInfo.msgInfo) { | |
479 | - wx.showToast({ | |
480 | - title: this.data.luckInfo.msgInfo, | |
481 | - icon: 'none', | |
482 | - }); | |
488 | + if(self.data.luckInfo.msgInfo) { | |
483 | 489 | return; |
484 | 490 | }; |
485 | 491 | |
492 | + | |
486 | 493 | if(this.data.luckInfo.user_LuckNumDay > 0 || this.data.luckInfo.vip_act_num == 0) { |
487 | 494 | // console.log('start choujiang'); |
488 | 495 | // let start = false; |
... | ... | @@ -624,16 +631,12 @@ Page({ |
624 | 631 | |
625 | 632 | if(no_luck_urltype == 1) { |
626 | 633 | if(this.data.luckInfo.no_luck_weappurl) { |
627 | - // console.log('dfjsoafjoasfjds======>',this.data.luckInfo.no_luck_weappurl); | |
628 | 634 | let num = this.data.num; |
629 | 635 | let url = this.data.luckInfo.no_luck_weappurl; |
630 | 636 | self.timer = setInterval(function() { |
631 | 637 | if(num == 0) { |
632 | 638 | clearInterval(self.timer); |
633 | 639 | app.goto(url); |
634 | - // wx.reLaunch({ | |
635 | - // url: url, | |
636 | - // }) | |
637 | 640 | } else { |
638 | 641 | self.setData({ |
639 | 642 | num: --num, | ... | ... |