pages.json 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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. "^dw-(.*)": "dw-$1/components/dw-$1/dw-$1.vue"
  27. }
  28. },
  29. "pages": [
  30. //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  31. {
  32. "path": "pages/workbench/index",
  33. "style": {
  34. "navigationBarTitleText": "工作台",
  35. "enablePullDownRefresh": true
  36. }
  37. },
  38. {
  39. "path": "pages/my/index",
  40. "style": {
  41. "navigationBarTitleText": "我的"
  42. }
  43. },
  44. {
  45. "path": "pages/login/index",
  46. "style": {
  47. "navigationBarTitleText": ""
  48. }
  49. }
  50. ],
  51. "subPackages": [
  52. {
  53. "root": "pages/workbenchsub",
  54. "pages": [
  55. {
  56. "path": "device/list",
  57. "style": {
  58. "navigationBarTitleText": "设备列表",
  59. "enablePullDownRefresh": true
  60. }
  61. },
  62. {
  63. "path": "device/detail",
  64. "style": {
  65. "navigationBarTitleText": "详细信息"
  66. }
  67. },
  68. {
  69. "path": "workorder/list",
  70. "style": {
  71. "navigationBarTitleText": "工单管理"
  72. }
  73. },
  74. {
  75. "path": "workorder/detail",
  76. "style": {
  77. "navigationBarTitleText": "工单处置"
  78. }
  79. },
  80. {
  81. "path": "workorder/submit",
  82. "style": {
  83. "navigationBarTitleText": "工单提报"
  84. }
  85. }
  86. ]
  87. }
  88. ],
  89. "preloadRule": {
  90. // "pages/example/components": {
  91. // "network": "all",
  92. // "packages": [
  93. // "pages/componentsA",
  94. // "pages/componentsB"
  95. // ]
  96. // }
  97. },
  98. "globalStyle": {
  99. "navigationBarTextStyle": "white",
  100. "navigationBarTitleText": "uview-plus",
  101. "navigationBarBackgroundColor": "#0079fe",
  102. "backgroundColor": "#f5f5f5"
  103. },
  104. "tabBar": {
  105. "color": "#cccccc",
  106. "selectedColor": "#005ce6",
  107. "backgroundColor": "#ffffff",
  108. "list": [
  109. {
  110. "pagePath": "pages/workbench/index",
  111. "iconPath": "static/aiot/normal_u55.png",
  112. "selectedIconPath": "static/aiot/normal_u74.png",
  113. "text": "工作台"
  114. },
  115. {
  116. "pagePath": "pages/my/index",
  117. "iconPath": "static/aiot/my_unselect.png",
  118. "selectedIconPath": "static/aiot/my_select.png",
  119. "text": "我的"
  120. }
  121. ]
  122. }
  123. }