pages.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. {
  2. "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  3. {
  4. "path" : "pages/index/index",
  5. "style" :
  6. {
  7. "navigationBarTitleText" : "智泊e家"
  8. }
  9. }
  10. ],
  11. "preloadRule": {
  12. "pages/index/index": {
  13. "network": "all",
  14. "packages": [ "pages/business"]
  15. }
  16. },
  17. "easycom": {
  18. "autoscan": true,
  19. "custom": {
  20. "^u-(.*)": "@/subpackage/uview-ui/components/u-$1/u-$1.vue"
  21. }
  22. },
  23. "subPackages": [{
  24. "root": "subpackage/uview-ui",
  25. "pages": [] // 无需页面,仅存放组件
  26. },
  27. {
  28. "root": "pages/business",
  29. "pages": [
  30. {
  31. "path": "lockInfo",
  32. "style": {
  33. }
  34. }
  35. ,
  36. {
  37. "path": "index",
  38. "style": {
  39. "navigationBarTitleText": "选择地锁"
  40. }
  41. },
  42. {
  43. "path": "main",
  44. "style": {
  45. "navigationBarTitleText": "快捷停车"
  46. }
  47. },
  48. {
  49. "path": "center",
  50. "style": {
  51. "navigationBarTitleText": "个人中心"
  52. }
  53. }
  54. ]
  55. },
  56. {
  57. "root": "pages/information",
  58. "pages": [{
  59. "path": "information",
  60. "style": {
  61. "navigationBarTitleText": "个人信息"
  62. }
  63. },
  64. {
  65. "path": "cropImage",
  66. "style": {
  67. "navigationBarTitleText": "裁剪头像"
  68. }
  69. },
  70. {
  71. "path": "parkingRecord",
  72. "style": {
  73. "navigationBarTitleText": "停车记录"
  74. }
  75. },
  76. {
  77. "path": "parkingInfo",
  78. "style": {
  79. "navigationBarTitleText": "停车记录"
  80. }
  81. }
  82. ]
  83. },
  84. {
  85. "root": "pages/mylock",
  86. "pages": [{
  87. "path": "myLock",
  88. "style": {
  89. "navigationBarTitleText": "我的地锁"
  90. }
  91. },
  92. {
  93. "path": "bindLock",
  94. "style": {
  95. "navigationBarTitleText": "绑定新地锁"
  96. }
  97. },
  98. {
  99. "path": "infoLock",
  100. "style": {
  101. "navigationBarTitleText": "地锁详情"
  102. }
  103. },
  104. {
  105. "path": "bindLockStatus",
  106. "style": {
  107. "navigationBarTitleText": "绑定新地锁"
  108. }
  109. },
  110. {
  111. "path": "myWhite",
  112. "style": {
  113. "navigationBarTitleText": "我的白名单"
  114. }
  115. },
  116. {
  117. "path": "editLock",
  118. "style": {
  119. "navigationBarTitleText": "修改地锁"
  120. }
  121. },
  122. {
  123. "path" : "selectParking",
  124. "style" :
  125. {
  126. "navigationBarTitleText" : "选择停车场"
  127. }
  128. }
  129. ]
  130. }
  131. ],
  132. "permission": {
  133. "scope.userLocation": {
  134. "desc": "获得用户当前位置"
  135. }
  136. },
  137. "globalStyle": {
  138. //"navigationStyle": "custom", // 隐藏系统导航栏
  139. "navigationBarTitleText": "智泊e家",
  140. "enablePullDownRefresh": false,
  141. "navigationBarTextStyle": "black",
  142. "navigationBarBackgroundColor": "#fff"
  143. },
  144. "uniIdRouter": {},
  145. "condition": { //模式配置,仅开发期间生效
  146. "current": 0, //当前激活的模式(list 的索引项)
  147. "list": [{
  148. "name": "", //模式名称
  149. "path": "", //启动页面,必选
  150. "query": "" //启动参数,在页面的onLoad函数里面得到
  151. }]
  152. }
  153. }