This commit is contained in:
18796357645 2025-07-15 14:41:52 +08:00
parent 1e617e1b39
commit 75c82ad59d
5 changed files with 4 additions and 6 deletions

View File

@ -4,7 +4,8 @@
"path": "pages/index/index", "path": "pages/index/index",
"style": { "style": {
"navigationBarTitleText": "首页", "navigationBarTitleText": "首页",
"navigationStyle": "custom" // 使 "navigationStyle": "custom", // 使
"enableShareAppMessage": true
} }
}, },
{ {

View File

@ -118,7 +118,7 @@ export default {
methods: { methods: {
// ---------------------- WebSocket ---------------------- // ---------------------- WebSocket ----------------------
connectWebSocket () { connectWebSocket () {
const wsUrl = 'ws://e7eb22d8.natappfree.cc/webSocket/vue'; const wsUrl = 'ws://online.totustec.com/webSocket/vue';
// WebSocket 使 uni-app // WebSocket 使 uni-app
this.socketTask = uni.connectSocket({ this.socketTask = uni.connectSocket({
url: wsUrl, url: wsUrl,

View File

@ -149,7 +149,6 @@ export default {
if (res.statusCode == 200) { if (res.statusCode == 200) {
this.userInfo = res.data; this.userInfo = res.data;
console.log('this.userInfo', this.userInfo); console.log('this.userInfo', this.userInfo);
// uni-app // uni-app
uni.setStorageSync("userInfo", this.userInfo); uni.setStorageSync("userInfo", this.userInfo);
uni.showToast({ title: "登录成功" }); uni.showToast({ title: "登录成功" });

View File

@ -155,7 +155,6 @@
font-family: PingFang SC, PingFang SC !important; font-family: PingFang SC, PingFang SC !important;
min-height: 100vh; min-height: 100vh;
background-color: #f1f6fc; background-color: #f1f6fc;
/* 保持原有背景色 */
} }
/* Top Navigation Styles */ /* Top Navigation Styles */
@ -183,7 +182,6 @@
position: relative; position: relative;
z-index: 5; z-index: 5;
} }
.back_icon { .back_icon {
position: absolute; position: absolute;
left: 20rpx; left: 20rpx;

View File

@ -76,7 +76,7 @@ export default {
methods: { methods: {
// ---------------------- WebSocket ---------------------- // ---------------------- WebSocket ----------------------
connectWebSocket () { connectWebSocket () {
const wsUrl = 'ws://e7eb22d8.natappfree.cc/webSocket/vue'; const wsUrl = 'ws://online.totustec.com/webSocket/vue';
// WebSocket 使 uni-app // WebSocket 使 uni-app
this.socketTask = uni.connectSocket({ this.socketTask = uni.connectSocket({