1.选项卡优化

master
sws 2024-10-30 11:52:21 +08:00
parent 7302ed36ae
commit 7410dd0c5b
1 changed files with 5 additions and 9 deletions

View File

@ -414,22 +414,18 @@
},
//
tabs_height_event(height) {
let new_tabs_height = 0;
// is_enable1
if (this.tabs_data.length > 0) {
this.tabs_data.forEach((item, index) => {
if (item.is_enable == '1') {
this.setData({
tabs_height: height,
});
console.log(height);
new_tabs_height = height;
}
});
} else {
this.setData({
tabs_height: 0,
});
console.log(2);
}
this.setData({
tabs_height: new_tabs_height,
});
},
//