From 9aff0b29d4d68e3b2d4118c27e2c792037455440 Mon Sep 17 00:00:00 2001 From: zhaojs <349234519@qq.com> Date: 星期二, 06 六月 2023 13:42:46 +0800 Subject: [PATCH] no message --- uniapp/pages/mine/mine.vue | 19 +++++++++++-------- 1 files changed, 11 insertions(+), 8 deletions(-) diff --git a/uniapp/pages/mine/mine.vue b/uniapp/pages/mine/mine.vue index 1d99ce3..6256853 100644 --- a/uniapp/pages/mine/mine.vue +++ b/uniapp/pages/mine/mine.vue @@ -274,7 +274,6 @@ }, onPullDownRefresh() { - this.getuserInfo(); this.centerInfo(); this.getmoneyInfo(); @@ -287,7 +286,7 @@ url:"/pages/login/wxlogin" }) }else{ - getApp().watch(this.getInit,'ifwt') + //getApp().watch(this.ifwtChange,'ifwt') this.centerInfo() this.getbanner() } @@ -297,7 +296,6 @@ this.getInit(); this.getmoneyInfo() this.getuserInfo() - } }, methods: { @@ -306,12 +304,17 @@ if(!getApp().globalData.hasinit) { getApp().getAppInfo(); + setTimeout(()=>{ + this.getInit(); + },2000) } - // #ifdef APP-PLUS - this.appInfo = uni.getStorageSync('appInfo'); - this.showtar = getApp().globalData.ifwt == 1 ? false : true; - this.platform = plus.os.name - // #endif + + // #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