uniapp 隐藏或显示tabar
//滚动,滑动一段距离显示或隐藏tabar
onPageScroll(e) {
if(e.scrollTop>=10){
uni.hideTabBar(
//过渡动画
animation:true
);
}else if(e.scrollTop<=10){
uni.showTabBar(
animation:true
);
}
}
uniapp 隐藏或显示tabar
//滚动,滑动一段距离显示或隐藏tabar
onPageScroll(e) {
if(e.scrollTop>=10){
uni.hideTabBar(
//过渡动画
animation:true
);
}else if(e.scrollTop<=10){
uni.showTabBar(
animation:true
);
}
}