找到pages.json
{
"pages": [
{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "启动也"
}
}, {
"path": "pages/home/home",
"style": {
"navigationBarTitleText": "首页",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/myInfo/myInfo",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
},
"tabBar": {
"color": "#b1b5cc",
"selectedColor": "#fa436a",
"borderStyle": "black",
"backgroundColor": "#ffffff",
"list": [{
"pagePath": "pages/index/index",
"iconPath": "static/logo.png",
"selectedIconPath": "static/logo.png",
"text": "首页"
},
{
"pagePath": "pages/home/home",
"iconPath": "static/logo.png",
"selectedIconPath": "static/logo.png",
"text": "首页"
}
]
}
}
tabBar 写成了tabbar 导致一直显示不出来