@ -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)
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user