微信小程序tabbar不显示
2016-11-25 14:48
141 查看
"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页面显示的相关问题及解决办法
- 微信小程序tabBar显示问题
- 微信小程序tabBar显示问题
- 微信小程序tabBar 不显示底部菜单的原因和解决方法
- 微信小程序tabBar底部导航 不显示问题解析
- 微信小程序中tabBar不显示问题
- 微信小程序开发过程中tabbar页面显示的相关问题及解决办法
- 微信小程序Tabbar文字在真机不显示
- 微信小程序tabbar的text,在模拟器可以,真机不显示
- 微信小程序wx.request请求回来的数据没有及时显示到页面上
- 微信小程序开发之Tabbar实例详解
- 【微信小程序】小程序入门之创建目录和tabBar配置
- 微信小程序 解决swiper不显示图片的方法
- 微信小程序 -- tabBar
- 【微信小程序开发】tabBar的使用技巧
- 微信小程序tabBar使用
- 微信小程序开发之实现选项卡(窗口顶部TabBar)页面切换