pages.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. }
  21. },
  22. {
  23. "path": "pages/teacher/index",
  24. "style": {
  25. "navigationBarTitleText": "教师",
  26. "navigationStyle": "custom",
  27. "app-plus": {
  28. "titleNView": false //禁用原生导航栏
  29. }
  30. }
  31. },
  32. {
  33. "path": "pages/my/index",
  34. "style": {
  35. "navigationBarTitleText": "我的",
  36. "navigationStyle": "custom",
  37. "app-plus": {
  38. "titleNView": false //禁用原生导航栏
  39. }
  40. }
  41. }
  42. ],
  43. "subPackages": [ //分包配置
  44. {
  45. "root": "pagesHome",
  46. "pages": [ //分包
  47. {
  48. "path": "agree/index",
  49. "style": {
  50. "navigationBarTitleText": "用户协议",
  51. "enablePullDownRefresh": false,
  52. "navigationBarTextStyle": "black",
  53. "navigationBarBackgroundColor": "#F8F8F8",
  54. "backgroundColor": "#F8F8F8",
  55. "backgroundColorTop": "#F4F5F6",
  56. "backgroundColorBottom": "#F4F5F6"
  57. }
  58. },
  59. {
  60. "path": "login/index",
  61. "style": {
  62. "navigationBarTitleText": "用户登录",
  63. "enablePullDownRefresh": false,
  64. "navigationBarTextStyle": "black",
  65. "navigationBarBackgroundColor": "#F8F8F8",
  66. "backgroundColor": "#F8F8F8",
  67. "backgroundColorTop": "#F4F5F6",
  68. "backgroundColorBottom": "#F4F5F6"
  69. }
  70. }
  71. ]
  72. }
  73. ],
  74. "globalStyle": {
  75. "navigationBarTextStyle": "white",
  76. "navigationBarTitleText": "学吧",
  77. "navigationBarBackgroundColor": "#32C8DA",
  78. "backgroundColor": "#ffffff"
  79. },
  80. "tabBar": {
  81. "color": "8a8a8a",
  82. "selectedColor": "#262D3D",
  83. "borderStyle": "black",
  84. "backgroundColor": "#ffffff",
  85. "list": [{
  86. "pagePath": "pages/home/index",
  87. "iconPath": "static/homeHL.png",
  88. "selectedIconPath": "static/home.png",
  89. "text": "首页"
  90. },
  91. {
  92. "pagePath": "pages/teacher/index",
  93. "iconPath": "static/teacherHL.png",
  94. "selectedIconPath": "static/teacher.png",
  95. "text": "教师"
  96. },
  97. {
  98. "pagePath": "pages/my/index",
  99. "iconPath": "static/myHL.png",
  100. "selectedIconPath": "static/my.png",
  101. "text": "我的"
  102. }
  103. ]
  104. },
  105. "condition": { //模式配置,仅开发期间生效
  106. "current": 0, //当前激活的模式(list 的索引项)
  107. "list": [{
  108. "name": "学吧", //模式名称
  109. "path": "pages/index/index", //启动页面,必选
  110. "query": "" //启动参数,在页面的onLoad函数里面得到
  111. }]
  112. }
  113. }