mirror of
https://gitee.com/zongzhige/shopxo-uniapp.git
synced 2026-07-06 05:42:31 +08:00
1.选项卡优化
This commit is contained in:
@ -414,22 +414,18 @@
|
||||
},
|
||||
// 选项卡高度
|
||||
tabs_height_event(height) {
|
||||
let new_tabs_height = 0;
|
||||
// 判断是否有选项卡切选项卡数组数据内的字段is_enable值是否为1
|
||||
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,
|
||||
});
|
||||
},
|
||||
|
||||
// 滚动加载
|
||||
|
||||
Reference in New Issue
Block a user