pages.json 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. {
  2. "pages": [{
  3. "path": "pages/index/index",
  4. "style": {
  5. "navigationBarTitleText": "系统首页",
  6. "navigationStyle": "custom",
  7. "app-plus": {
  8. "titleNView": false //禁用原生导航栏
  9. }
  10. }
  11. },
  12. {
  13. "path": "pages/home/index",
  14. "style": {
  15. "navigationBarTitleText": "健康问答",
  16. "navigationStyle": "custom",
  17. "app-plus": {
  18. "titleNView": false //禁用原生导航栏
  19. },
  20. "enablePullDownRefresh": true
  21. }
  22. },
  23. {
  24. "path": "pages/science/index",
  25. "style": {
  26. "navigationBarTitleText": "医疗科普",
  27. "enablePullDownRefresh": true
  28. }
  29. },
  30. {
  31. "path": "pages/my/index",
  32. "style": {
  33. "navigationBarTitleText": "个人中心"
  34. }
  35. },
  36. {
  37. "path": "pages/login/index",
  38. "style": {
  39. "navigationBarTitleText": "登录"
  40. }
  41. }
  42. ],
  43. "subPackages": [ //分包配置
  44. {
  45. "root": "pagesHome",
  46. "pages": [ //分包
  47. {
  48. "path": "group/index",
  49. "style": {
  50. "navigationBarTitleText": "群组"
  51. }
  52. },
  53. {
  54. "path": "friend/index",
  55. "style": {
  56. "navigationBarTitleText": "好友"
  57. }
  58. },
  59. {
  60. "path": "other/agree",
  61. "style": {
  62. "navigationBarTitleText": "用户协议"
  63. }
  64. }
  65. ]
  66. },
  67. {
  68. "root": "pagesScience",
  69. "pages": [ //分包
  70. {
  71. "path": "science/index",
  72. "style": {
  73. "navigationBarTitleText": "医疗科普详情"
  74. }
  75. }
  76. ]
  77. },
  78. {
  79. "root": "pagesMy",
  80. "pages": [ //分包
  81. {
  82. "path": "basic/index",
  83. "style": {
  84. "navigationBarTitleText": "基本信息"
  85. }
  86. },
  87. {
  88. "path": "group/index",
  89. "style": {
  90. "navigationBarTitleText": "群组信息",
  91. "enablePullDownRefresh": true
  92. }
  93. },
  94. {
  95. "path": "person/index",
  96. "style": {
  97. "navigationBarTitleText": "群成员",
  98. "enablePullDownRefresh": true
  99. }
  100. },
  101. {
  102. "path": "person/detail",
  103. "style": {
  104. "navigationBarTitleText": "用户详情"
  105. }
  106. },
  107. {
  108. "path": "answer/index",
  109. "style": {
  110. "navigationBarTitleText": "答复记录"
  111. }
  112. }
  113. ]
  114. }
  115. ],
  116. "globalStyle": {
  117. "pageOrientation": "portrait",
  118. "navigationBarTitleText": "随访小程序",
  119. "navigationBarTextStyle": "black",
  120. "navigationBarBackgroundColor": "#F8F8F8",
  121. "backgroundColor": "#F8F8F8",
  122. "backgroundColorTop": "#F4F5F6",
  123. "backgroundColorBottom": "#F4F5F6"
  124. },
  125. "tabBar": {
  126. "color": "#7A7E83",
  127. "selectedColor": "#007AFF",
  128. "borderStyle": "black",
  129. "backgroundColor": "#F8F8F8",
  130. "list": [{
  131. "pagePath": "pages/home/index",
  132. "iconPath": "static/home.png",
  133. "selectedIconPath": "static/homeHL.png",
  134. "text": "健康问答"
  135. },
  136. {
  137. "pagePath": "pages/science/index",
  138. "iconPath": "static/science.png",
  139. "selectedIconPath": "static/scienceHL.png",
  140. "text": "医疗科普"
  141. },
  142. {
  143. "pagePath": "pages/my/index",
  144. "iconPath": "static/my.png",
  145. "selectedIconPath": "static/myHL.png",
  146. "text": "个人中心"
  147. }
  148. ]
  149. },
  150. "condition": { //模式配置,仅开发期间生效
  151. "current": 0, //当前激活的模式(list 的索引项)
  152. "list": [{
  153. "name": "系统首页", //模式名称
  154. "path": "pages/index/index", //启动页面,必选
  155. "query": "" //启动参数,在页面的onLoad函数里面得到
  156. }]
  157. }
  158. }