pages.json配置
{
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "uni-app"
}
}
,{
"path" : "pages/scss/scss",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
,{
"path" : "pages/text/text",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
],
"tabBar":{
"color":"#555555",
"selectedColor":"#808080",
"list":[
{
"pagePath":"pages/index/index",
"text":"首页",
"iconPath":"static/1.png",
"selectedIconPath":"static/1.1.png"
},
{
"pagePath":"pages/scss/scss",
"text":"布局",
"iconPath":"static/2.png",
"selectedIconPath":"static/2.1.png"
},
{
"pagePath":"pages/text/text",
"text":"文本",
"iconPath":"static/3.png",
"selectedIconPath":"static/3.1.png"
}
]
},
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
}
}
结果:
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/40aab73601abd04899e747769a2d4150.png#pic_center)