pages.json.ts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. import { defineConfig } from '@uni-ku/pages-json'
  2. export default defineConfig({
  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. subPackages: [
  45. {
  46. root: 'subPack-xsb',
  47. plugins: {
  48. logisticsPlugin: {
  49. version: '2.1.12',
  50. provider: 'wx9ad912bf20548d92',
  51. },
  52. },
  53. },
  54. ],
  55. })