| | |
| | | this.getPopBannerInfo(); |
| | | }, |
| | | onShow() { |
| | | if(!this.hasLogin){ |
| | | /* if(!this.hasLogin){ |
| | | setTimeout(function(){ |
| | | |
| | | uni.reLaunch({ |
| | |
| | | }) |
| | | },1000); |
| | | return; |
| | | } |
| | | } */ |
| | | if(!this.hasshow) |
| | | { |
| | | this.shShow(); |
| | | } |
| | | |
| | | var user= uni.getStorageSync('userInfo'); |
| | | console.log(user); |
| | | if(!user.invitation_code) |
| | | { |
| | | setTimeout(function(){ |
| | | /* var user= uni.getStorageSync('userInfo'); |
| | | console.log(user); */ |
| | | // if(!user.invitation_code) |
| | | // { |
| | | // setTimeout(function(){ |
| | | |
| | | uni.reLaunch({ |
| | | url:"/pages/login/wxlogin" |
| | | }) |
| | | },1000); |
| | | return; |
| | | } |
| | | // uni.reLaunch({ |
| | | // url:"/pages/login/wxlogin" |
| | | // }) |
| | | // },1000); |
| | | // return; |
| | | // } |
| | | if(this.categoryList){ |
| | | this.getCategoryList(); |
| | | } |
| | |
| | | that.isshowtype=true; |
| | | } else { |
| | | that.isshowtype=false; |
| | | console.log("跳转"); |
| | | if(!that.hasLogin){ |
| | | uni.reLaunch({ |
| | | url:"/pages/login/wxlogin" |
| | | }) |
| | | } |
| | | var user= uni.getStorageSync('userInfo'); |
| | | if(!user.invitation_code) |
| | | { |
| | | setTimeout(function(){ |
| | | |
| | | uni.reLaunch({ |
| | | url:"/pages/login/wxlogin" |
| | | }) |
| | | },1000); |
| | | return; |
| | | } |
| | | } |
| | | console.log(that.isshowtype); |
| | | } |