pages.config.ts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. pagePath: 'pages/publish/index',
  43. },
  44. {
  45. pagePath: 'pages/messages/index',
  46. },
  47. {
  48. pagePath: 'pages/mine/index',
  49. },
  50. ],
  51. },
  52. condition: {
  53. current: -1,
  54. list: [
  55. { name: '设计游学', path: 'pages/index/study-tour/index' },
  56. { name: '登录', path: 'pages/login/index' },
  57. { name: '我的', path: 'pages/mine/index' },
  58. ],
  59. },
  60. })