pages.json 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. "path": "pricepoint/index"
  77. }
  78. ]
  79. },
  80. // {
  81. // "root": "detailPages",
  82. // "pages": [{
  83. // "path": "evaluate/index"
  84. // }]
  85. // },
  86. {
  87. "root": "commodityPages",
  88. "pages": [{
  89. "path": "search/index"
  90. }]
  91. }, {
  92. "root": "indexPages",
  93. "pages": [{
  94. "path": "pay/index"
  95. }]
  96. }
  97. ],
  98. "preloadRule": {
  99. "pages/index/index": {
  100. "network": "all",
  101. "packages": ["indexPages"]
  102. },
  103. "pages/login/index": {
  104. "network": "all",
  105. "packages": [
  106. "loginPages"
  107. ]
  108. },
  109. // "pages/detail/index": {
  110. // "network": "all",
  111. // "packages": ["detailPages"]
  112. // },
  113. "pages/commodity/index": {
  114. "network": "all",
  115. "packages": ["commodityPages"]
  116. }
  117. },
  118. "globalStyle": {
  119. "navigationBarTextStyle": "white",
  120. "navigationBarTitleText": "",
  121. "navigationStyle": "custom",
  122. "navigationBarBackgroundColor": "#F8F8F8",
  123. "backgroundColor": "#F8F8F8"
  124. }
  125. }