add
This commit is contained in:
parent
1e617e1b39
commit
75c82ad59d
@ -4,7 +4,8 @@
|
||||
"path": "pages/index/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "首页",
|
||||
"navigationStyle": "custom" // 首页使用自定义导航栏(需手动绘制)
|
||||
"navigationStyle": "custom", // 首页使用自定义导航栏(需手动绘制)
|
||||
"enableShareAppMessage": true
|
||||
}
|
||||
},
|
||||
{
|
||||
|
@ -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,
|
||||
|
@ -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: "登录成功" });
|
||||
|
@ -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;
|
||||
|
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user