From 1768e460a83c781e5e7b1ee27061a6211991b301 Mon Sep 17 00:00:00 2001
From: blue <825657193@qq.com>
Date: Sat, 20 Apr 2024 16:10:09 +0800
Subject: [PATCH 1/7] =?UTF-8?q?=E8=BF=81=E7=A7=BBwx=E5=B0=8F=E7=A8=8B?=
=?UTF-8?q?=E5=BA=8F=E8=AF=84=E5=AE=A1=E4=BB=A3=E7=A0=81=E5=88=B0=E7=8B=AC?=
=?UTF-8?q?=E7=AB=8B=E5=88=86=E6=94=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
im-uniapp/App.vue | 17 +++
.../components/user-search/user-search.vue | 118 ++++++++++++++++++
im-uniapp/pages.json | 2 +-
im-uniapp/pages/group/group.vue | 6 +-
4 files changed, 141 insertions(+), 2 deletions(-)
create mode 100644 im-uniapp/components/user-search/user-search.vue
diff --git a/im-uniapp/App.vue b/im-uniapp/App.vue
index 4274b60..06e58a0 100644
--- a/im-uniapp/App.vue
+++ b/im-uniapp/App.vue
@@ -15,6 +15,8 @@
init() {
// 加载数据
store.dispatch("load").then(() => {
+ // 审核
+ this.initAudit();
// 初始化websocket
this.initWebSocket();
}).catch((e) => {
@@ -239,6 +241,21 @@
// this.audioTip = uni.createInnerAudioContext();
// this.audioTip.src = "/static/audio/tip.wav";
// this.audioTip.play();
+ },
+ 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
new file mode 100644
index 0000000..fadd7f6
--- /dev/null
+++ b/im-uniapp/components/user-search/user-search.vue
@@ -0,0 +1,118 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{ user.nickName}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/im-uniapp/pages.json b/im-uniapp/pages.json
index 6949536..520b23c 100644
--- a/im-uniapp/pages.json
+++ b/im-uniapp/pages.json
@@ -61,7 +61,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 537b283..a215665 100644
--- a/im-uniapp/pages/group/group.vue
+++ b/im-uniapp/pages/group/group.vue
@@ -1,5 +1,5 @@
-
+
@@ -19,6 +19,10 @@
+
+
+
+