pages.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. {
  2. "condition": {
  3. //模式配置,仅开发期间生效
  4. "current": 0,
  5. //当前激活的模式(list 的索引项)
  6. "list": [
  7. {
  8. "name": "广告",
  9. //模式名称
  10. "path": "pages/example/ad",
  11. //启动页面,必选
  12. "query": "scene='id=555563434u5io3uu4u5'"
  13. //启动参数,在页面的onLoad函数里面得到
  14. }
  15. ]
  16. },
  17. "easycom": {
  18. // 注意一定要放在custom里,否则无效,https://ask.dcloud.net.cn/question/131175
  19. "custom": {
  20. // "^u--(.*)": "uview-plus/components/u-$1/u-$1.vue",
  21. // "^up-(.*)": "uview-plus/components/u-$1/u-$1.vue",
  22. // "^u-([^-].*)": "uview-plus/components/u-$1/u-$1.vue",
  23. "^u--(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue",
  24. "^up-(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue",
  25. "^u-([^-].*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue"
  26. }
  27. },
  28. "pages": [
  29. //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  30. {
  31. "path": "pages/workbench/index",
  32. "style": {
  33. "navigationBarTitleText": "工作台",
  34. "enablePullDownRefresh": true
  35. }
  36. },
  37. {
  38. "path": "pages/my/index",
  39. "style": {
  40. "navigationBarTitleText": "我的"
  41. }
  42. },
  43. {
  44. "path": "pages/login/index",
  45. "style": {
  46. "navigationBarTitleText": ""
  47. }
  48. }
  49. ],
  50. "subPackages": [
  51. {
  52. "root": "pages/workbenchsub",
  53. "pages": [
  54. {
  55. "path": "device/list",
  56. "style": {
  57. "navigationBarTitleText": "设备列表",
  58. "enablePullDownRefresh": true
  59. }
  60. },
  61. {
  62. "path": "device/detail",
  63. "style": {
  64. "navigationBarTitleText": "详细信息"
  65. }
  66. },
  67. {
  68. "path": "workorder/list",
  69. "style": {
  70. "navigationBarTitleText": "工单管理"
  71. }
  72. },
  73. {
  74. "path": "workorder/detail",
  75. "style": {
  76. "navigationBarTitleText": "工单处置"
  77. }
  78. },
  79. {
  80. "path": "workorder/submit",
  81. "style": {
  82. "navigationBarTitleText": "工单提报"
  83. }
  84. }
  85. ]
  86. }
  87. ],
  88. "preloadRule": {
  89. // "pages/example/components": {
  90. // "network": "all",
  91. // "packages": [
  92. // "pages/componentsA",
  93. // "pages/componentsB"
  94. // ]
  95. // }
  96. },
  97. "globalStyle": {
  98. "navigationBarTextStyle": "white",
  99. "navigationBarTitleText": "uview-plus",
  100. "navigationBarBackgroundColor": "#0079fe",
  101. "backgroundColor": "#f5f5f5"
  102. },
  103. "tabBar": {
  104. "color": "#cccccc",
  105. "selectedColor": "#005ce6",
  106. "backgroundColor": "#ffffff",
  107. "list": [
  108. {
  109. "pagePath": "pages/workbench/index",
  110. "iconPath": "static/aiot/normal_u55.png",
  111. "selectedIconPath": "static/aiot/normal_u74.png",
  112. "text": "工作台"
  113. },
  114. {
  115. "pagePath": "pages/my/index",
  116. "iconPath": "static/aiot/my_unselect.png",
  117. "selectedIconPath": "static/aiot/my_select.png",
  118. "text": "我的"
  119. }
  120. ]
  121. }
  122. }