From e04d6a8904fd0c93b931551d8feea0943bae8eac Mon Sep 17 00:00:00 2001 From: cloudroam <cloudroam> Date: 星期四, 12 六月 2025 18:11:06 +0800 Subject: [PATCH] add: 评论回复 --- sub-pages/film-list/film-list.vue | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/sub-pages/film-list/film-list.vue b/sub-pages/film-list/film-list.vue index acdf69c..47377ab 100644 --- a/sub-pages/film-list/film-list.vue +++ b/sub-pages/film-list/film-list.vue @@ -41,12 +41,16 @@ const theme = ref('light') const search = ref('') +const keywords = ref('') // 新增关键词状态 const tabList = ref<FilmCategoryTree[]>([]) const onSearch = (value: string) => { - uni.showToast({ - title: `搜索:${value}`, - icon: 'none' - }) + const searchValue = typeof value === 'string' ? value : search.value + keywords.value = searchValue + filmPage.value = 1 + films.value = [] + filmStatus.value = 'loadmore' + getfilms() + } const handleDetailClick = (item: FilmCategoryTree) => { @@ -105,6 +109,7 @@ type: '', current: filmPage.value, size: filmSize, + keywords: keywords.value // 关键修改 }; const records = await getFilmWorksBase(query) -- Gitblit v1.9.3