From c38a2a46eadc50a3d1b8937a429891a0bc45eb6d Mon Sep 17 00:00:00 2001 From: wangxiangwen4 <1906413238@qq.com> Date: Tue, 22 Jul 2025 13:16:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E5=9B=BE=E6=A0=87+=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E5=A5=96=E5=93=81=E4=B8=AD=E5=A4=9A=E4=BD=99=E7=9A=84?= =?UTF-8?q?js+=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86=E5=88=9D=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- activitylink/package-lock.json | 1 + activitylink/package.json | 1 + activitylink/src/api/manage/gift.js | 22 +- activitylink/src/router/index.js | 5 + activitylink/src/views/zhongchou/index.vue | 13 +- activitylink/src/views/zhongchou/user/index.vue | 262 ++++++++++++++++++++++++ 6 files changed, 280 insertions(+), 24 deletions(-) create mode 100644 activitylink/src/views/zhongchou/user/index.vue diff --git a/activitylink/package-lock.json b/activitylink/package-lock.json index ab540ac..17b08da 100644 --- a/activitylink/package-lock.json +++ b/activitylink/package-lock.json @@ -8,6 +8,7 @@ "name": "activitylink", "version": "0.0.0", "dependencies": { + "@element-plus/icons-vue": "^2.3.1", "@vitejs/plugin-vue": "^4.6.2", "axios": "^1.10.0", "element-plus": "^2.10.4", diff --git a/activitylink/package.json b/activitylink/package.json index 557f07f..7ab17df 100644 --- a/activitylink/package.json +++ b/activitylink/package.json @@ -9,6 +9,7 @@ "preview": "vite preview" }, "dependencies": { + "@element-plus/icons-vue": "^2.3.1", "@vitejs/plugin-vue": "^4.6.2", "axios": "^1.10.0", "element-plus": "^2.10.4", diff --git a/activitylink/src/api/manage/gift.js b/activitylink/src/api/manage/gift.js index 3989484..c1c7fab 100644 --- a/activitylink/src/api/manage/gift.js +++ b/activitylink/src/api/manage/gift.js @@ -23,26 +23,6 @@ export function deletePrize(id) { //奖品分页查询 export function getPrizeList(params) { return request({ - url: '/admin/prize/add', - method: 'post', - data: data, - headers: { - 'Content-Type': 'application/json' - } - }) -} - -// 奖品删除 -export function deletePrize(id) { - return request({ - url: '/admin/prize/delete', - method: 'post', - params: params - }) -} -//奖品分页查询 -export function getPrizeList(params) { - return request({ url: '/admin/prize/list', method: 'post', params: params @@ -178,4 +158,4 @@ export const importFixUsers = (file,gradeId) => { 'Content-Type': 'multipart/form-data' } }); -}; +}; \ No newline at end of file diff --git a/activitylink/src/router/index.js b/activitylink/src/router/index.js index 2d35cca..e95e914 100644 --- a/activitylink/src/router/index.js +++ b/activitylink/src/router/index.js @@ -28,6 +28,11 @@ const routes = [ component: () => import('../views/zhongchou/gift/index.vue'), }, { + path: 'userManagement', // 注意这里不要加斜杠,表示相对路径 + name: 'zhongchouuser', + component: () => import('../views/zhongchou/user/index.vue'), + }, + { path: 'giftManagement/importUsers', // 注意这里不要加斜杠,表示相对路径 name: 'importUsers', component: () => import('../views/zhongchou/gift/importuser/index.vue'), diff --git a/activitylink/src/views/zhongchou/index.vue b/activitylink/src/views/zhongchou/index.vue index a40c046..360daca 100644 --- a/activitylink/src/views/zhongchou/index.vue +++ b/activitylink/src/views/zhongchou/index.vue @@ -5,7 +5,9 @@ import { Location, Menu as IconMenu, Document, - Setting + Setting, + User, + HelpFilled } from '@element-plus/icons-vue' import { useRouter } from 'vue-router' const router = useRouter() @@ -56,8 +58,13 @@ const handleClose = (key, keyPath) => { - - 众筹活动 + + 活动管理 + + + + + 用户管理 diff --git a/activitylink/src/views/zhongchou/user/index.vue b/activitylink/src/views/zhongchou/user/index.vue new file mode 100644 index 0000000..aac373b --- /dev/null +++ b/activitylink/src/views/zhongchou/user/index.vue @@ -0,0 +1,262 @@ + + + + + \ No newline at end of file