pages.config.ts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
  2. export default defineUniPages({
  3. globalStyle: {
  4. navigationStyle: 'default',
  5. // navigationBarTitleText: 'auyen-mobile',
  6. navigationBarBackgroundColor: '#f8f8f8',
  7. navigationBarTextStyle: 'black',
  8. backgroundColor: '#FFFFFF',
  9. enablePullDownRefresh: false,
  10. onReachBottomDistance: 50,
  11. },
  12. easycom: {
  13. autoscan: true,
  14. custom: {
  15. '^wd-(.*)': 'wot-design-uni/components/wd-$1/wd-$1.vue',
  16. '^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)':
  17. 'z-paging/components/z-paging$1/z-paging$1.vue',
  18. // uni-ui 规则如下配置
  19. '^uni-(.*)': '@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue',
  20. '^ay-(.*)': '@/components/$1/index.vue',
  21. '^ayb-(.*)': '@/components/business/$1',
  22. // '^van-(.*)': '@/wxcomponents/vant/$1/index.vue', // 匹配components目录内的vue文件
  23. },
  24. },
  25. // tabBar: {
  26. // color: '#999999',
  27. // selectedColor: '#018d71',
  28. // backgroundColor: '#F8F8F8',
  29. // borderStyle: 'black',
  30. // height: '50px',
  31. // fontSize: '10px',
  32. // iconWidth: '24px',
  33. // spacing: '3px',
  34. // list: [
  35. // {
  36. // iconPath: 'static/tabbar/home.png',
  37. // selectedIconPath: 'static/tabbar/homeHL.png',
  38. // pagePath: 'pages/index/index',
  39. // text: '首页',
  40. // },
  41. // {
  42. // iconPath: 'static/tabbar/example.png',
  43. // selectedIconPath: 'static/tabbar/exampleHL.png',
  44. // pagePath: 'pages/list/index',
  45. // text: '列表',
  46. // },
  47. // {
  48. // iconPath: 'static/tabbar/example.png',
  49. // selectedIconPath: 'static/tabbar/exampleHL.png',
  50. // pagePath: 'pages/login/index',
  51. // text: '登录',
  52. // },
  53. // ],
  54. // },
  55. pages: [],
  56. requiredPrivateInfos: ['getLocation'],
  57. permission: {
  58. 'scope.userLocation': {
  59. desc: '当前位置信息将用于附近加气站搜索',
  60. },
  61. },
  62. })