pages.json 文件里所有代码:
{
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
"path" : "pages/home/home",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
{
"path": "pages/index/index",
"style": {
"navigationBarTitleText": "任务管理"
}
}
,{
"path" : "pages/Ranking_list/Ranking_list",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},{
"path" : "pages/my/my",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "任务管理",
"navigationBarBackgroundColor": "#F8F8F8",
"backgroundColor": "#F8F8F8"
},
"uniIdRouter": {},
// 如果您是通过uni_modules形式引入uView,可以忽略此配置
"easycom": {
"^u-(.*)": "@/uni_modules/uview-ui/components/u-$1/u-$1.vue"
},
"tabBar":{
"color":"#7A7E83",
"selectedColor":"#3cc51f",
"borderStyle":"black",
"backgroundColor":"#ffffff",
"list":[{
"pagePath":"pages/home/home",
"text": "首页"
}, {
"pagePath":"pages/Ranking_list/Ranking_list",
"text": "排行榜"
}, {
"pagePath":"pages/my/my",
"text": "我的"
}]
}
}
需要调试的基本属性:
pagePath:路径,
iconPath:未选中的图标,
selectedIconPath:选中之后的图标,
text:名字;
标签:uniapp,style,text,navigationBarTitleText,list,底部,home,导航,pages From: https://www.cnblogs.com/0722tian/p/16895271.html