pages.json 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. {
  2. "pages": [{
  3. "path": "pages/index/index",
  4. "style": {
  5. "navigationBarTitleText": "系统首页"
  6. }
  7. },
  8. {
  9. "path": "pages/home/index",
  10. "style": {
  11. "navigationBarTitleText": "神鹿峰旅游度假区",
  12. "enablePullDownRefresh": true
  13. }
  14. },
  15. {
  16. "path": "pages/map/index",
  17. "style": {
  18. "navigationBarTitleText": "地图"
  19. }
  20. },
  21. {
  22. "path": "pages/customer/index",
  23. "style": {
  24. "navigationBarTitleText": "客服"
  25. }
  26. },
  27. {
  28. "path": "pages/my/index",
  29. "style": {
  30. "navigationBarTitleText": "我的"
  31. }
  32. }
  33. ],
  34. "subPackages": [ //分包配置
  35. {
  36. "root": "pagesIndex",
  37. "pages": [ //分包
  38. {
  39. "path": "login/index",
  40. "style": {
  41. "navigationBarTitleText": "登录"
  42. }
  43. },
  44. {
  45. "path": "like/index",
  46. "style": {
  47. "navigationBarTitleText": "点赞",
  48. "enablePullDownRefresh": true
  49. }
  50. },
  51. {
  52. "path": "comment/index",
  53. "style": {
  54. "navigationBarTitleText": "评论",
  55. "enablePullDownRefresh": true
  56. }
  57. },
  58. {
  59. "path": "collect/index",
  60. "style": {
  61. "navigationBarTitleText": "收藏",
  62. "enablePullDownRefresh": true
  63. }
  64. },
  65. {
  66. "path": "order/index",
  67. "style": {
  68. "navigationBarTitleText": "我的订单",
  69. "enablePullDownRefresh": true
  70. }
  71. }
  72. ]
  73. },
  74. {
  75. "root": "pagesMy",
  76. "pages": [ //分包
  77. {
  78. "path": "coupon/index",
  79. "style": {
  80. "navigationBarTitleText": "优惠卷"
  81. }
  82. },
  83. {
  84. "path": "article/add",
  85. "style": {
  86. "navigationBarTitleText": "发布作品"
  87. }
  88. },
  89. {
  90. "path": "article/index",
  91. "style": {
  92. "navigationBarTitleText": "我的作品",
  93. "enablePullDownRefresh": true
  94. }
  95. },
  96. {
  97. "path": "opinion/index",
  98. "style": {
  99. "navigationBarTitleText": "意见反馈"
  100. }
  101. },
  102. {
  103. "path": "account/index",
  104. "style": {
  105. "navigationBarTitleText": "账号设置"
  106. }
  107. }
  108. ]
  109. },
  110. {
  111. "root": "pagesHome",
  112. "pages": [ //分包
  113. {
  114. "path": "article/index",
  115. "style": {
  116. "navigationBarTitleText": "文章详情"
  117. }
  118. },
  119. {
  120. "path": "info/index",
  121. "style": {
  122. "navigationBarTitleText": "神鹿峰"
  123. }
  124. },
  125. {
  126. "path": "type/index",
  127. "style": {
  128. "navigationBarTitleText": "分类",
  129. "enablePullDownRefresh": true
  130. }
  131. },
  132. {
  133. "path": "type/info",
  134. "style": {
  135. "navigationBarTitleText": "详情"
  136. }
  137. },
  138. {
  139. "path": "hotel/index",
  140. "style": {
  141. "navigationBarTitleText": "酒店民宿",
  142. "enablePullDownRefresh": true
  143. }
  144. },
  145. {
  146. "path": "hotel/info",
  147. "style": {
  148. "navigationBarTitleText": "酒店详情"
  149. }
  150. },
  151. {
  152. "path": "hotel/detail",
  153. "style": {
  154. "navigationBarTitleText": "房间信息"
  155. }
  156. },
  157. {
  158. "path": "ticket/index",
  159. "style": {
  160. "navigationBarTitleText": "景区门票",
  161. "enablePullDownRefresh": true
  162. }
  163. },
  164. {
  165. "path": "ticket/info",
  166. "style": {
  167. "navigationBarTitleText": "门票详情"
  168. }
  169. },
  170. {
  171. "path": "weather/index",
  172. "style": {
  173. "navigationBarTitleText": "天气预报",
  174. "enablePullDownRefresh": true
  175. }
  176. },
  177. {
  178. "path": "notice/index",
  179. "style": {
  180. "navigationBarTitleText": "公告",
  181. "enablePullDownRefresh": true
  182. }
  183. },
  184. {
  185. "path": "notice/detail",
  186. "style": {
  187. "navigationBarTitleText": "公告详情"
  188. }
  189. },
  190. {
  191. "path": "news/index",
  192. "style": {
  193. "navigationBarTitleText": "新闻",
  194. "enablePullDownRefresh": true
  195. }
  196. },
  197. {
  198. "path": "news/detail",
  199. "style": {
  200. "navigationBarTitleText": "新闻详情"
  201. }
  202. }
  203. ]
  204. }
  205. ],
  206. "globalStyle": {
  207. "pageOrientation": "portrait",
  208. "navigationBarTitleText": "神鹿峰小程序",
  209. "navigationBarTextStyle": "black",
  210. "navigationBarBackgroundColor": "#F8F8F8",
  211. "backgroundColor": "#F8F8F8",
  212. "backgroundColorTop": "#F4F5F6",
  213. "backgroundColorBottom": "#F4F5F6"
  214. },
  215. "tabBar": {
  216. "color": "#7A7E83",
  217. "selectedColor": "#007AFF",
  218. "borderStyle": "black",
  219. "backgroundColor": "#F8F8F8",
  220. "list": [{
  221. "pagePath": "pages/home/index",
  222. "iconPath": "static/home.png",
  223. "selectedIconPath": "static/homeHL.png",
  224. "text": "首页"
  225. },
  226. {
  227. "pagePath": "pages/map/index",
  228. "iconPath": "static/map.png",
  229. "selectedIconPath": "static/mapHL.png",
  230. "text": "地图"
  231. },
  232. {
  233. "pagePath": "pages/customer/index",
  234. "iconPath": "static/kf.png",
  235. "selectedIconPath": "static/kfHL.png",
  236. "text": "客服"
  237. },
  238. {
  239. "pagePath": "pages/my/index",
  240. "iconPath": "static/my.png",
  241. "selectedIconPath": "static/myHL.png",
  242. "text": "我的"
  243. }
  244. ]
  245. },
  246. "condition": { //模式配置,仅开发期间生效
  247. "current": 0, //当前激活的模式(list 的索引项)
  248. "list": [{
  249. "name": "系统首页", //模式名称
  250. "path": "pages/index/index", //启动页面,必选
  251. "query": "" //启动参数,在页面的onLoad函数里面得到
  252. }]
  253. }
  254. }