pages.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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/myinfo2/myinfo2",
  21. "style": {
  22. "navigationBarTitleText": "我的2"
  23. }
  24. }
  25. ],
  26. "globalStyle": {
  27. "navigationBarTextStyle": "black",
  28. "navigationBarTitleText": "uni-app",
  29. "navigationBarBackgroundColor": "#F8F8F8",
  30. "backgroundColor": "#F8F8F8"
  31. },
  32. "tabBar": {
  33. "color": "#7A7E83",
  34. "selectedColor": "#EF3A3A",
  35. "borderStyle": "black",
  36. "backgroundColor": "#ffffff",
  37. "list": [{
  38. "pagePath": "pages/index/index",
  39. "iconPath": "static/home_icon_default_nor.png",
  40. "selectedIconPath": "static/home_icon_default_sel.png",
  41. "text": "首页"
  42. }, {
  43. "pagePath": "pages/predict/predict",
  44. "iconPath": "static/home_icon_volunteer_nor.png",
  45. "selectedIconPath": "static/home_icon_volunteer_sel.png",
  46. "text": "志愿预测"
  47. }, {
  48. "pagePath": "pages/myinfo/myinfo",
  49. "iconPath": "static/home_icon_my_nor.png",
  50. "selectedIconPath": "static/home_icon_my_nor.png",
  51. "text": "我的"
  52. }]
  53. },
  54. "condition": { //模式配置,仅开发期间生效
  55. },
  56. "tabBar": {
  57. "color": "#7A7E83",
  58. "selectedColor": "#EF3A3A",
  59. "borderStyle": "black",
  60. "backgroundColor": "#ffffff",
  61. "list": [{
  62. "pagePath": "pages/index/index",
  63. "iconPath": "static/home_icon_default_nor.png",
  64. "selectedIconPath": "static/home_icon_default_sel.png",
  65. "text": "首页"
  66. },{
  67. "pagePath": "pages/predict/predict",
  68. "iconPath": "static/home_icon_volunteer_nor.png",
  69. "selectedIconPath": "static/home_icon_volunteer_sel.png",
  70. "text": "志愿预测"
  71. }, {
  72. "pagePath": "pages/myinfo/myinfo",
  73. "iconPath": "static/home_icon_my_nor.png",
  74. "selectedIconPath": "static/home_icon_my_nor.png",
  75. "text": "我的"
  76. }]
  77. },
  78. "condition" : { //模式配置,仅开发期间生效
  79. "current": 0, //当前激活的模式(list 的索引项)
  80. "list": [{
  81. "name": "", //模式名称
  82. "path": "", //启动页面,必选
  83. "query": "" //启动参数,在页面的onLoad函数里面得到
  84. }]
  85. }
  86. }