uniapp中使用弹出框控制Tab栏区域显示与隐藏

在uniapp中提供控制TabBar的显示与隐藏的函数  uni.hideTabBar() 与 uni.showTabBar()

立即接单
<---弹出框--->



const isshow=ref(false)//控制弹出框的显示与隐藏

// 监听弹出框变化来显示与隐藏TabBar
watch(showIcon, (newValue, oldValue) => {
  if(newValue){
    uni.hideTabBar()
  }else{
    uni.showTabBar()
  }
});

你可能感兴趣的:(Uniapp,uni-app)