From bde08d19092a8ea934ccc55ebbc28345555e987f Mon Sep 17 00:00:00 2001 From: xsx <825657193@qq.com> Date: Mon, 17 Jun 2024 23:46:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A7=BB=E9=99=A4=E5=B0=8F=E7=A8=8B?= =?UTF-8?q?=E5=BA=8F=E5=AE=A1=E6=A0=B8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- im-ui/src/components/rtc/RtcGroupVideo.vue | 802 +++++++++++++++++- im-uniapp/App.vue | 18 +- .../components/user-search/user-search.vue | 118 --- im-uniapp/pages.json | 2 +- im-uniapp/pages/group/group.vue | 6 +- 5 files changed, 784 insertions(+), 162 deletions(-) delete mode 100644 im-uniapp/components/user-search/user-search.vue diff --git a/im-ui/src/components/rtc/RtcGroupVideo.vue b/im-ui/src/components/rtc/RtcGroupVideo.vue index ef83b3c..83efc17 100644 --- a/im-ui/src/components/rtc/RtcGroupVideo.vue +++ b/im-ui/src/components/rtc/RtcGroupVideo.vue @@ -1,42 +1,802 @@ \ No newline at end of file diff --git a/im-uniapp/App.vue b/im-uniapp/App.vue index a2ba339..41f6933 100644 --- a/im-uniapp/App.vue +++ b/im-uniapp/App.vue @@ -15,8 +15,6 @@ init() { // 加载数据 store.dispatch("load").then(() => { - // 审核 - this.initAudit(); // 初始化websocket this.initWebSocket(); }).catch((e) => { @@ -50,6 +48,7 @@ } }); wsApi.onClose((res) => { + console.log("ws断开",res); // 1000是客户端正常主动关闭 if (res.code != 1000) { // 重新连接 @@ -278,21 +277,6 @@ return true; } return loginInfo.expireTime < new Date().getTime(); - }, - initAudit() { - if (store.state.userStore.userInfo.type == 1) { - // 显示群组功能 - uni.setTabBarItem({ - index: 2, - text: "群聊" - }) - } else { - // 隐藏群组功能 - uni.setTabBarItem({ - index: 2, - text: "搜索" - }) - } } }, onLaunch() { diff --git a/im-uniapp/components/user-search/user-search.vue b/im-uniapp/components/user-search/user-search.vue deleted file mode 100644 index fadd7f6..0000000 --- a/im-uniapp/components/user-search/user-search.vue +++ /dev/null @@ -1,118 +0,0 @@ - - - - - \ No newline at end of file diff --git a/im-uniapp/pages.json b/im-uniapp/pages.json index c540831..4a4f870 100644 --- a/im-uniapp/pages.json +++ b/im-uniapp/pages.json @@ -63,7 +63,7 @@ "pagePath": "pages/group/group", "iconPath": "static/tarbar/group.png", "selectedIconPath": "static/tarbar/group_active.png", - "text": "搜索" + "text": "群聊" }, { "pagePath": "pages/mine/mine", diff --git a/im-uniapp/pages/group/group.vue b/im-uniapp/pages/group/group.vue index a215665..19ba5a8 100644 --- a/im-uniapp/pages/group/group.vue +++ b/im-uniapp/pages/group/group.vue @@ -1,5 +1,5 @@