微信小程序tabbar不显示解决办法
更新时间:2017年06月08日 11:33:42 投稿:lqh
这篇文章主要介绍了微信小程序tabbar不显示解决办法的相关资料,需要的朋友可以参考下
微信小程序tabbar不显示解决办法
"pages":[ "pages/logs/logs", "pages/index/index" ],
微信小程序在测试tabbar的时候怎么都不显示。
我就不贴api了。直接上代码
{ "pages":[ "pages/logs/logs", "pages/index/index" ], "window":{ "backgroundTextStyle":"light", "navigationBarBackgroundColor": "#fff", "navigationBarTitleText": "小程序", "navigationBarTextStyle":"black" }, "tabBar":{ "selectedColor":"#dddddd", "color": "#3cc51f", "backgroundColor":"#ffffff", "list":[{ "text" : "登录", "pagePath" : "pages/logs/logs", "iconPath" : "image/12.png", "selectedIconPath" : "image/12.png" },{ "text":"注销", "pagePath" : "pages/index/index", "iconPath" : "image/12.png", "selectedIconPath" : "image/12.png" },{ "text" : "日志", "pagePath" : "pages/logs/logs", "iconPath" : "image/12.png", "selectedIconPath" : "image/12.png" }] } }
这个json看了一天,直觉告诉我没什么问题。实际上也没什么问题。
但是坑爹的一幕来了,tabbar怎么都不显示。最后发现是
"pages":[ pages/logs/logs", "pages/index/index" ],
看标红的问题。第一行绝对是不能配置为"pages/index/index"。所以我换成了pages/logs/logs要不然是不会显示tabbar的
感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!
您可能感兴趣的文章:
- 微信小程序tabbar底部导航
- 微信小程序开发之tabbar图标和颜色的实现
- 微信小程序开发之自定义tabBar的实现
- 微信小程序踩坑记录之解决tabBar.list[3].selectedIconPath大小超过40kb
- 微信小程序tabBar用法实例详解
- 微信小程序tabBar模板用法实例分析【附demo源码下载】
- 微信小程序tabBar底部导航中文注解api详解
- 微信小程序 新建登录页并实现tabBar隐藏
- 微信小程序开发之选项卡(窗口底部TabBar)页面切换
- 微信小程序开发之Tabbar实例详解
- 微信小程序开发之实现选项卡(窗口顶部TabBar)页面切换
- 微信小程序 (三)tabBar底部导航详细介绍
- 微信小程序自定义tabBar组件开发详解
最新评论