pages.config.ts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /*
  2. * @Author: wjc
  3. * @Date: 2024-06-25 15:45:01
  4. * @LastEditors: wjc
  5. * @LastEditTime: 2024-07-08 10:10:36
  6. * @Description:
  7. */
  8. import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
  9. export default defineUniPages({
  10. easycom: {
  11. autoscan: true,
  12. custom: {
  13. '^u--(.*)': 'uview-plus/components/u-$1/u-$1.vue',
  14. '^up-(.*)': 'uview-plus/components/u-$1/u-$1.vue',
  15. '^u-([^-].*)': 'uview-plus/components/u-$1/u-$1.vue',
  16. '^uni-(.*)': '@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue',
  17. '^M(.*)': '@/components/M$1/index.vue',
  18. '^m-(.*)': '@/components/M$1/index.vue',
  19. },
  20. },
  21. tabBar: {
  22. height: '56px',
  23. fontSize: '12px',
  24. iconWidth: '36px',
  25. color: '#7A7E83',
  26. selectedColor: '#3cc51f',
  27. borderStyle: 'black',
  28. backgroundColor: '#ffffff',
  29. list: [
  30. {
  31. pagePath: 'pages/index/index',
  32. iconPath: 'static/images/main/work.png',
  33. selectedIconPath: 'static/images/main/work_1.png',
  34. text: '工作台',
  35. },
  36. {
  37. pagePath: 'pages/mine/index',
  38. iconPath: 'static/images/main/mine.png',
  39. selectedIconPath: 'static/images/main/mine_1.png',
  40. text: '我的',
  41. },
  42. ],
  43. },
  44. globalStyle: {
  45. navigationBarTextStyle: 'black',
  46. navigationBarTitleText: 'uni-app',
  47. navigationBarBackgroundColor: '#F8F8F8',
  48. backgroundColor: '#F8F8F8',
  49. },
  50. pages: [],
  51. })