From 1cb780b1762c62751c7f5f26132f3a7aa4ef3e2f Mon Sep 17 00:00:00 2001
From: 付延余 <f-yanyu@outlook.com>
Date: 星期四, 23 三月 2023 16:45:30 +0800
Subject: [PATCH] 微信登录修改,呼叫客服功能(完成)

---
 pages/tabbar-page/index-tabbar/index-tabbar.vue |   19 ++++++++++++++++++-
 1 files changed, 18 insertions(+), 1 deletions(-)

diff --git a/pages/tabbar-page/index-tabbar/index-tabbar.vue b/pages/tabbar-page/index-tabbar/index-tabbar.vue
index 1704840..aa804f7 100644
--- a/pages/tabbar-page/index-tabbar/index-tabbar.vue
+++ b/pages/tabbar-page/index-tabbar/index-tabbar.vue
@@ -18,6 +18,23 @@
 		driverIndex,
 		freightForwarderIndex
 	},
+	onLoad(){
+		// 寮�鍚弻浜洪�氳瘽
+		wx.setEnable1v1Chat({
+			enable: true,
+			backgroundType: 1,
+			minWindowType:2,
+			success() {
+				console.log('寮�鍚弻浜洪�氳瘽鎴愬姛');
+			},
+			fail() {
+				console.log('寮�鍚弻浜洪�氳瘽澶辫触');
+			},
+			complete() {
+				console.log('寮�鍚弻浜洪�氳瘽鎴愬姛Complete');
+			}
+		});
+	},
 	data() {
 		return {
 			roleType: null
@@ -57,7 +74,7 @@
 		userAuthorization() {
 			wx.getSetting({
 				success(res) {
-					wx.startRecord();
+					// wx.startRecord();
 					console.log('success');
 					if (!res.authSetting['scope.record'] || !res.authSetting['scope.camera']) {
 						if (!res.authSetting['scope.camera']) {

--
Gitblit v1.9.1