From 9544981b868e010ebdac17446f4a8dc4dfc241a7 Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期一, 09 六月 2025 11:00:47 +0800
Subject: [PATCH] 1

---
 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