| | |
| | | |
| | | 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) => { |
| | |
| | | type: '', |
| | | current: filmPage.value, |
| | | size: filmSize, |
| | | keywords: keywords.value // 关键修改 |
| | | }; |
| | | const records = await getFilmWorksBase(query) |
| | | |