pages.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. "path": "pages/distribution/index"
  33. },
  34. {
  35. "path": "pages/distributionShop/index"
  36. }
  37. ],
  38. "tabBar": {
  39. "custom": true,
  40. "list": [{
  41. "pagePath": "pages/index/index",
  42. "text": "首页"
  43. },
  44. {
  45. "pagePath": "pages/commodity/index",
  46. "text": "商品"
  47. },
  48. {
  49. "pagePath": "pages/shoppingCart/index",
  50. "text": "购物车"
  51. },
  52. {
  53. "pagePath": "pages/login/index",
  54. "text": "我的"
  55. }
  56. ]
  57. },
  58. "subPackages": [{
  59. "root": "loginPages",
  60. "pages": [{
  61. "path": "addressList/index"
  62. },
  63. {
  64. "path": "addaddress/index"
  65. },
  66. {
  67. "path": "evaluate/index"
  68. },
  69. {
  70. "path": "addEvalute/index"
  71. },
  72. {
  73. "path": "collect/index"
  74. }
  75. ]
  76. },
  77. {
  78. "root": "detailPages",
  79. "pages": [{
  80. "path": "evaluate/index"
  81. }]
  82. }, {
  83. "root": "commodityPages",
  84. "pages": [{
  85. "path": "search/index"
  86. }]
  87. }, {
  88. "root": "indexPages",
  89. "pages": [{
  90. "path": "pay/index"
  91. }]
  92. }
  93. ],
  94. "preloadRule": {
  95. "pages/index/index": {
  96. "network": "all",
  97. "packages": ["indexPages"]
  98. },
  99. "pages/login/index": {
  100. "network": "all",
  101. "packages": [
  102. "loginPages"
  103. ]
  104. },
  105. "pages/detail/index": {
  106. "network": "all",
  107. "packages": ["detailPages"]
  108. },
  109. "pages/commodity/index": {
  110. "network": "all",
  111. "packages": ["commodityPages"]
  112. }
  113. },
  114. "globalStyle": {
  115. "navigationBarTextStyle": "white",
  116. "navigationBarTitleText": "",
  117. "navigationStyle": "custom",
  118. "navigationBarBackgroundColor": "#F8F8F8",
  119. "backgroundColor": "#F8F8F8"
  120. }
  121. }