pages.json 2.8 KB

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