From 47171769ba8a7e953c870ac6b5bf24efb6a5e440 Mon Sep 17 00:00:00 2001
From: zhaojs <349234519@qq.com>
Date: 星期三, 14 六月 2023 14:41:40 +0800
Subject: [PATCH] no message

---
 uniapp/App.vue |   33 +++++++++++++++++++++++++++------
 1 files changed, 27 insertions(+), 6 deletions(-)

diff --git a/uniapp/App.vue b/uniapp/App.vue
index ad3c38f..a85e536 100644
--- a/uniapp/App.vue
+++ b/uniapp/App.vue
@@ -82,7 +82,8 @@
 			}); */
 			APPUpdate();
 			// #endif
-			this.getAppInfo()
+			this.getAppInfo();
+			//this.that.bcInit();
 			let userInfo = uni.getStorageSync('userInfo')
 			if (userInfo.id) {
 				this.login(userInfo)
@@ -90,7 +91,6 @@
 			uni.getSystemInfo({
 				success: e => {
 					// #ifdef APP-PLUS
-					console.log(e)
 					if (e.platform == 'android') {
 						this.globalData.platform = 'android'
 						this.globalData.systemLevel = e.system
@@ -137,6 +137,7 @@
 			appinfo: {},
 			ifwt: 0,
 			hasinit:false,
+			hasbcinit:false,
 			
 		},
 		onShow: function() {
@@ -149,12 +150,14 @@
 							content: '妫�娴嬪埌缃戠粶鏉冮檺鍙兘璁剧疆涓哄叧闂紝鎮ㄥ彲浠ュ湪鈥滆缃�濅腑妫�鏌ユ棤绾挎暟鎹強铚傜獫绉诲姩缃戠粶'
 						})
 					}else{
-						console.log("鏄惁璇锋眰杩囷細"+that.globalData.hasinit)
 						if(!that.globalData.hasinit)
 						{
 							that.getAppInfo();
 						}
-						
+						if(!that.globalData.hasbcinit)
+						{
+							that.bcInit();
+						}
 						/* let appInfo = utils.getCacheSync('appInfo')
 						if(appInfo == "" || appInfo == undefined){
 							console.log("鑾峰彇鏂规硶")
@@ -168,7 +171,6 @@
 				var route = routes[routes.length - 1].route
 			}
 			// #ifdef APP-PLUS
-			console.log(this.globalData.canlisten)
 			if (this.globalData.canlisten && route != 'pages/mine/tools/turnChain') {
 				getClipboard()
 			}
@@ -178,10 +180,26 @@
 		onHide: function() {},
 		methods: {
 			...mapMutations(['login']),
+			 bcInit:function()
+			{
+				var that = this;
+				console.log(uni.getSystemInfoSync().platform);
+				if (uni.getSystemInfoSync().platform == 'ios')
+				{
+					const plug = uni.requireNativePlugin('xiguazhu-baichuan');
+					plug.init({}, result => {
+						//console.log('1111111111111111111');
+						console.log(result);	// code绛変簬0灏辨槸鍒濆鍖栨垚鍔�
+						if(result.code==0)
+						{
+							that.globalData.hasbcinit=true;
+						}
+					});
+				}
+			},
 			getAppInfo: function() {
 				var that = this;
 				this.$u.api.comminInt({}).then(e => {
-					console.log(e)
 					if (e.code != 0) return that.$alert(e.msg)
 					that.globalData.hasinit=true;
 					that.globalData.appinfo = e.data.basic
@@ -202,6 +220,7 @@
 								that.globalData.ifwt = 0
 							}
 						}
+						console.log(that.globalData.ifwt);
 					} else {
 						if (plus.runtime.isApplicationExist({pname:'com.tencent.mm',
 								action: 'weixin://'
@@ -214,9 +233,11 @@
 						}
 					}
 					// #endif
+					
 				}).catch(function(err) {})
 				
 			},
+			
 			 watch:function(method,istr){
 			                var obj=this.globalData
 			                console.log(obj)

--
Gitblit v1.9.3