pages.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. {
  2. "easycom": {
  3. "^u-(.*)": "@/uview-ui/components/u-$1/u-$1.vue"
  4. },
  5. // "condition": { //模式配置,仅开发期间生效
  6. // "current": 0, //当前激活的模式(list 的索引项)
  7. // "list": [{
  8. // "name": "test", //模式名称
  9. // "path": "pages/componentsC/test/index", //启动页面,必选
  10. // "query": "uuid=c4bba940-f69e-11ea-a419-6bafda9d095e&__id__=1" //启动参数,在页面的onLoad函数里面得到
  11. // }]
  12. // },
  13. "pages": [
  14. // 演示-组件
  15. {
  16. "path": "pages/Home",
  17. "style": {
  18. "navigationStyle": "custom",
  19. "navigationBarTextStyle": "white",
  20. "backgroundColor": "#F2F3F5"
  21. }
  22. },
  23. // 演示-组件
  24. {
  25. "path": "pages/example/components",
  26. "style": {
  27. "navigationBarTitleText": "组件"
  28. }
  29. },
  30. // avatarCropper-头像裁剪
  31. {
  32. "path": "uview-ui/components/u-avatar-cropper/u-avatar-cropper",
  33. "style": {
  34. "navigationBarTitleText": "头像裁剪",
  35. "navigationBarBackgroundColor": "#000000"
  36. }
  37. },
  38. // 演示-工具
  39. {
  40. "path": "pages/example/js",
  41. "style": {
  42. "navigationBarTitleText": "工具"
  43. }
  44. },
  45. // 演示-模板
  46. {
  47. "path": "pages/example/template",
  48. "style": {
  49. "navigationBarTitleText": "模板"
  50. }
  51. },
  52. // fullScreen-压窗屏
  53. {
  54. "path": "uview-ui/components/u-full-screen/u-full-screen",
  55. "style": {
  56. "navigationStyle": "custom",
  57. "app-plus": {
  58. "animationType": "fade-in",
  59. "background": "transparent",
  60. "backgroundColor": "rgba(0,0,0,0)",
  61. "popGesture": "none"
  62. }
  63. }
  64. }, {
  65. "path": "pages/Orders",
  66. "style": {
  67. "navigationBarTitleText": "订单管理",
  68. "enablePullDownRefresh": false
  69. }
  70. }
  71. ],
  72. "preloadRule": {
  73. "pages/example/components": {
  74. "network": "all",
  75. "packages": ["pages/componentsA", "pages/componentsB", "pages/componentsC"]
  76. }
  77. },
  78. "globalStyle": {
  79. "navigationBarTextStyle": "white",
  80. "navigationBarTitleText": "校园外卖",
  81. "navigationBarBackgroundColor": "#214BBE",
  82. "backgroundColor": "#F2F3F5"
  83. },
  84. "tabBar": {
  85. "color": "#808080",
  86. "selectedColor": "#1A1A1A",
  87. "backgroundColor": "#FFFFFF",
  88. "borderStyle": "black",
  89. "list": [{
  90. "pagePath": "pages/Home",
  91. "iconPath": "static/uview/imgs/tabbar_icon_01.png",
  92. "selectedIconPath": "static/uview/imgs/tabbar_icon_01_pre.png",
  93. "text": "首页"
  94. },
  95. {
  96. "pagePath": "pages/Orders",
  97. "iconPath": "static/uview/imgs/tabbar_icon_02.png",
  98. "selectedIconPath": "static/uview/imgs/tabbar_icon_02_pre.png",
  99. "text": "订单管理"
  100. },
  101. {
  102. "pagePath": "pages/example/template",
  103. "iconPath": "static/uview/imgs/tabbar_icon_03.png",
  104. "selectedIconPath": "static/uview/imgs/tabbar_icon_03_pre.png",
  105. "text": "我的"
  106. }
  107. ]
  108. }
  109. }