pages.config.ts 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. color: '#999999',
  20. selectedColor: '#018d71',
  21. backgroundColor: '#F8F8F8',
  22. borderStyle: 'black',
  23. fontSize: '10px',
  24. iconWidth: '24px',
  25. spacing: '3px',
  26. custom: true,
  27. height: '0px',
  28. list: [
  29. {
  30. // iconPath: 'static/tabbar/home.png',
  31. // selectedIconPath: 'static/tabbar/homeHL.png',
  32. pagePath: 'pages/home/index',
  33. // text: '首页',
  34. },
  35. {
  36. // iconPath: 'static/tabbar/example.png',
  37. // selectedIconPath: 'static/tabbar/exampleHL.png',
  38. pagePath: 'pages/about/about',
  39. // text: '关于',
  40. },
  41. ],
  42. },
  43. condition: {
  44. current: -1,
  45. list: [
  46. { name: '设计游学', path: 'pages/index/study-tour/index' },
  47. { name: '登录', path: 'pages/login/index' },
  48. ],
  49. },
  50. })