pages.config.ts 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
  2. export default defineUniPages({
  3. globalStyle: {
  4. 'navigationStyle': 'default',
  5. 'navigationBarTitleText': 'unibest',
  6. 'navigationBarBackgroundColor': '#f8f8f8',
  7. 'navigationBarTextStyle': 'black',
  8. 'backgroundColor': '#FFFFFF',
  9. 'app-plus': {
  10. scrollIndicator: 'none',
  11. },
  12. },
  13. easycom: {
  14. autoscan: true,
  15. custom: {
  16. '^fg-(.*)': '@/components/fg-$1/fg-$1.vue',
  17. '^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
  18. '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)':
  19. 'z-paging/components/z-paging$1/z-paging$1.vue',
  20. },
  21. },
  22. /**
  23. * 2025-06-25 v3.3.0版(重新梳理tabbar配置)
  24. *
  25. * 1)原生tabbar,不需要关心 `layouts/fg-tabbar` 文件夹里面的内容。(这是默认配置)
  26. * 2)自定义tabbar(带缓存),保留下面的配置和修改 `/layouts/fg-tabbar/tabbarList.ts` 对应的代码。
  27. * 3)自定义tabbar(不带缓存),删除下面的配置和修改 `/layouts/fg-tabbar/tabbarList.ts` 对应的代码。
  28. * 4)无tabbar,直接删除下面的tabBar配置即可。
  29. *
  30. * 温馨提示:本文件的任何代码更改了之后,都需要重新运行,否则 pages.json 还是旧的,导致不是预期效果。
  31. */
  32. tabBar: {
  33. color: '#999999',
  34. selectedColor: '#e61b28',
  35. backgroundColor: '#ffffff',
  36. borderStyle: '#c1c1c1',
  37. height: '50px',
  38. fontSize: '10px',
  39. iconWidth: '24px',
  40. spacing: '3px',
  41. list: [{
  42. iconPath: 'static/tabbar/home.png',
  43. selectedIconPath: 'static/tabbar/homeHL.png',
  44. pagePath: 'pages/index/index',
  45. }, {
  46. iconPath: 'static/tabbar/income.png',
  47. selectedIconPath: 'static/tabbar/incomeHL.png',
  48. pagePath: 'pages/income/income',
  49. }, {
  50. iconPath: 'static/tabbar/mine.png',
  51. selectedIconPath: 'static/tabbar/mineHL.png',
  52. pagePath: 'pages/mine/mine',
  53. }],
  54. },
  55. })