pages.json 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {
  2. "easycom": {
  3. "^u-(.*)": "@/uni_modules/uview-ui/components/u-$1/u-$1.vue"
  4. },
  5. "pages": [{
  6. "path": "pages/home/home",
  7. "style": {
  8. "navigationBarTitleText": "数据概览"
  9. }
  10. }, //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  11. {
  12. "path": "pages/login/login",
  13. "style": {
  14. "navigationBarTitleText": "登录",
  15. "enablePullDownRefresh": false
  16. }
  17. }, {
  18. "path": "pages/onlineData/onlineData",
  19. "style": {
  20. "navigationBarTitleText": "实时监控",
  21. "enablePullDownRefresh": false
  22. }
  23. }, {
  24. "path": "pages/user/user",
  25. "style": {
  26. "navigationBarTitleText": "个人中心",
  27. "enablePullDownRefresh": false
  28. }
  29. }, {
  30. "path": "pages/inspector/inspector",
  31. "style": {
  32. "navigationBarTitleText": "现场督察",
  33. "enablePullDownRefresh": false
  34. }
  35. }
  36. ],
  37. "subPackages": [{
  38. "root": "pages_company",
  39. "pages": [{
  40. "path": "company",
  41. "style": {
  42. "navigationBarTitleText": "商户概览",
  43. "enablePullDownRefresh": false
  44. }
  45. }]
  46. }, {
  47. "root": "pages_map",
  48. "pages": [{
  49. "path": "map",
  50. "style": {
  51. "navigationBarTitleText": "在线地图",
  52. "enablePullDownRefresh": false
  53. }
  54. }
  55. ]
  56. }],
  57. "preloadRule": {
  58. "pages_company/company": {
  59. "network": "all",
  60. "packages": ["__APP__"]
  61. }
  62. },
  63. "globalStyle": {
  64. "navigationBarTextStyle": "white",
  65. "navigationBarTitleText": "",
  66. "navigationBarBackgroundColor": "#3C9CFF",
  67. "backgroundColor": "#F8F8F8"
  68. },
  69. "condition" : { //模式配置,仅开发期间生效
  70. "current": 0, //当前激活的模式(list 的索引项)
  71. "list": [
  72. {
  73. "name": "", //模式名称
  74. "path": "", //启动页面,必选
  75. "query": "" //启动参数,在页面的onLoad函数里面得到
  76. }
  77. ]
  78. }
  79. }