{
"pages": [
{
"path": "pages/index/index",
"style": {
"app-plus":{
"scrollIndicator":"none",//隐藏滚动条
"titleNView":{
//搜索框
"searchInput":{
"align":"center",//文字居中
"backgroundColor":"#f7f7f7",//文字颜色
"borderRadius":"4px",//是否圆角
"placeholder":"搜索糗事",//默认文本
"disabled":"false"
},
//按钮
"buttons":[
//左边
{
"color":"#ff9619",
"colorPressed":"#bbbbbb",
"float":"left",
"fontSize":"40px",
"fontSrc":"/static/font/iconfont.ttf",
"text":"\ue606"
},
//右边
{
"color":"#000000",
"colorPressed":"#bbbbbb",
"float":"right",
"fontSize":"40px",
"fontSrc":"/static/font/iconfont.ttf",
"text":"\ue609"
}
]
}//头部导航区
}
}
} ,{
"path" : "pages/news/news",
"style" : {}
}
,{
"path" : "pages/paper/paper",
"style" : {}
}
,{
"path" : "pages/home/home",
"style" : {}
}
],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "仿糗事百科",
"navigationBarBackgroundColor": "#FFFFFF",
"backgroundColor": "#FFFFFF"
},
//底部导航
"tabBar":{
"color":"#ADADAD",
"selectedColor":"#FEE42A",
"backgroundColor":"#FFFFFF",
"borderStyle":"black",
"list":[
{
"pagePath":"pages/index/index",
"text":"糗事",
"iconPath":"static/tabbar/index.png",
"selectedIconPath":"static/tabbar/indexed.png"
},
{
"pagePath":"pages/news/news",
"text":"动态",
"iconPath":"static/tabbar/news.png",
"selectedIconPath":"static/tabbar/newsed.png"
},
{
"pagePath":"pages/paper/paper",
"text":"小纸条",
"iconPath":"static/tabbar/paper.png",
"selectedIconPath":"static/tabbar/papaered.png"
},
{
"pagePath":"pages/home/home",
"text":"我的",
"iconPath":"/static/tabbar/home.png",
"selectedIconPath":"/static/tabbar/homeed.png"
}
]
}
}
uni-app 项目第一章:配置pages.json
最新推荐文章于 2024-07-29 14:08:44 发布