diff --git a/pages.json b/pages.json index cd587e2..d88c3b4 100644 --- a/pages.json +++ b/pages.json @@ -4,7 +4,7 @@ "path": "pages/index/index", "style": { "navigationBarTitleText": "首页", - "navigationStyle": "custom", // 首页使用自定义导航栏(需手动绘制) + "navigationStyle": "custom", "enableShareAppMessage": true } }, diff --git a/pages/index/index.vue b/pages/index/index.vue index 2148d9b..47e5149 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -307,6 +307,13 @@ export default { reconnectInterval: 5000 // 重连间隔(5秒) }; }, + onShareAppMessage() { + return { + title: '欢迎是有Totustec', + path: '/pages/index/index', + imageUrl: 'https://online.totustec.com/upload/indexPage/logo.png' + } + }, onLoad () { const systemInfo = wx.getSystemInfoSync(); const { @@ -327,7 +334,7 @@ export default { methods: { // ---------------------- WebSocket 核心方法 ---------------------- connectWebSocket () { - const wsUrl = 'ws://e7eb22d8.natappfree.cc/webSocket/vue'; + const wsUrl = 'ws://online.totustec.com/webSocket/vue'; // 初始化 WebSocket 连接(使用 uni-app 接口) this.socketTask = uni.connectSocket({