1
cloudroam
2025-06-09 9544981b868e010ebdac17446f4a8dc4dfc241a7
1
已修改1个文件
13 ■■■■■ 文件已修改
sub-pages/film-list/film-list.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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)