From 75c82ad59d16edb9132b34b54b980c9cf5c9bdc8 Mon Sep 17 00:00:00 2001 From: 18796357645 <674126018@qq.com> Date: Tue, 15 Jul 2025 14:41:52 +0800 Subject: [PATCH] add --- pages.json | 3 ++- pages/device/index.vue | 2 +- pages/mine/index.vue | 1 - pages/mine/update.vue | 2 -- pages/selectDevice/index.vue | 2 +- 5 files changed, 4 insertions(+), 6 deletions(-) diff --git a/pages.json b/pages.json index 6c3cdb8..cd587e2 100644 --- a/pages.json +++ b/pages.json @@ -4,7 +4,8 @@ "path": "pages/index/index", "style": { "navigationBarTitleText": "首页", - "navigationStyle": "custom" // 首页使用自定义导航栏(需手动绘制) + "navigationStyle": "custom", // 首页使用自定义导航栏(需手动绘制) + "enableShareAppMessage": true } }, { diff --git a/pages/device/index.vue b/pages/device/index.vue index d0abd78..5a3f9d9 100644 --- a/pages/device/index.vue +++ b/pages/device/index.vue @@ -118,7 +118,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({ url: wsUrl, diff --git a/pages/mine/index.vue b/pages/mine/index.vue index 6c27f81..ea06c5b 100644 --- a/pages/mine/index.vue +++ b/pages/mine/index.vue @@ -149,7 +149,6 @@ export default { if (res.statusCode == 200) { this.userInfo = res.data; console.log('this.userInfo', this.userInfo); - // 存储用户信息到本地缓存(uni-app接口) uni.setStorageSync("userInfo", this.userInfo); uni.showToast({ title: "登录成功" }); diff --git a/pages/mine/update.vue b/pages/mine/update.vue index 27b832e..425b36e 100644 --- a/pages/mine/update.vue +++ b/pages/mine/update.vue @@ -155,7 +155,6 @@ font-family: PingFang SC, PingFang SC !important; min-height: 100vh; background-color: #f1f6fc; - /* 保持原有背景色 */ } /* Top Navigation Styles */ @@ -183,7 +182,6 @@ position: relative; z-index: 5; } - .back_icon { position: absolute; left: 20rpx; diff --git a/pages/selectDevice/index.vue b/pages/selectDevice/index.vue index 7b8612a..dd2ae03 100644 --- a/pages/selectDevice/index.vue +++ b/pages/selectDevice/index.vue @@ -76,7 +76,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({