From 6f5f6b8076a5c2fb2af2c367d190a0d282266ded Mon Sep 17 00:00:00 2001 From: "@jyuhsin" <729757837@qq.com> Date: Tue, 6 May 2025 19:40:35 +0800 Subject: [PATCH] commit --- .../controller/ClientActivityController.java | 1 + frontend/src/pages.json | 11 +++++ frontend/src/pages/activity/list/index.vue | 3 ++ frontend/src/pages/activity/rank/index.vue | 44 ++++++++++++++++--- frontend/src/pages/index/index.vue | 4 +- 5 files changed, 55 insertions(+), 8 deletions(-) diff --git a/backend/src/main/java/com/budwk/app/client/module/activity/controller/ClientActivityController.java b/backend/src/main/java/com/budwk/app/client/module/activity/controller/ClientActivityController.java index 13d4df1..fd2b9e4 100644 --- a/backend/src/main/java/com/budwk/app/client/module/activity/controller/ClientActivityController.java +++ b/backend/src/main/java/com/budwk/app/client/module/activity/controller/ClientActivityController.java @@ -55,6 +55,7 @@ public class ClientActivityController { $condition """); Cnd cnd = Cnd.NEW(); + cnd.and(Cnd.likeEX("t1.title", pageForm.getSearchKeyword())); sql.setCondition(cnd); Pagination pagination = clientActivityService.listPageMap(pageForm.getPageNumber(), pageForm.getPageSize(), sql); return Result.success(pagination); diff --git a/frontend/src/pages.json b/frontend/src/pages.json index 01fb792..f5e4ed8 100644 --- a/frontend/src/pages.json +++ b/frontend/src/pages.json @@ -127,6 +127,17 @@ "selectedColor": "#f45a5a" } }, + { + "pagePath": "pages/activity/rank/index", + "text": "排行榜", + "iconfont": { + "text": "\ue64d", + "selectedText": "\ue64d", + "fontSize": "17px", + "color": "#333", + "selectedColor": "#f45a5a" + } + }, { "pagePath": "pages/profile/index", "text": "我的", diff --git a/frontend/src/pages/activity/list/index.vue b/frontend/src/pages/activity/list/index.vue index 5e7b3c8..4f26ee3 100644 --- a/frontend/src/pages/activity/list/index.vue +++ b/frontend/src/pages/activity/list/index.vue @@ -8,6 +8,9 @@ shape="round" class="search-input" @onSearch="handleSearch" + @onSubmit="handleSearch" + @submit="handleSearch" + @search="handleSearch" /> diff --git a/frontend/src/pages/activity/rank/index.vue b/frontend/src/pages/activity/rank/index.vue index a8d863c..d933c15 100644 --- a/frontend/src/pages/activity/rank/index.vue +++ b/frontend/src/pages/activity/rank/index.vue @@ -1,5 +1,10 @@ @@ -441,7 +473,7 @@ onMounted(() => { .refresh-btn { position: fixed; right: 30rpx; - bottom: 40rpx; + bottom: 140rpx; width: 90rpx; height: 90rpx; border-radius: 50%; diff --git a/frontend/src/pages/index/index.vue b/frontend/src/pages/index/index.vue index f66bb9f..ae239e0 100644 --- a/frontend/src/pages/index/index.vue +++ b/frontend/src/pages/index/index.vue @@ -22,7 +22,7 @@ - 3 + 我的团队 @@ -71,7 +71,7 @@