--- import Breadcrumb from "@/components/Breadcrumb.astro" import BrandModal from "@/components/BrandModal.astro" import { getSsgHotBrands } from "@/lib/api" import { getI18n } from '@/i18n/utils' import "@/styles/look-grid.css" const { locale, t, getRelativeLocaleUrl } = getI18n(Astro) // 热门品牌:走 SSG 专属接口 /api/v1/ssg/brands/hot,后端固定返回热度前 30 个、按热度顺序排列。 // 侧栏 filter 展示前 10 个(模板内 slice(0,10)),品牌弹窗 HOT 标签展示全部 30 个。 // 接口不可用时回落假数据先看效果。 const FAKE_HOT_BRANDS = [ { id: "hot-chanel", name: "Chanel" }, { id: "hot-dior", name: "Dior" }, { id: "hot-gucci", name: "Gucci" }, { id: "hot-prada", name: "Prada" }, { id: "hot-louisvuitton", name: "Louis Vuitton" }, { id: "hot-saintlaurent", name: "Saint Laurent" }, { id: "hot-balenciaga", name: "Balenciaga" }, { id: "hot-valentino", name: "Valentino" }, { id: "hot-givenchy", name: "Givenchy" }, { id: "hot-burberry", name: "Burberry" }, { id: "hot-fendi", name: "Fendi" }, { id: "hot-bottega", name: "Bottega Veneta" }, ] let hotBrands: { id: string; name: string }[] = [] try { hotBrands = (await getSsgHotBrands()) .filter((b) => b.id && b.name) .map((b) => ({ id: String(b.id), name: b.name })) } catch {} if (!hotBrands.length) hotBrands = FAKE_HOT_BRANDS // 年份筛选:写死,按需增删(数据最早约 2005 年,如需更老年份往数组里加即可) // 年份:近 10 年(含当年),末项加"X年前"兜底 const currentYear = new Date().getFullYear() const yearFloor = currentYear - 9 const yearOptions: { value: number | string; label: string }[] = [] for (let y = currentYear; y >= yearFloor; y--) { yearOptions.push({ value: y, label: String(y) }) } yearOptions.push({ value: `before${yearFloor}`, label: `${yearFloor}年前` }) // 系列类型 / 季节:写死静态数据(先用示例/假数据预览,确认后直接改这两个数组即可) const collectionOptions: { value: string; label: string }[] = [ { value: "rtw", label: "Ready-to-Wear" }, { value: "menswear", label: "Menswear" }, { value: "womenswear", label: "Womenswear" }, { value: "couture", label: "Couture" }, { value: "resort", label: "Resort" }, { value: "pre_fall", label: "Pre-Fall" }, { value: "bridal", label: "Bridal" }, { value: "swimwear", label: "Swimwear" }, ] const seasonOptions: { value: string; label: string }[] = [ { value: "spring", label: "Spring / Summer" }, { value: "fall", label: "Fall / Winter" }, { value: "cruise", label: "Cruise" }, { value: "holiday", label: "Holiday" }, ] ---
{t('Runway looks')}

全部的 runway