pages.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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. }
  59. },
  60. {
  61. "path": "device/detail",
  62. "style": {
  63. "navigationBarTitleText": "详细信息"
  64. }
  65. },
  66. {
  67. "path": "workorder/list",
  68. "style": {
  69. "navigationBarTitleText": "设备工单"
  70. }
  71. },
  72. {
  73. "path": "workorder/detail",
  74. "style": {
  75. "navigationBarTitleText": "工单处置"
  76. }
  77. },
  78. {
  79. "path": "workorder/submit",
  80. "style": {
  81. "navigationBarTitleText": "工单提报"
  82. }
  83. }
  84. ]
  85. }
  86. ],
  87. "preloadRule": {
  88. // "pages/example/components": {
  89. // "network": "all",
  90. // "packages": [
  91. // "pages/componentsA",
  92. // "pages/componentsB"
  93. // ]
  94. // }
  95. },
  96. "globalStyle": {
  97. "navigationBarTextStyle": "white",
  98. "navigationBarTitleText": "uview-plus",
  99. "navigationBarBackgroundColor": "#0079fe",
  100. "backgroundColor": "#f5f5f5"
  101. },
  102. "tabBar": {
  103. "color": "#cccccc",
  104. "selectedColor": "#005ce6",
  105. "backgroundColor": "#ffffff",
  106. "list": [
  107. {
  108. "pagePath": "pages/workbench/index",
  109. "iconPath": "static/aiot/normal_u55.png",
  110. "selectedIconPath": "static/aiot/normal_u74.png",
  111. "text": "工作台"
  112. },
  113. {
  114. "pagePath": "pages/my/index",
  115. "iconPath": "static/aiot/my_unselect.png",
  116. "selectedIconPath": "static/aiot/my_select.png",
  117. "text": "我的"
  118. }
  119. ]
  120. }
  121. }