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