app.json文件用于配置项目:
{ "pages":[ "pages/scan/scan", // 配置的第一个是项目项目的入口文件 "pages/index/index", "pages/personal/personal", "pages/logs/logs" ], "tabBar": { // 底部菜单配置 "color": "#c9c9c9", "backgroundColor":"#323640", "selectedColor": "#f5b40e", "borderStyle": "#515151", "list": [ { "selectedIconPath": "./pages/images/ico_dingdan_1.png", "iconPath": "./pages/images/ico_dingdan_2.png", "pagePath": "pages/index/index", "text": "订单" }, { "selectedIconPath": "./pages/images/ico_saoyisao_1.png", "iconPath": "./pages/images/ico_saoyisao_2.png", "pagePath": "pages/scan/scan", "text": "扫码" }, { "selectedIconPath": "./pages/images/ico_gerenzhongxin_1.png", "iconPath": "./pages/images/ico_gerenzhongxin_2.png", "pagePath": "pages/personal/personal", "text": "我的" } ] }, "window":{ // 如果要配置窗口的颜色 在 page.xmcss里面配置 page{background:red;} "backgroundTextStyle":"light", "navigationBarBackgroundColor": "#fff", "backgroundColor": "#eeeeee", "navigationBarTitleText": "渝光停车", "navigationBarTextStyle":"black" },
"networkTimeout":{ //网络超时配置
"request":10000,
"downloadFile":1000
},
"debug":true //影响日志信息 }