From bef3a652349b7b79c914afcc013d7229706a2b3b Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期五, 09 六月 2023 09:10:32 +0800 Subject: [PATCH] Merge branch 'hotfix/修复苹果问题' --- uniapp/pages/mine/mine.vue | 24 +++++++++++++++++------- 1 files changed, 17 insertions(+), 7 deletions(-) diff --git a/uniapp/pages/mine/mine.vue b/uniapp/pages/mine/mine.vue index 9648712..6256853 100644 --- a/uniapp/pages/mine/mine.vue +++ b/uniapp/pages/mine/mine.vue @@ -277,6 +277,7 @@ this.getuserInfo(); this.centerInfo(); this.getmoneyInfo(); + this.getInit(); uni.stopPullDownRefresh(); }, onLoad() { @@ -285,26 +286,35 @@ 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; -- Gitblit v1.9.3