pages.json 2.7 KB

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