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,6 +109,7 @@ Page({ | ||
109 | 109 | ||
110 | // console.log('luckInfo', res.data.data); | 110 | // console.log('luckInfo', res.data.data); |
111 | let luckInfo = res.data.data; | 111 | let luckInfo = res.data.data; |
112 | + | ||
112 | 113 | ||
113 | if(luckInfo && luckInfo.template_type != null && luckInfo.template_type == 1) { //获取模板 | 114 | if(luckInfo && luckInfo.template_type != null && luckInfo.template_type == 1) { //获取模板 |
114 | let url = `/api/weshop/marketing/marketingLuckTemplate/get/${store_id}/${luckInfo.template_id}`; | 115 | let url = `/api/weshop/marketing/marketingLuckTemplate/get/${store_id}/${luckInfo.template_id}`; |
@@ -131,6 +132,15 @@ Page({ | @@ -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,14 +485,11 @@ Page({ | ||
475 | return; | 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 | return; | 489 | return; |
484 | }; | 490 | }; |
485 | 491 | ||
492 | + | ||
486 | if(this.data.luckInfo.user_LuckNumDay > 0 || this.data.luckInfo.vip_act_num == 0) { | 493 | if(this.data.luckInfo.user_LuckNumDay > 0 || this.data.luckInfo.vip_act_num == 0) { |
487 | // console.log('start choujiang'); | 494 | // console.log('start choujiang'); |
488 | // let start = false; | 495 | // let start = false; |
@@ -624,16 +631,12 @@ Page({ | @@ -624,16 +631,12 @@ Page({ | ||
624 | 631 | ||
625 | if(no_luck_urltype == 1) { | 632 | if(no_luck_urltype == 1) { |
626 | if(this.data.luckInfo.no_luck_weappurl) { | 633 | if(this.data.luckInfo.no_luck_weappurl) { |
627 | - // console.log('dfjsoafjoasfjds======>',this.data.luckInfo.no_luck_weappurl); | ||
628 | let num = this.data.num; | 634 | let num = this.data.num; |
629 | let url = this.data.luckInfo.no_luck_weappurl; | 635 | let url = this.data.luckInfo.no_luck_weappurl; |
630 | self.timer = setInterval(function() { | 636 | self.timer = setInterval(function() { |
631 | if(num == 0) { | 637 | if(num == 0) { |
632 | clearInterval(self.timer); | 638 | clearInterval(self.timer); |
633 | app.goto(url); | 639 | app.goto(url); |
634 | - // wx.reLaunch({ | ||
635 | - // url: url, | ||
636 | - // }) | ||
637 | } else { | 640 | } else { |
638 | self.setData({ | 641 | self.setData({ |
639 | num: --num, | 642 | num: --num, |