From 73536a9cc145c9e55e59120d57650ff3d4860fbb Mon Sep 17 00:00:00 2001 From: 18796357645 <674126018@qq.com> Date: Tue, 15 Jul 2025 15:49:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=86=E4=BA=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 3 ++- pages/deviceManage/index.vue | 4 ++-- pages/mine/index.vue | 25 ++++++++++++++++++++++--- 3 files changed, 26 insertions(+), 6 deletions(-) diff --git a/pages.json b/pages.json index d88c3b4..fd6a24f 100644 --- a/pages.json +++ b/pages.json @@ -12,7 +12,8 @@ "path": "pages/mine/index", "style": { "navigationBarTitleText": "我的", - "navigationStyle": "custom" + "navigationStyle": "custom", + "enableShareAppMessage": true } }, { diff --git a/pages/deviceManage/index.vue b/pages/deviceManage/index.vue index a380fef..8b5de82 100644 --- a/pages/deviceManage/index.vue +++ b/pages/deviceManage/index.vue @@ -294,7 +294,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({ @@ -356,7 +356,7 @@ export default { this.socketData = message.data; if (this.socketData.imageUrl) { this.socketData.imageUrl = - "http://e7eb22d8.natappfree.cc" + message.data.imageUrl; + "http://online.totustec.com" + message.data.imageUrl; } } // WRITEIMG 接收图片数据中 diff --git a/pages/mine/index.vue b/pages/mine/index.vue index ea06c5b..2f8916d 100644 --- a/pages/mine/index.vue +++ b/pages/mine/index.vue @@ -51,7 +51,7 @@ --> - + + @@ -157,6 +159,13 @@ export default { uni.showToast({ title: "登录失败", icon: "none" }); } }, + onShareAppMessage() { + return { + title: '欢迎体验Totustec', + path: '/pages/index/index', + imageUrl: 'https://online.totustec.com/upload/indexPage/company_logo1.png' + } + }, }, }; @@ -253,6 +262,16 @@ export default { width: 100%; margin-top: -20rpx; } + +.area2_item_right_btn { + background: none; + border: none; + padding: 0; + margin: 0; + box-shadow: none; + display: flex; + align-items: center; +}