pages.json 3.3 KB

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