3
0

pages.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. {
  2. "easycom": {
  3. "autoscan": true, //是否自动扫描组件
  4. "custom": {
  5. "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue"
  6. }
  7. },
  8. "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
  9. // {
  10. // "path": "pages/index/index",
  11. // "style": {
  12. // "navigationBarTitleText": "uni-app"
  13. // }
  14. // },
  15. {
  16. "path": "pages/worktable/index",
  17. "style": {
  18. "enablePullDownRefresh": false, //禁止下拉刷新
  19. "navigationStyle": "custom" //设置不显示原生导航栏
  20. }
  21. },
  22. {
  23. "path": "pages/management/index",
  24. "style": {
  25. "enablePullDownRefresh": false, //禁止下拉刷新
  26. "navigationStyle": "custom" //设置不显示原生导航栏
  27. }
  28. }
  29. ],
  30. //分包模块
  31. "subPackages": [{
  32. "root": "pagesA",
  33. "pages": [{
  34. "path": "member/index",
  35. "style": {
  36. "navigationBarTitleText": "会员管理"
  37. }
  38. }, {
  39. "path": "strikeBalance/index",
  40. "style": {
  41. "navigationBarTitleText": "冲账管理"
  42. }
  43. }, {
  44. "path": "commodity/index",
  45. "style": {
  46. "navigationBarTitleText": "商品分类"
  47. }
  48. }, {
  49. "path": "goodsInfo/index",
  50. "style": {
  51. "navigationBarTitleText": "商品管理"
  52. }
  53. }, {
  54. "path": "clerk/index",
  55. "style": {
  56. "navigationBarTitleText": "店员管理"
  57. }
  58. }, {
  59. "path": "shop/index",
  60. "style": {
  61. "navigationBarTitleText": "店铺管理"
  62. }
  63. }, {
  64. "path": "destroy/index",
  65. "style": {
  66. "navigationBarTitleText": "核销管理"
  67. }
  68. }]
  69. }],
  70. //分包预加载
  71. "preloadRule": {
  72. "pages/worktable/index": { //要进行预加载时用户要进入的页面路径
  73. "network": "all", // 什么网络下支持允许预加载,默认wifi: wifi/all
  74. "packages": ["pagesA"] // 要进行预加载的子包名
  75. }
  76. },
  77. "globalStyle": {
  78. "navigationBarTextStyle": "black",
  79. "navigationBarTitleText": "uni-app",
  80. "navigationBarBackgroundColor": "#F8F8F8",
  81. "backgroundColor": "#F8F8F8"
  82. },
  83. "tabBar": {
  84. "color": "#979594",
  85. "selectedColor": "#F57737", //tab 上的文字选中时的颜色
  86. "borderStyle": "black", //tabbar 上边框的颜色
  87. "backgroundColor": "#ffffff",
  88. "height": "120rpx",
  89. "fontSize": "24rpx",
  90. "iconWidth": "20px", //图标默认宽度(高度等比例缩放)
  91. "spacing": "14rpx", //图标和文字的间距
  92. "list": [{
  93. "pagePath": "pages/worktable/index", //页面路径,必须在 pages 中先定义
  94. "iconPath": "static/images/tab_home_nor@2x.png", //图片路径,icon 大小限制为40kb,建议尺寸为 81px * 81px,当 position 为 top 时,此参数无效,不支持网络图片,不支持字体图标
  95. "selectedIconPath": "static/images/tab_home_sel@2x.png", //选中时的图片路径,icon 大小限制为40kb,建议尺寸为 81px * 81px ,当 position 为 top 时,此参数无效
  96. "text": "工作台"
  97. }, {
  98. "pagePath": "pages/management/index",
  99. "iconPath": "static/images/tab_gl_nor@2x.png",
  100. "selectedIconPath": "static/images/tab_gl_sel@2x.png",
  101. "text": "管理"
  102. }]
  103. },
  104. "uniIdRouter": {}
  105. }