From 69ea24e8fdfb41fc48c3fdb8c444645c13b1bbc4 Mon Sep 17 00:00:00 2001
From: zhaojs <349234519@qq.com>
Date: 星期六, 10 六月 2023 13:56:17 +0800
Subject: [PATCH] Merge branch 'release/1.1.2发布'

---
 uniapp/pages/mine/mine.vue |   30 ++++++++++++++++++++----------
 1 files changed, 20 insertions(+), 10 deletions(-)

diff --git a/uniapp/pages/mine/mine.vue b/uniapp/pages/mine/mine.vue
index 9ba1257..79acd4b 100644
--- a/uniapp/pages/mine/mine.vue
+++ b/uniapp/pages/mine/mine.vue
@@ -282,7 +282,6 @@
 				platform: '',
 				showtar: false,
 				bbcList:'',
-
 				sct: 0,
 				inviteCodeShow:false,
 				inviterShow:false
@@ -298,6 +297,7 @@
 			this.getuserInfo();
 			this.centerInfo();
 			this.getmoneyInfo();
+			this.getInit();
 			uni.stopPullDownRefresh();
 		},		
 		onLoad() {
@@ -306,24 +306,36 @@
 					url:"/pages/login/wxlogin"
 				})
 			}else{
-				// #ifdef APP-PLUS
-				this.appInfo = uni.getStorageSync('appInfo');
-				console.log(this.appInfo.iosExamine);
-				this.showtar = getApp().globalData.ifwt == 1 ? false : true;
-				this.platform = plus.os.name
-				// #endif
+				//getApp().watch(this.ifwtChange,'ifwt')
 				this.centerInfo()
 				this.getbanner()
 			}
-
 		},
 		onShow() {
 			if(this.hasLogin){
+				this.getInit();
 				this.getmoneyInfo()
 				this.getuserInfo()
 			}
 		},
 		methods: {
+			getInit()
+			{
+				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;
 				this.$u.api.getEstimateAmount({}).then(e => {
@@ -441,8 +453,6 @@
 				}
 				
 			},
-
-			
 			cpr_version(a, b) {
 				console.log(a);
 				var _a = this.toNum(a),

--
Gitblit v1.9.3