| | |
| | | this.getuserInfo(); |
| | | this.centerInfo(); |
| | | this.getmoneyInfo(); |
| | | this.getInit(); |
| | | uni.stopPullDownRefresh(); |
| | | }, |
| | | onLoad() { |
| | |
| | | url:"/pages/login/wxlogin" |
| | | }) |
| | | }else{ |
| | | getApp().watch(this.getInit,'appinfo') |
| | | //getApp().watch(this.ifwtChange,'ifwt') |
| | | this.centerInfo() |
| | | this.getbanner() |
| | | } |
| | | }, |
| | | onShow() { |
| | | if(this.hasLogin){ |
| | | this.getInit(); |
| | | this.getmoneyInfo() |
| | | this.getuserInfo() |
| | | |
| | | } |
| | | }, |
| | | methods: { |
| | | getInit() |
| | | { |
| | | // #ifdef APP-PLUS |
| | | this.appInfo = uni.getStorageSync('appInfo'); |
| | | this.showtar = getApp().globalData.ifwt == 1 ? false : true; |
| | | this.platform = plus.os.name |
| | | // #endif |
| | | if(!getApp().globalData.hasinit) |
| | | { |
| | | getApp().getAppInfo(); |
| | | setTimeout(()=>{ |
| | | this.getInit(); |
| | | },2000) |
| | | } |
| | | |
| | | // #ifdef APP-PLUS |
| | | console.log(getApp().globalData.ifwt) |
| | | this.appInfo = uni.getStorageSync('appInfo'); |
| | | this.showtar = getApp().globalData.ifwt == 1 ? false : true; |
| | | this.platform = plus.os.name |
| | | // #endif |
| | | }, |
| | | getmoneyInfo() { |
| | | var that = this; |