pages.config.ts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. pagePath: 'pages/store/nearby/index',
  20. iconPath: 'static/icon/chuangke-off.png',
  21. selectedIconPath: 'static/icon/chuangke-on.png',
  22. text: '创客'
  23. }, {
  24. pagePath: 'pages/dacang/list/index',
  25. iconPath: 'static/icon/dacang-off.png',
  26. selectedIconPath: 'static/icon/dacang-on.png',
  27. text: '精品商城'
  28. }, {
  29. pagePath: 'pages/order_addcart/index',
  30. iconPath: 'static/icon/shopcart-off.png',
  31. selectedIconPath: 'static/icon/shopcart-on.png',
  32. text: '购物车'
  33. },{
  34. pagePath: 'pages/user/index',
  35. iconPath: 'static/icon/user-off.png',
  36. selectedIconPath: 'static/icon/user-on.png',
  37. text: '我的'
  38. }]
  39. },
  40. globalStyle: {
  41. navigationBarBackgroundColor: '@navBgColor',
  42. navigationBarTextStyle: '@navTxtStyle',
  43. navigationBarTitleText: '幸福保',
  44. backgroundColor: '@bgColor',
  45. backgroundTextStyle: '@bgTxtStyle',
  46. backgroundColorTop: '@bgColorTop',
  47. backgroundColorBottom: '@bgColorBottom',
  48. },
  49. })