pages.config.ts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. },
  10. easycom: {
  11. autoscan: true,
  12. custom: {
  13. // '^fg-(.*)': '@/components/fg-$1.vue',
  14. '^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
  15. '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)':
  16. 'z-paging/components/z-paging$1/z-paging$1.vue',
  17. },
  18. },
  19. tabBar: {
  20. custom: true,
  21. color: '#999999',
  22. selectedColor: '#018d71',
  23. backgroundColor: '#F8F8F8',
  24. borderStyle: 'black',
  25. height: '50px',
  26. fontSize: '10px',
  27. iconWidth: '24px',
  28. spacing: '3px',
  29. list: [
  30. // 注意tabbar路由需要使用 layout:tabbar 布局
  31. {
  32. pagePath: 'pages/index/index',
  33. text: '首页',
  34. icon: 'home',
  35. iconType: 'wot',
  36. },
  37. {
  38. pagePath: 'pages/about/about',
  39. text: '关于',
  40. icon: 'i-carbon-code',
  41. iconType: 'unocss',
  42. },
  43. // {
  44. // pagePath: 'pages/my/index',
  45. // text: '我的',
  46. // icon: '/static/logo.svg',
  47. // iconType: 'local',
  48. // },
  49. {
  50. pagePath: 'pages/my/index',
  51. text: '我的',
  52. icon: 'iconfont icon-my',
  53. iconType: 'iconfont',
  54. },
  55. ],
  56. },
  57. })