pages.config.ts 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
  2. export default defineUniPages({
  3. globalStyle: {
  4. navigationStyle: 'default',
  5. navigationBarTitleText: '',
  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. color: '#777777',
  20. selectedColor: '#8AE54A',
  21. backgroundColor: '#18181B',
  22. borderStyle: 'black',
  23. height: '120rpx',
  24. fontSize: '22rpx',
  25. // iconWidth: '24px',
  26. // spacing: '3px',
  27. list: [
  28. {
  29. iconPath: 'static/images/tabbar/home.png',
  30. selectedIconPath: 'static/images/tabbar/home-l.png',
  31. pagePath: 'pages/index/index',
  32. text: '%tabbar.Home%',
  33. },
  34. {
  35. iconPath: 'static/images/tabbar/jiangpai.png',
  36. selectedIconPath: 'static/images/tabbar/jiangpai-l.png',
  37. pagePath: 'pages/trophy/index',
  38. text: '%tabbar.Competition%',
  39. },
  40. {
  41. iconPath: 'static/images/tabbar/team.png',
  42. selectedIconPath: 'static/images/tabbar/team-l.png',
  43. pagePath: 'pages/team/index',
  44. text: '%tabbar.Team%',
  45. },
  46. {
  47. iconPath: 'static/images/tabbar/task.png',
  48. selectedIconPath: 'static/images/tabbar/task-l.png',
  49. pagePath: 'pages/task/index',
  50. text: '%tabbar.Earn%',
  51. },
  52. // {
  53. // // iconPath: 'static/tabbar/example.png',
  54. // // selectedIconPath: 'static/tabbar/exampleHL.png',
  55. // // pagePath: 'pages/airdrop/index',
  56. // // text: '%tabbar.about%',
  57. // },
  58. ],
  59. },
  60. })