app.json配置详细分析
{ "pages": [ "pages/index/index", "pages/vultr/vultr" ], "window": { "navigationBarBackgroundColor": "#ff99bb", "navigationBarTextStyle": "black", "navigationBarTitleText": "小程序", "backgroundColor": "#c2f0f0", "backgroundTextStyle": "light", "enablePullDownRefresh": true }, "tabBar": { "color": "#ff99ff", "selectedColor": "#99bbff", "backgroundColor": "#ff4dd2", "borderStyle": "black", "position":"top", "list": [{ "pagePath": "pages/index/index", "text": "首页", "iconPath": "img/1.png", "selectedIconPath": "img/3.png" },{ "pagePath": "pages/vultr/vultr", "text": "科学", "iconPath": "img/2.png", "selectedIconPath": "img/3.png" }] }, "networkTimeout": { "request": 20000, "connectSocket": 20000, "uploadFile": 20000, "downloadFile": 20000 }}
页面注册
窗体设置
菜单栏设置
网络延迟设置
所有页面的集合构成一个数组,第一个元素为首页,以此类推!
所有的页面必须在页面注册中注册!
设置内容为屏幕最上层部分,主要有导航栏、可拉动和拉动时背景设置
导航栏有三个属性
可拉动有一个
可拉动后的背景颜色设置
注意事项:若设置了 菜单栏 ,首页 必须是菜单栏的成员,否则菜单栏失效!
主要是对4种请求的延迟设置