版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/bq_cui/article/details/82860716
tabBar需要设置 app.json ,大小写敏感,例如 pagePath 写成 pagepath,则提示出错。
以下为app.json 内容:
{
"pages": [
"pages/index/index",
"pages/logs/logs",
"pages/newpage/newpage"
],
"window": {
"backgroundTextStyle": "light",
"navigationBarBackgroundColor": "#ffcc00",
"navigationBarTitleText": "玄铁重剑",
"navigationBarTextStyle": "black"
},
"tabBar": {
"backgroundcolor": "#000",
"list": [
{
"pagePath": "pages/index/index",
"text": "您好"
},
{
"pagePath": "pages/logs/logs",
"text": "郭靖"
},
{
"pagePath": "pages/newpage/newpage",
"text": "杨过"
}
]
}
}