pages.config.ts 1.3 KB

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