pages.json 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {
  2. "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  3. {
  4. "path": "pages/index/index",
  5. "style": {
  6. "navigationBarTitleText": "首页",
  7. "navigationStyle": "custom",
  8. "app-plus": {
  9. "scrollIndicator": false //禁用原生导航栏
  10. }
  11. }
  12. },
  13. {
  14. "path": "pages/product/index",
  15. "style": {
  16. "navigationBarTitleText": "商品"
  17. }
  18. },
  19. {
  20. "path": "pages/product/detail",
  21. "style": {
  22. "navigationStyle": "custom"
  23. }
  24. },
  25. {
  26. "path": "pages/news/index",
  27. "style": {
  28. "navigationBarTitleText": "消息详情"
  29. }
  30. },
  31. {
  32. "path": "pages/users/login/index",
  33. "style": {
  34. "navigationBarTitleText": "登录"
  35. }
  36. },
  37. {
  38. "path": "pages/users/register/index",
  39. "style": {
  40. "navigationBarTitleText": "注册"
  41. }
  42. },
  43. {
  44. "path": "pages/my/index",
  45. "style": {
  46. "navigationBarTitleText": "我的"
  47. }
  48. }
  49. ],
  50. "globalStyle": {
  51. "navigationBarTextStyle": "black",
  52. "navigationBarTitleText": "巴巴礼品",
  53. "navigationBarBackgroundColor": "#fff",
  54. "backgroundColor": "#F8F8F8",
  55. "titleNView": false
  56. },
  57. "tabBar": {
  58. "color": "#282828",
  59. "selectedColor": "#ff5c00",
  60. "borderStyle": "black",
  61. "backgroundColor": "#ffffff",
  62. "list": [
  63. {
  64. "pagePath": "pages/index/index",
  65. "iconPath": "static/images/1-001.png",
  66. "selectedIconPath": "static/images/1-002.png",
  67. "text": "首页"
  68. },
  69. {
  70. "pagePath": "pages/product/index",
  71. "iconPath": "static/images/2-001.png",
  72. "selectedIconPath": "static/images/2-002.png",
  73. "text": "商品"
  74. },
  75. {
  76. "pagePath": "pages/news/index",
  77. "iconPath": "static/images/3-001.png",
  78. "selectedIconPath": "static/images/3-002.png",
  79. "text": "订单"
  80. },
  81. {
  82. "pagePath": "pages/my/index",
  83. "iconPath": "static/images/4-001.png",
  84. "selectedIconPath": "static/images/4-002.png",
  85. "text": "我的"
  86. }
  87. ]
  88. },
  89. "condition" : { //模式配置,仅开发期间生效
  90. "current": 0, //当前激活的模式(list 的索引项)
  91. "list": [
  92. {
  93. "name": "", //模式名称
  94. "path": "", //启动页面,必选
  95. "query": "" //启动参数,在页面的onLoad函数里面得到
  96. }
  97. ]
  98. }
  99. }