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