From 54a0b7c1a758f958f7e6fd0b86fa8e0aecfeca75 Mon Sep 17 00:00:00 2001
From: qingyiay <2386314947@qq.com>
Date: 星期一, 28 八月 2023 16:17:33 +0800
Subject: [PATCH] 呼叫客服增加选择呼叫类型

---
 App.vue |   48 +++++++++++++++++++++++++++++++++++++++---------
 1 files changed, 39 insertions(+), 9 deletions(-)

diff --git a/App.vue b/App.vue
index 5eb0a20..e7e6c3c 100644
--- a/App.vue
+++ b/App.vue
@@ -1,18 +1,48 @@
 <script>
+	import { mapState, mapMutations } from 'vuex';
 	export default {
-		onLaunch: function() {
-			console.log('App Launch')
+		onLaunch() {},
+		onHide() {
+			console.log('appvue闅愯棌鍚庡彴');
+			this.changeisconnect(false);
+			console.log(this.globalisconnect, this.globalisUploadimg, this.globalisLogin);
+
 		},
-		onShow: function() {
-			console.log('App Show')
+		onShow() {
+			console.log('appvue鏄剧ず');
+			if (!this.globalisconnect && !this.globalisUploadimg && this.globalisLogin) {
+				if (!this.is_open_socket) {
+					this.$store.dispatch('websocketInit')
+					this.changeisconnect(false);
+					console.log('appvue鐨剋s');
+				}
+			}
 		},
-		onHide: function() {
-			console.log('App Hide')
+		methods: {
+			...mapMutations(['changeisconnect'])
+		},
+		computed: {
+			...mapState(['globalisconnect', 'globalisUploadimg', 'globalisLogin', 'is_open_socket'])
 		}
-	}
+	};
 </script>
 
-<style lang="scss" scoped>
+<style lang="scss"
+	scoped>
 	/*姣忎釜椤甸潰鍏叡css */
 	@import '@/uni_modules/uview-ui/index.scss';
-</style>
+
+	@font-face {
+		font-family: siYuanLight;
+		src: url('https://mx.jzeg.cn:9095/appimg/fonts/siyuannormal.OTF');
+	}
+
+	@font-face {
+		font-family: weighting;
+		src: url('https://mx.jzeg.cn:9095/appimg/fonts/weighting.TTF');
+	}
+
+	body {
+		font-family: siYuanLight, sans-serif;
+	}
+</style>
\ No newline at end of file

--
Gitblit v1.9.1