update
Some checks failed
deploy / deploy (push) Has been cancelled

This commit is contained in:
toom1996
2026-08-26 22:12:04 +08:00
parent eee2265e15
commit e1c0e53b81

View File

@ -692,12 +692,13 @@ const seasonOptions: { value: string; label: string }[] = [
return "Load More ↓" return "Load More ↓"
}, },
// 事件处理方法 // 点击抽屉开关
toggleGroup(group: "designers" | "collection" | "season" | "year") { toggleGroup(group: "designers" | "collection" | "season" | "year") {
this.collapsedGroups[group] = !this.collapsedGroups[group] this.collapsedGroups[group] = !this.collapsedGroups[group]
localStorage.setItem(`showsg-${group}`, this.collapsedGroups[group] ? "1" : "") localStorage.setItem(`showsg-${group}`, this.collapsedGroups[group] ? "1" : "")
}, },
// 选中热门品牌
toggleBrand(id: number) { toggleBrand(id: number) {
const idx = this.selectedBrands.indexOf(id) const idx = this.selectedBrands.indexOf(id)
if (idx >= 0) this.selectedBrands.splice(idx, 1) if (idx >= 0) this.selectedBrands.splice(idx, 1)
@ -705,6 +706,7 @@ const seasonOptions: { value: string; label: string }[] = [
this.refreshFilter() this.refreshFilter()
}, },
// 清除筛选条件
refreshFilter() { refreshFilter() {
this.loadPage(1, false) this.loadPage(1, false)
}, },