From b5867e3c5e0b6efb32e1a03cf6003385daf76dc7 Mon Sep 17 00:00:00 2001 From: yml2213 Date: Fri, 16 Oct 2026 14:35:04 +0800 Subject: [PATCH] =?UTF-8?q?style(home):=20=E9=A6=96=E9=A1=B5=E7=AD=9B?= =?UTF-8?q?=E9=80=89/=E6=A8=AA=E5=B9=85=E8=A7=86=E8=A7=89=E4=BC=98?= =?UTF-8?q?=E5=8C=96=EF=BC=8C=E9=87=8D=E7=BD=AE=E6=8C=89=E9=92=AE=E4=B8=8E?= =?UTF-8?q?=E7=AD=9B=E9=80=89=E8=83=B6=E5=9B=8A=E6=82=AC=E6=B5=AE=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E7=BB=9F=E4=B8=80=E4=B8=BB=E9=A2=98=E6=A9=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../listings/components/HomeBanner.vue | 50 ++++-- .../listings/components/HomeFilters.vue | 4 +- .../listings/composables/useFilterOptions.ts | 2 +- .../src/features/listings/views/HomeView.vue | 168 ++++++++++++------ .../listings/views/MobileHomeView.vue | 4 - frontend/src/styles/home-filters.css | 70 +++++++- 6 files changed, 215 insertions(+), 83 deletions(-) diff --git a/frontend/src/features/listings/components/HomeBanner.vue b/frontend/src/features/listings/components/HomeBanner.vue index 308009c..bb9237c 100644 --- a/frontend/src/features/listings/components/HomeBanner.vue +++ b/frontend/src/features/listings/components/HomeBanner.vue @@ -23,6 +23,9 @@ interface Props { const props = defineProps() +// 轮播高度由 CSS 变量统一控制,方便大屏/窄屏按比例收敛。 +const carouselHeight = 'var(--home-hero-height, 340px)' + const previewVisible = ref(false) const previewIndex = ref(0) @@ -52,7 +55,7 @@ function hasSlideCopy(slide: HomeBannerSlide) {