pages.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. {
  2. "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  3. {
  4. "path": "pages/login/login",
  5. "style": {
  6. "navigationBarTitleText": "登录"
  7. }
  8. }, {
  9. "path": "pages/register/register",
  10. "style": {
  11. "navigationBarTitleText": "注册"
  12. }
  13. }, {
  14. "path": "pages/home/home",
  15. "style": {
  16. "navigationBarTitleText": "首页",
  17. "enablePullDownRefresh": true
  18. }
  19. }, {
  20. "path": "pages/my/my",
  21. "style": {
  22. "navigationBarTitleText": "我的"
  23. }
  24. },
  25. {
  26. "path": "pages/shop/shop",
  27. "style": {
  28. "navigationBarTitleText": "购物车"
  29. }
  30. },
  31. {
  32. "path": "pages/type/type",
  33. "style": {
  34. "navigationBarTitleText": "分类"
  35. }
  36. },
  37. {
  38. "path": "pages/detail/detail",
  39. "style": {
  40. "navigationBarTitleText": "详情"
  41. }
  42. }
  43. ],
  44. "globalStyle": {
  45. "navigationBarTextStyle": "white",
  46. "navigationBarTitleText": "uni-app",
  47. "navigationBarBackgroundColor": "#FF0000",
  48. "backgroundColor": "#F8F8F8",
  49. "usingComponents": {
  50. "van-button": "/wxcomponents/dist/button/index",
  51. "van-field": "/wxcomponents/dist/field/index",
  52. "van-toast": "/wxcomponents/dist/toast/index",
  53. "van-search": "/wxcomponents/dist/search/index",
  54. "van-grid": "/wxcomponents/dist/grid/index",
  55. "van-grid-item": "/wxcomponents/dist/grid-item/index",
  56. "van-notice-bar": "/wxcomponents/dist/notice-bar/index"
  57. }
  58. },
  59. "tabBar": {
  60. "color": "#000000",
  61. "selectedColor": "#ff0000",
  62. "borderStyle": "black",
  63. "backgroundColor": "#ffffff",
  64. "list": [{
  65. "pagePath": "pages/home/home",
  66. "iconPath": "static/home.png",
  67. "selectedIconPath": "static/home_active.png",
  68. "text": "首页"
  69. },{
  70. "pagePath": "pages/type/type",
  71. "iconPath": "static/type.png",
  72. "selectedIconPath": "static/type_active.png",
  73. "text": "分类"
  74. },{
  75. "pagePath": "pages/shop/shop",
  76. "iconPath": "static/shop.png",
  77. "selectedIconPath": "static/shop_active.png",
  78. "text": "购物车"
  79. }, {
  80. "pagePath": "pages/my/my",
  81. "iconPath": "static/my.png",
  82. "selectedIconPath": "static/my_active.png",
  83. "text": "我的"
  84. }]
  85. },
  86. "uniIdRouter": {},
  87. "condition": { //模式配置,仅开发期间生效
  88. "current": 0, //当前激活的模式(list 的索引项)
  89. "list": [{
  90. "name": "", //模式名称
  91. "path": "", //启动页面,必选
  92. "query": "" //启动参数,在页面的onLoad函数里面得到
  93. }]
  94. }
  95. }