pages.config.ts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * @Author: wjc
  3. * @Date: 2024-06-25 15:45:01
  4. * @LastEditors: wjc
  5. * @LastEditTime: 2024-06-25 15:45:27
  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. },
  18. },
  19. tabBar: {
  20. height: '56px',
  21. fontSize: '12px',
  22. iconWidth: '36px',
  23. color: '#7A7E83',
  24. selectedColor: '#3cc51f',
  25. borderStyle: 'black',
  26. backgroundColor: '#ffffff',
  27. list: [
  28. {
  29. pagePath: 'pages/index/index',
  30. iconPath: 'static/images/main/work.png',
  31. selectedIconPath: 'static/images/main/work_1.png',
  32. text: '工作台',
  33. },
  34. {
  35. pagePath: 'pages/mine/index',
  36. iconPath: 'static/images/main/mine.png',
  37. selectedIconPath: 'static/images/main/mine_1.png',
  38. text: '我的',
  39. },
  40. ],
  41. },
  42. globalStyle: {
  43. navigationBarTextStyle: 'black',
  44. navigationBarTitleText: 'uni-app',
  45. navigationBarBackgroundColor: '#F8F8F8',
  46. backgroundColor: '#F8F8F8',
  47. },
  48. pages: [],
  49. })