pages.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. {
  2. "easycom": {
  3. "autoscan": true,
  4. "custom": {
  5. "^cu-(.*)": "@/colorui/components/cu-$1.vue"
  6. }
  7. },
  8. "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  9. {
  10. "path": "pages/index/index",
  11. "style": {
  12. }
  13. },
  14. {
  15. "path": "pages/login/index"
  16. },
  17. {
  18. "path": "pages/commodity/index",
  19. "style": {}
  20. },
  21. {
  22. "path": "pages/shoppingCart/index",
  23. "style": {}
  24. },
  25. {
  26. "path": "pages/detail/index"
  27. },
  28. {
  29. "path": "pages/order/index"
  30. }
  31. ],
  32. "tabBar": {
  33. "custom": true,
  34. "list": [{
  35. "pagePath": "pages/index/index",
  36. "text": "首页"
  37. },
  38. {
  39. "pagePath": "pages/commodity/index",
  40. "text": "商品"
  41. },
  42. {
  43. "pagePath": "pages/shoppingCart/index",
  44. "text": "购物车"
  45. },
  46. {
  47. "pagePath": "pages/login/index",
  48. "text": "我的"
  49. }
  50. ]
  51. },
  52. "subPackages": [{
  53. "root": "loginPages",
  54. "pages": [{
  55. "path": "addressList/index"
  56. },
  57. {
  58. "path": "addaddress/index"
  59. },
  60. {
  61. "path": "evaluate/index"
  62. },
  63. {
  64. "path": "addEvalute/index"
  65. },
  66. {
  67. "path": "distribution/index"
  68. },
  69. {
  70. "path": "distributionShop/index"
  71. }
  72. ]
  73. },
  74. {
  75. "root": "detailPages",
  76. "pages": [{
  77. "path": "evaluate/index"
  78. }]
  79. }, {
  80. "root": "commodityPages",
  81. "pages": [{
  82. "path": "search/index"
  83. }]
  84. }, {
  85. "root": "indexPages",
  86. "pages": [{
  87. "path": "pay/index"
  88. }]
  89. }
  90. ],
  91. "preloadRule": {
  92. "pages/index/index": {
  93. "network": "all",
  94. "packages": ["indexPages"]
  95. },
  96. "pages/login/index": {
  97. "network": "all",
  98. "packages": [
  99. "loginPages"
  100. ]
  101. },
  102. "pages/detail/index": {
  103. "network": "all",
  104. "packages": ["detailPages"]
  105. },
  106. "pages/commodity/index": {
  107. "network": "all",
  108. "packages": ["commodityPages"]
  109. }
  110. },
  111. "globalStyle": {
  112. "navigationBarTextStyle": "white",
  113. "navigationBarTitleText": "",
  114. "navigationStyle": "custom",
  115. "navigationBarBackgroundColor": "#F8F8F8",
  116. "backgroundColor": "#F8F8F8"
  117. }
  118. }