pages.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. {
  2. "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  3. {
  4. "path": "pages/index/index",
  5. "style": {
  6. "navigationBarTitleText": "芝麻高报系统"
  7. }
  8. }, {
  9. "path": "pages/predict/predict",
  10. "style": {
  11. "navigationBarTitleText": "志愿预测"
  12. }
  13. }, {
  14. "path": "pages/myinfo/myinfo",
  15. "style": {
  16. "navigationBarTitleText": "我的"
  17. }
  18. },
  19. {
  20. "path": "pages/schooldetail/schooldetail",
  21. "style": {
  22. "navigationBarTitleText": "school-name"
  23. }
  24. },
  25. {
  26. "path": "pages/majorbox/majorbox",
  27. "style": {
  28. "navigationBarTitleText": "专业库"
  29. }
  30. },
  31. {
  32. "path": "pages/schoolbox/schoolbox",
  33. "style": {
  34. "navigationBarTitleText": "院校库"
  35. }
  36. },
  37. {
  38. "path": "pages/interestbox/interestbox",
  39. "style": {
  40. "navigationBarTitleText": "兴趣测评"
  41. }
  42. }
  43. ],
  44. "globalStyle": {
  45. "navigationBarTextStyle": "black",
  46. "navigationBarTitleText": "uni-app",
  47. "navigationBarBackgroundColor": "#ffffff",
  48. "backgroundColor": "#F8F8F8"
  49. },
  50. "tabBar": {
  51. "color": "#7A7E83",
  52. "selectedColor": "#EF3A3A",
  53. "borderStyle": "black",
  54. "backgroundColor": "#ffffff",
  55. "list": [{
  56. "pagePath": "pages/index/index",
  57. "iconPath": "static/home_icon_default_nor.png",
  58. "selectedIconPath": "static/home_icon_default_sel.png",
  59. "text": "首页"
  60. }, {
  61. "pagePath": "pages/predict/predict",
  62. "iconPath": "static/home_icon_volunteer_nor.png",
  63. "selectedIconPath": "static/home_icon_volunteer_sel.png",
  64. "text": "志愿预测"
  65. }, {
  66. "pagePath": "pages/myinfo/myinfo",
  67. "iconPath": "static/home_icon_my_nor.png",
  68. "selectedIconPath": "static/Screenshot_2019-09-24.png",
  69. "text": "我的"
  70. }]
  71. },
  72. "condition" : { //模式配置,仅开发期间生效
  73. "current": 0, //当前激活的模式(list 的索引项)
  74. "list": [{
  75. "name": "", //模式名称
  76. "path": "", //启动页面,必选
  77. "query": "" //启动参数,在页面的onLoad函数里面得到
  78. }]
  79. }
  80. }