pages.json 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257
  1. {
  2. "easycom": {
  3. "autoscan": true,
  4. "custom": {
  5. "^u--(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue",
  6. "^up-(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue",
  7. "^u-([^-].*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue",
  8. "^CustomToast$": "@/components/CustomToast.vue"
  9. }
  10. },
  11. "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  12. {
  13. "path": "pages/index/indexNew",
  14. "style": {
  15. "navigationBarTitleText": "首页",
  16. "navigationStyle": "custom",
  17. "navigationBarBackgroundColor": "#ffffff",
  18. "enablePullDownRefresh": true
  19. }
  20. },
  21. {
  22. "path": "pages/tabbar/my",
  23. "style": {
  24. "navigationBarTitleText": "个人中心"
  25. },
  26. "meta": {
  27. "auth": false
  28. }
  29. },
  30. {
  31. "path": "pages/shop/product-type-list",
  32. "style": {
  33. "navigationBarBackgroundColor": "#ffffff",
  34. "navigationBarTitleText": "全部商品"
  35. }
  36. }
  37. ],
  38. "tabBar": {
  39. "color": "#999999",
  40. "selectedColor": "#292C35",
  41. "borderStyle": "white",
  42. "backgroundColor": "#FFFFFF",
  43. "list": [
  44. // {
  45. // "pagePath": "pages/index/index-copy",
  46. // "text": "%index.home%"
  47. // },
  48. {
  49. "pagePath": "pages/index/indexNew",
  50. "iconPath": "/static/tabbar/home.png",
  51. "selectedIconPath": "/static/tabbar/home-select.png",
  52. "text": "首页"
  53. },
  54. {
  55. "pagePath": "pages/shop/product-type-list",
  56. "iconPath": "/static/tabbar/shop.png",
  57. "selectedIconPath": "/static/tabbar/shop-select.png",
  58. "text": "分类"
  59. },
  60. {
  61. "pagePath": "pages/tabbar/my",
  62. "iconPath": "/static/tabbar/my.png",
  63. "selectedIconPath": "/static/tabbar/my-select.png",
  64. "text": "个人中心"
  65. }
  66. ]
  67. },
  68. "globalStyle": {
  69. "navigationBarTextStyle": "black",
  70. "navigationBarTitleText": "uni-app",
  71. "navigationBarBackgroundColor": "#F8F8F8",
  72. "backgroundColor": "#F8F8F8"
  73. },
  74. "subPackages": [{
  75. "root": "packageUser",
  76. "pages": [{
  77. "path": "pages/login/index",
  78. "style": {
  79. "navigationBarTitleText": "登录",
  80. "navigationStyle": "custom"
  81. }
  82. },
  83. {
  84. "path": "pages/register/index",
  85. "style": {
  86. "navigationBarTitleText": "注册"
  87. }
  88. },
  89. {
  90. "path": "pages/collect/index",
  91. "style": {
  92. "navigationBarTitleText": "收藏"
  93. }
  94. },
  95. {
  96. "path": "pages/level/index",
  97. "style": {
  98. "navigationBarTitleText": "等级中心"
  99. }
  100. },
  101. {
  102. "path": "pages/team/index",
  103. "style": {
  104. "navigationBarTitleText": "我的团队"
  105. }
  106. },
  107. {
  108. "path": "pages/user-info/index",
  109. "style": {
  110. "navigationBarTitleText": "个人信息"
  111. }
  112. },
  113. {
  114. "path": "pages/user-info/account-change",
  115. "style": {
  116. "navigationBarTitleText": "修改昵称"
  117. }
  118. },
  119. {
  120. "path": "pages/share/index",
  121. "style": {
  122. "navigationBarTitleText": "邀请"
  123. }
  124. },
  125. {
  126. "path": "pages/user-info/sex-change",
  127. "style": {
  128. "navigationBarTitleText": "修改性别"
  129. }
  130. },
  131. {
  132. "path": "pages/user-info/birthday-change",
  133. "style": {
  134. "navigationBarTitleText": "修改生日"
  135. }
  136. },
  137. {
  138. "path": "pages/richtext/index",
  139. "style": {
  140. "navigationBarTitleText": "协议"
  141. }
  142. }
  143. ]
  144. },
  145. {
  146. "root": "packageShop",
  147. "pages": [{
  148. "path": "pages/cart/index",
  149. "style": {
  150. "navigationBarTitleText": "购物车"
  151. }
  152. },
  153. {
  154. "path": "pages/search/index",
  155. "style": {
  156. "navigationBarTitleText": "搜索"
  157. }
  158. },
  159. {
  160. "path": "pages/search/product-list",
  161. "style": {
  162. "navigationBarTitleText": "商品列表"
  163. }
  164. },
  165. {
  166. "path": "pages/article/detail",
  167. "style": {
  168. "navigationBarTitleText": "文章详情"
  169. }
  170. },
  171. {
  172. "path": "pages/detail/index",
  173. "style": {
  174. "navigationStyle": "custom"
  175. }
  176. },
  177. {
  178. "path": "pages/settle/index",
  179. "style": {
  180. "navigationBarTitleText": "确认订单"
  181. }
  182. }
  183. ]
  184. },
  185. {
  186. "root": "packageOrder",
  187. "pages": [{
  188. "path": "pages/list/index",
  189. "style": {
  190. "navigationBarTitleText": "订单列表",
  191. "enablePullDownRefresh": true
  192. }
  193. }, {
  194. "path": "pages/list/record",
  195. "style": {
  196. "navigationBarTitleText": "订单记录",
  197. "enablePullDownRefresh": true
  198. }
  199. },
  200. {
  201. "path": "pages/score/index",
  202. "style": {
  203. "navigationBarTitleText": "商品评价"
  204. }
  205. },
  206. {
  207. "path": "pages/score/product-score",
  208. "style": {
  209. "navigationBarTitleText": "商品评价"
  210. }
  211. },
  212. {
  213. "path": "pages/detail/index",
  214. "style": {
  215. "navigationBarTitleText": "订单详情"
  216. }
  217. },
  218. {
  219. "path": "pages/payment/index",
  220. "style": {
  221. "navigationBarTitleText": "订单支付"
  222. }
  223. },
  224. {
  225. "path": "pages/logistics/index",
  226. "style": {
  227. "navigationBarTitleText": "物流查询"
  228. }
  229. },
  230. {
  231. "path": "pages/after-sale/index",
  232. "style": {
  233. "navigationBarTitleText": "售后服务"
  234. }
  235. }
  236. ]
  237. }
  238. ],
  239. "preloadRule": {
  240. "pages/index/indexNew": {
  241. "network": "all",
  242. "packages": ["packageShop"]
  243. },
  244. "pages/shop/product-type-list": {
  245. "network": "all",
  246. "packages": ["packageShop", "packageOrder"]
  247. },
  248. "pages/tabbar/my": {
  249. "network": "all",
  250. "packages": ["packageUser"]
  251. }
  252. }
  253. }