pages.config.ts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
  2. export default defineUniPages({
  3. pages: [],
  4. globalStyle: {
  5. // 导航栏配置
  6. navigationBarBackgroundColor: '@navBgColor',
  7. navigationBarTextStyle: '@navTxtStyle',
  8. navigationBarTitleText: 'wot',
  9. // 页面背景配置
  10. backgroundColor: '@bgColor',
  11. backgroundTextStyle: '@bgTxtStyle',
  12. backgroundColorTop: '@bgColorTop',
  13. backgroundColorBottom: '@bgColorBottom',
  14. // 下拉刷新配置
  15. enablePullDownRefresh: false,
  16. onReachBottomDistance: 50,
  17. // 动画配置
  18. animationType: 'pop-in',
  19. animationDuration: 300,
  20. },
  21. tabBar: {
  22. custom: true,
  23. // #ifdef MP-ALIPAY
  24. customize: true,
  25. // 暂时不生效。4.71.2025061206-alpha已修复:https://uniapp.dcloud.net.cn/release-note-alpha.html#_4-71-2025061206-alpha,我们等正式版发布后更新。
  26. overlay: true,
  27. // #endif
  28. height: '0',
  29. color: '@tabColor',
  30. selectedColor: '@tabSelectedColor',
  31. backgroundColor: '@tabBgColor',
  32. borderStyle: '@tabBorderStyle',
  33. list: [{
  34. pagePath: 'pages/index/index',
  35. }, {
  36. pagePath: 'pages/cart/index',
  37. }, {
  38. pagePath: 'pages/my/index',
  39. }],
  40. },
  41. })