pages.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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": "index/index",
  49. "style": {
  50. "navigationBarTitleText": "test"
  51. }
  52. },
  53. {
  54. "path": "other/agree",
  55. "style": {
  56. "navigationBarTitleText": "用户协议"
  57. }
  58. }
  59. ]
  60. },
  61. {
  62. "root": "pagesScience",
  63. "pages": [ //分包
  64. {
  65. "path": "science/index",
  66. "style": {
  67. "navigationBarTitleText": "医疗科普详情"
  68. }
  69. }
  70. ]
  71. },
  72. {
  73. "root": "pagesMy",
  74. "pages": [ //分包
  75. {
  76. "path": "basic/index",
  77. "style": {
  78. "navigationBarTitleText": "基本信息"
  79. }
  80. },
  81. {
  82. "path": "group/index",
  83. "style": {
  84. "navigationBarTitleText": "群组信息"
  85. }
  86. },
  87. {
  88. "path": "answer/index",
  89. "style": {
  90. "navigationBarTitleText": "答复记录"
  91. }
  92. }
  93. ]
  94. }
  95. ],
  96. "globalStyle": {
  97. "pageOrientation": "portrait",
  98. "navigationBarTitleText": "随访小程序",
  99. "navigationBarTextStyle": "black",
  100. "navigationBarBackgroundColor": "#F8F8F8",
  101. "backgroundColor": "#F8F8F8",
  102. "backgroundColorTop": "#F4F5F6",
  103. "backgroundColorBottom": "#F4F5F6"
  104. },
  105. "tabBar": {
  106. "color": "#7A7E83",
  107. "selectedColor": "#007AFF",
  108. "borderStyle": "black",
  109. "backgroundColor": "#F8F8F8",
  110. "list": [{
  111. "pagePath": "pages/home/index",
  112. "iconPath": "static/home.png",
  113. "selectedIconPath": "static/homeHL.png",
  114. "text": "健康问答"
  115. },
  116. {
  117. "pagePath": "pages/science/index",
  118. "iconPath": "static/science.png",
  119. "selectedIconPath": "static/scienceHL.png",
  120. "text": "医疗科普"
  121. },
  122. {
  123. "pagePath": "pages/my/index",
  124. "iconPath": "static/my.png",
  125. "selectedIconPath": "static/myHL.png",
  126. "text": "个人中心"
  127. }
  128. ]
  129. },
  130. "condition": { //模式配置,仅开发期间生效
  131. "current": 0, //当前激活的模式(list 的索引项)
  132. "list": [{
  133. "name": "系统首页", //模式名称
  134. "path": "pages/index/index", //启动页面,必选
  135. "query": "" //启动参数,在页面的onLoad函数里面得到
  136. }]
  137. }
  138. }