修改样式
This commit is contained in:
@@ -27,6 +27,7 @@ $(function() {
|
||||
is_hot:'',
|
||||
isnone:false,
|
||||
isFilterOpen: false, // 控制筛选面板的开关状态
|
||||
isBrandsExpanded: false,
|
||||
},
|
||||
computed: {
|
||||
// 当前页数据(前端分页)
|
||||
@@ -175,6 +176,15 @@ $(function() {
|
||||
godetil(item) {
|
||||
window.location.href = 'newcar-details.html?id=' + item.id
|
||||
},
|
||||
toggleBrands() {
|
||||
this.isBrandsExpanded = !this.isBrandsExpanded;
|
||||
const container = document.querySelector('.brand-container');
|
||||
if (this.isBrandsExpanded) {
|
||||
container.classList.add('expanded');
|
||||
} else {
|
||||
container.classList.remove('expanded');
|
||||
}
|
||||
},
|
||||
},
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user