不论怎么切换pages的首位 底部调整都没有办法显示tabbar,多次调整,都没效果,中间也没有提示bug,这该怎么办?
详细代码如下:
{
"pages": [
"pages/welcome/welcome",
"pages/index/index",
"pages/logs/logs"
],
"window": {
"enablePullDownRefresh": true,
"backgroundColor": "#a4a4a4",
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#B0C4DE",
"navigationBarTitleText": "测试欢迎",
"navigationBarTextStyle": "black"
},
"tabber":{
"color":"#999",
"selectedcolor":"#B0C4DE",
"backgroundcolor":"#fff",
"position":"bottom",
"borderstyle":"black",
"list":[
{
"pagepath":"pages/welcome/welcome",
"text":"欢迎",
"iconpath":"",
"selectediconpath":""
},
{
"pagepath":"pages/index/index",
"text":"日志",
"iconpath":"",
"selectediconpath":""
}
]
},
"sitemaplocation": "sitemap.json",
"sitemapLocation": "sitemap42.json"
}
小写tabbar竟然不报错?一直没发现。。。 官方是不是需要给个提示啊?
2.看下一下模板和你的有出入没?
按照这个格式来配置
"tabBar": {
"color": "#1F2C3A",
"selectedColor": "#53CF98",
"backgroundColor": "#FFFFFF",
"borderStyle": "black",
"list": [
{
"pagePath": "pages/index/index",
"text": "首页",
"iconPath": "./images/tabbar_index.png",
"selectedIconPath": "./images/tabbar_indexactive.png"
},
{
"pagePath": "pages/topic/topic",
"text": "话题圈",
"iconPath": "./images/home_huatiquan_moren.png",
"selectedIconPath": "./images/home_huatiquanxuanzhong.png"
},
{
"pagePath": "pages/college/college",
"text": "学院",
"iconPath": "./images/tabbar_college.png",
"selectedIconPath": "./images/tabbar_collegeactive.png"
},
{
"pagePath": "pages/my/my",
"text": "我的",
"iconPath": "./images/tabbar_my.png",
"selectedIconPath": "./images/tabbar_myactive.png"
}
]
},
复制黏贴是减少问题的最有效的方案之一
tabbar?