1. 取消 uni-App 原生头部导航栏 (全局取消)
所有页面都去掉: 在 pages.JSON 里配置 navigationStyle:custom => 网址 https://uniapp.dcloud.io/collocation/pages?id=globalstyle
2. 单页面取消
新版小程序支持 page->style 配置 navigationStyle 为 custom => 网址 https://uniapp.dcloud.io/collocation/pages?id=style
App 和 h5 配置 titleNView 为 false => 网址 https://uniapp.dcloud.io/collocation/pages?id=app-plus
另外可以参考 hello uni-App 里的自定义导航栏示例 (注意顶部导航栏占位)
如:
- {
- "page":"pages/index/index",
- "style":{
- "navigationStyle":"custom",
- "app-plus":{
- "titleNView":false
- }
- }
- }
来源: http://www.bubuko.com/infodetail-3102128.html