修改样式

This commit is contained in:
浅念
2025-06-18 17:22:43 +08:00
parent 5f01c65e9f
commit 12c9f98274
4 changed files with 93 additions and 39 deletions
+10
View File
@@ -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');
}
},
},
})
})