From b7766218995e0821a59eae71b9ae401f9f918367 Mon Sep 17 00:00:00 2001
From: 13405411873 <1994398261@qq.com>
Date: Sat, 8 Feb 2025 14:26:18 +0800
Subject: [PATCH] =?UTF-8?q?bug=20=E5=A4=84=E7=90=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 asd-wx/common/utils/config.js     |  4 ++--
 asd-wx/pages/tabbar/home/Home.vue | 38 +++++++++++++++++++++++++++++++
 asd-wx/util/config.js             |  4 ++--
 3 files changed, 42 insertions(+), 4 deletions(-)

diff --git a/asd-wx/common/utils/config.js b/asd-wx/common/utils/config.js
index 21e9ddd..ddbc10b 100644
--- a/asd-wx/common/utils/config.js
+++ b/asd-wx/common/utils/config.js
@@ -2,8 +2,8 @@
 // const baseUrl = "https://www.jieyi-autism.com/asdProject"
  //const baseUrl = "https://www.jieyi-autism.com/asdProject"
 //const baseUrl = "http://192.168.31.25:8082/asdProject"
-// const baseUrl = "https://www.jieyi-autism.com/asdProject"
-const baseUrl = "http://127.0.0.1:8082/asdProject"
+const baseUrl = "https://www.jieyi-autism.com/asdProject"
+//const baseUrl = "http://127.0.0.1:8082/asdProject"
 // const baseUrl = "https://localhost/asdProject"
 // const baseUrl = "https://43.140.199.34/jeecg-boot"
 // const baseUrl = "http://43.140.199.34:8080/jeecg-boot"
diff --git a/asd-wx/pages/tabbar/home/Home.vue b/asd-wx/pages/tabbar/home/Home.vue
index 9521f8c..892d888 100644
--- a/asd-wx/pages/tabbar/home/Home.vue
+++ b/asd-wx/pages/tabbar/home/Home.vue
@@ -136,6 +136,44 @@
 			this.getArticleList();
 			this.getTableList();
 		},
+		onShareAppMessage: function() { // 分享到微信
+					// 更多参数配置,参考文档
+					return {
+						title: '孑医测评',
+						path: '/pages/tabbar/home/Home'
+					}
+		},
+		
+		onShareTimeline() { // 分享到朋友圈
+			return {
+				title: '孑医测评',
+				path: '/pages/tabbar/home/Home'
+			}
+		},
+		onShare() {
+			wx.showShareMenu({
+				withShareTicket: true,
+				success: function() {
+					console.log('成功开启分享菜单')
+				},
+				fail: function(res) {
+					console.log('开启分享菜单失败', res)
+				}
+			})
+
+			wx.onShareAppMessage(function() {
+				return {
+					title: '孑医测评',
+					path: '/pages/tabbar/home/Home',
+					success: function(res) {
+						console.log('分享成功', res)
+					},
+					fail: function(res) {
+						console.log('分享失败', res)
+					}
+				}
+			})
+		},
 		methods: {
 			// 用户拒绝授权的展示
 			showRefuseLocationPermission() {
diff --git a/asd-wx/util/config.js b/asd-wx/util/config.js
index 9cb5923..560e62a 100644
--- a/asd-wx/util/config.js
+++ b/asd-wx/util/config.js
@@ -1,7 +1,7 @@
 // const baseUrl = "http://localhost:8080/asdProject"
 
-//const baseUrl = "https://www.jieyi-autism.com/asdProject"
-const baseUrl = "http://127.0.0.1:8082/asdProject"
+const baseUrl = "https://www.jieyi-autism.com/asdProject"
+//const baseUrl = "http://127.0.0.1:8082/asdProject"
 export {
 	baseUrl
 }
\ No newline at end of file