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",
"style": {
"navigationBarTitleText": "首页",
"navigationStyle": "custom" // 使
"navigationStyle": "custom", // 使
"enableShareAppMessage": true
}
},
{

View File

@ -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,

View File

@ -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: "登录成功" });

View File

@ -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;

View File

@ -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({