pages.json 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. "path": "pages/index/index",
  15. "style": {
  16. "navigationBarTitleText": "uni-app"
  17. }
  18. }],
  19. "preloadRule": {
  20. "pages/example/components": {
  21. "network": "all",
  22. "packages": ["pages/componentsA", "pages/componentsB", "pages/componentsC"]
  23. }
  24. },
  25. "globalStyle": {
  26. "navigationBarTextStyle": "black",
  27. "navigationBarTitleText": "uView",
  28. "navigationBarBackgroundColor": "#FFFFFF",
  29. "backgroundColor": "#FFFFFF"
  30. },
  31. "tabBar": {
  32. "color": "#909399",
  33. "selectedColor": "#303133",
  34. "backgroundColor": "#FFFFFF",
  35. "borderStyle": "black",
  36. "list": [{
  37. "pagePath": "pages/example/components",
  38. "iconPath": "static/uview/example/component.png",
  39. "selectedIconPath": "static/uview/example/component_select.png",
  40. "text": "组件"
  41. },
  42. {
  43. "pagePath": "pages/example/js",
  44. "iconPath": "static/uview/example/js.png",
  45. "selectedIconPath": "static/uview/example/js_select.png",
  46. "text": "工具"
  47. },
  48. {
  49. "pagePath": "pages/example/template",
  50. "iconPath": "static/uview/example/template.png",
  51. "selectedIconPath": "static/uview/example/template_select.png",
  52. "text": "模板"
  53. }
  54. ]
  55. }
  56. }