From 0e3df9ef62d561bb32279c8bf5242cb703ced1ec Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: Wed, 4 Jun 2025 19:06:46 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=89=A9=E4=B8=9A=E8=B4=A6?=
=?UTF-8?q?=E5=8F=B7=E4=B8=8B=E5=88=87=E6=8D=A2=E5=B0=8F=E5=8C=BA=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/community/communityApi.js | 30 +++++-
src/components/community/moreCommunity.vue | 106 +++++++++++++++++++++
src/main.js | 9 ++
src/views/layout/LayoutLang.js | 6 +-
src/views/layout/layout.vue | 76 +++++++++++++--
5 files changed, 214 insertions(+), 13 deletions(-)
create mode 100644 src/components/community/moreCommunity.vue
diff --git a/src/api/community/communityApi.js b/src/api/community/communityApi.js
index 5b7a408e5..831ff6dbc 100644
--- a/src/api/community/communityApi.js
+++ b/src/api/community/communityApi.js
@@ -1,4 +1,4 @@
-import { setCommunitys,setCurrentCommunity } from "@/utils/vc"
+import { setCommunitys,setCurrentCommunity,getCurrentCommunity } from "@/utils/vc"
import request from '@/utils/request'
export function _loadCommunityInfo(_param) {
return new Promise((resolve, reject) => {
@@ -51,4 +51,32 @@ export function getDict(tableName,tableColumns) {
reject(error)
})
})
+}
+
+export function getCommunityId() {
+ return getCurrentCommunity().communityId
+}
+
+
+
+export function getCommunityName() {
+ return getCurrentCommunity().name
+}
+
+export function getMyEnteredCommunitys(_param) {
+ return new Promise((resolve, reject) => {
+ request({
+ url: '/community.listMyEnteredCommunitys',
+ method: 'get',
+ params: {
+ ..._param
+ }
+ }).then(response => {
+ const res = response.data
+ // 获取验证码成功
+ resolve(res)
+ }).catch(error => {
+ reject(error)
+ })
+ })
}
\ No newline at end of file
diff --git a/src/components/community/moreCommunity.vue b/src/components/community/moreCommunity.vue
new file mode 100644
index 000000000..107b79f89
--- /dev/null
+++ b/src/components/community/moreCommunity.vue
@@ -0,0 +1,106 @@
+
+