新增聊天系统

This commit is contained in:
gyq
2025-06-16 17:51:09 +08:00
parent f103df619b
commit b7e12cd0d1
12 changed files with 1656 additions and 505 deletions

View File

@@ -3,6 +3,8 @@
// 多语言引入并初始化
import i18n from './locale/index';
const env = process.env.NODE_ENV;
import socket from '@/utils/socket';
export default {
globalData: {
data: {
@@ -3107,6 +3109,12 @@
onLaunch(params) {
//隐藏系统tabbar
this.globalData.system_hide_tabbar();
const userInfo = uni.getStorageSync('cache_shop_user_info_key');
if (userInfo.id) {
// 应用启动时连接socket
socket.connectSocket();
}
},
// 启动,或从后台进入前台显示