Wechat 小程序中的 .json 配置文件基本内容
此文件会随着时间不断更新
以 app.json 文件为例
{
/* 有哪一个就可以查看哪一个,哪一个在前面就显示哪一个 */
"pages": [
"pages/index/index",
"pages/logs/logs"
],
/* 页面显示 */
"window": {
/* 页面向下滑显示的三个小点样式 */
"backgroundTextStyle": "dark",
/* 导航条的背景颜色 */
"navigationBarBackgroundColor": "#11eeee",
/* 标题 */
"navigationBarTitleText": "YKenan",
"navigationBarTextStyle": "black",
/* 页面向下滑显示的背景颜色 */
"backgroundColor": "#11ee11",
/* 是否显示页面向下滑 */
"enablePullDownRefresh": true
},
"sitemapLocation": "sitemap.json",
/* 底部显示 */
"tabBar": {
/* 字体颜色 */
"color": "#888",
/* 选中的字体颜色 */
"selectedColor": "#23ed88",
/* 背景颜色 */
"backgroundColor": "#44aaaa55",
/* 显示位置 */
"position": "bottom",
"list": [
{
"pagePath": "pages/index/index",
"text": "首页",
/* 图标的路径 */
"iconPath":"resources/1.png",
/* 被选中的图标的路径 */
"selectedIconPath":"resources/2.png"
},
{
"pagePath": "pages/logs/logs",
"text": "日志",
/* 图标的路径 */
"iconPath": "resources/1.png",
/* 被选中的图标的路径 */
"selectedIconPath": "resources/2.png"
}
]
},
/* 设置超时时间 */
"networkTimeout": {
"request": 10000,
"downloadFile": 10000
},
"debug": true
}