pages.json 1.7 KB

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