youngswelli
youngswelli
  • 发布:2019-08-26 18:43
  • 更新:2020-08-05 17:22
  • 阅读:4906

【报Bug】uniapp页面底部空出了tabBar的高度

分类:uni-app

首页设置隐藏tabBar
code

index.vue  
onShow() {  
   uni.hideTabBar({  
    success: (res) => {  
     console.log('hideTabBar-success',res)  
    },  
    fail: (err) => {  
     console.log('hideTabBar-fail',err)  
    }  
   });  
  },  
  onHide() {  
   uni.showTabBar({  
    success: (res) => {  
     console.log('showTabBar-success',res)  
    },  
    fail: (err) => {  
     console.log('showTabBar-fail',err)  
    }  
   });  
  }

pages.js

"pages": [  
  // 第一项  
  {  
    "path": "pages/tabBar/index",  
    "style": {  
      "navigationBarTitleText": "首页"  
    }  
  },  
  {  
    "path": "pages/tabBar/my",  
    "style": {  
      "navigationBarTitleText": "我的"  
    }  
  }  
],  
"tabBar": {  
  "color": "#999",  
  "selectedColor": "#dec17c",  
  "borderStyle": "black",  
  "backgroundColor": "#393939",  
  "list": [  
   {  
    "pagePath": "pages/cartoon/cartoon",  
    "iconPath": "static/icon/mall.png",  
    "selectedIconPath": "static/icon/mall_checked.png",  
    "text": "首页"  
   },  
   {  
    "pagePath": "pages/user/user",  
    "iconPath": "static/icon/about_me.png",  
    "selectedIconPath": "static/icon/about_me_checked.png",  
    "text": "我的"  
   }  
  ]  
 },

页面

2019-08-26 18:43 负责人:无 分享
已邀请:
4***@qq.com

4***@qq.com

是最新版HBuilder X吧,只要调用hideTabBar(),tabBar隐藏了, 但是高度还在

  • youngswelli (作者)

    对,2.1.4左右的版本没这问题

    2019-08-27 09:03

5***@qq.com

5***@qq.com - 90后IT

2.3.6.20191020 我这边还是出现这个问题了 官方都不看bug 吗

5***@qq.com

5***@qq.com - 90后IT

不是必显 偶尔出现

c***@163.com

c***@163.com - 没有什么想说的是

对,不是必现问题,但是这个之前都有,这个bug现在还没解决,希望官方尽快解决这个问题

h***@163.com

h***@163.com - 前端开发

可以自己解决的,第一步,当页面弹出的时调用uni.hideTabBar()实现遮罩就是隐藏tabbar;第二步当页面关闭时调用uni.showTabBar()调用显示就是显示; 就OK了。。。。。

  • 2***@qq.com

    你好可以回复一下具体怎么解决的吗?

    2020-05-27 18:41

h***@163.com

h***@163.com - 前端开发

详情如下

崛起的小强

崛起的小强 - 崛起的小强

怎么办还是没解决这个BUG吗? 我的版本是2.7.11 -alpha

  • thank

    十天了,请问解决了吗?

    2020-06-22 18:00

该问题目前已经被锁定, 无法添加新回复