注:如果需要用代码,请把注释删除或换行
{
"pages": [ //pages:用来配置页面路径的
"pages/index/index",
"pages/logs/logs"
],
"window": {
"backgroundTextStyle": "light", //下拉 loading 的样式,仅支持 dark / light
"navigationBarBackgroundColor": "#219bf9", //导航条的背景颜色
"navigationBarTitleText": "WeChat", //导航栏标题文字内容
"navigationBarTextStyle": "black" //导航栏标题颜色,仅支持 black / white
"enablePullDownRefresh":true, //是否全局开启下拉菜单刷新
"backgroundColor":"#eee" //页面背景颜色
},
"debug":true, //可以在开发者工具中开启 debug 模式,在开发者工具的控制台面板,调试信息以 info 的形式给出,其信息有 Page 的注册,页面路由,数据更新,事件触发等。可以帮助开发者快速定位一些常见的问题。
"sitemapLocation": "sitemap.json",
"tabBar":{
"selectedColor":"#e3eeeo", //tab 上的文字选中时的颜色,仅支持十六进制颜色
"backgroundColor": "#666", //tab 的背景色,仅支持十六进制颜色
"color": "#333", //tab 上的文字默认颜色,仅支持十六进制颜色
"borderStyle": "black", //tabbar 上边框的颜色, 仅支持 black / white
"list":[ //tab 的列表,详见 list 属性说明,最少 2 个、最多 5 个 tab
{
"text": "index", //tab 上按钮文字
"pagePath":"pages/index/index", //页面路径,必须在 pages 中先定义
"iconPath":"pages/images/1.jpg", //图片路径,icon 大小限制为 40kb,建议尺寸为 81px * 81px,不支持网络图片。当 position 为 top 时,不显示 icon。
"selectedIconPath":"pages/images/1.jpg" //选中时的图片路径,icon 大小限制为 40kb,建议尺寸为 81px * 81px,不支持网络图片。当 position 为 top 时,不显示 icon。
},
{
"text": "logs",
"pagePath":"pages/logs/logs",
"iconPath": "pages/images/2.jpg",
"selectedIconPath":"pages/images/2.jpg"
}
]
}
}