pages.config.ts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. '^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
  14. '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)':
  15. 'z-paging/components/z-paging$1/z-paging$1.vue',
  16. },
  17. },
  18. tabBar: {
  19. custom: true,
  20. color: '#999999',
  21. selectedColor: '#018d71',
  22. backgroundColor: '#F8F8F8',
  23. borderStyle: 'black',
  24. height: '50px',
  25. fontSize: '10px',
  26. iconWidth: '24px',
  27. spacing: '3px',
  28. list: [
  29. {
  30. icon: '/static/tabbar/Parenting.svg',
  31. iconShow: '/static/tabbar/goods.svg',
  32. pagePath: 'pages/index/index',
  33. text: '育儿',
  34. iconType: 'local',
  35. },
  36. {
  37. icon: '/static/tabbar/music.svg',
  38. iconShow: '/static/tabbar/Frame.svg',
  39. pagePath: 'pages/music/music',
  40. text: '音乐',
  41. iconType: 'local',
  42. },
  43. {
  44. icon: '/static/tabbar/user.svg',
  45. iconShow: '/static/tabbar/macon.svg',
  46. pagePath: 'pages/community/community',
  47. text: '我的',
  48. iconType: 'local',
  49. },
  50. ],
  51. },
  52. })