diff --git a/packageB/pages/luckactivity/luckinfo/luckinfo.js b/packageB/pages/luckactivity/luckinfo/luckinfo.js index e65501a..925b1c0 100644 --- a/packageB/pages/luckactivity/luckinfo/luckinfo.js +++ b/packageB/pages/luckactivity/luckinfo/luckinfo.js @@ -109,6 +109,7 @@ Page({ // console.log('luckInfo', res.data.data); let luckInfo = res.data.data; + if(luckInfo && luckInfo.template_type != null && luckInfo.template_type == 1) { //获取模板 let url = `/api/weshop/marketing/marketingLuckTemplate/get/${store_id}/${luckInfo.template_id}`; @@ -131,6 +132,15 @@ Page({ }; }; + + + if(self.data.luckInfo.msgInfo) { + wx.showToast({ + title: self.data.luckInfo.msgInfo, + icon: 'none', + }); + // return; + }; }, }); @@ -475,14 +485,11 @@ Page({ return; }; - if(this.data.luckInfo.msgInfo) { - wx.showToast({ - title: this.data.luckInfo.msgInfo, - icon: 'none', - }); + if(self.data.luckInfo.msgInfo) { return; }; + if(this.data.luckInfo.user_LuckNumDay > 0 || this.data.luckInfo.vip_act_num == 0) { // console.log('start choujiang'); // let start = false; @@ -624,16 +631,12 @@ Page({ if(no_luck_urltype == 1) { if(this.data.luckInfo.no_luck_weappurl) { - // console.log('dfjsoafjoasfjds======>',this.data.luckInfo.no_luck_weappurl); let num = this.data.num; let url = this.data.luckInfo.no_luck_weappurl; self.timer = setInterval(function() { if(num == 0) { clearInterval(self.timer); app.goto(url); - // wx.reLaunch({ - // url: url, - // }) } else { self.setData({ num: --num,