pages.config.ts 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // pages.config.ts
  2. import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
  3. export default defineUniPages({
  4. // You can also define pages fields, which have the highest priority.
  5. pages: [
  6. ],
  7. tabBar: {
  8. // Gray3
  9. color: '#828282',
  10. // Gray1
  11. selectedColor: '#FE0032',
  12. backgroundColor: '#FFFFFF',
  13. list: [{
  14. pagePath: 'pages/home/index',
  15. iconPath: 'static/icon/home-off.png',
  16. selectedIconPath: 'static/icon/home-on.png',
  17. text: '首页'
  18. },
  19. // {
  20. // pagePath: 'pages/store/nearby/index',
  21. // iconPath: 'static/icon/dacang-off.png',
  22. // selectedIconPath: 'static/icon/dacang-on.png',
  23. // text: '本地生活'
  24. // },
  25. {
  26. pagePath: 'pages/dacang/list/index',
  27. iconPath: 'static/icon/chuangke-off.png',
  28. selectedIconPath: 'static/icon/chuangke-on.png',
  29. text: '精品商城'
  30. },
  31. // {
  32. // pagePath: 'pages/order_addcart/index',
  33. // iconPath: 'static/icon/shopcart-off.png',
  34. // selectedIconPath: 'static/icon/shopcart-on.png',
  35. // text: '购物车'
  36. // },
  37. {
  38. pagePath: 'pages/user/index',
  39. iconPath: 'static/icon/user-off.png',
  40. selectedIconPath: 'static/icon/user-on.png',
  41. text: '我的'
  42. }]
  43. },
  44. globalStyle: {
  45. navigationBarBackgroundColor: '@navBgColor',
  46. navigationBarTextStyle: '@navTxtStyle',
  47. navigationBarTitleText: '华夏幸福保',
  48. backgroundColor: '@bgColor',
  49. backgroundTextStyle: '@bgTxtStyle',
  50. backgroundColorTop: '@bgColorTop',
  51. backgroundColorBottom: '@bgColorBottom',
  52. },
  53. })