pages.json 3.4 KB

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