pages.config.ts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
  2. export default defineUniPages({
  3. easycom: {
  4. autoscan: true,
  5. custom: {
  6. // uni-ui 规则如下配置
  7. '^uni-(.*)': '@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue',
  8. },
  9. },
  10. entryPagePath: 'pages/home/index',
  11. pages: [
  12. {
  13. path: 'pages/home/index',
  14. type: 'page',
  15. style: {
  16. navigationBarTitleText: '首页',
  17. },
  18. },
  19. {
  20. path: 'pages/feed-calculator/index',
  21. type: 'page',
  22. style: {
  23. navigationBarTitleText: '喂养计算器',
  24. },
  25. },
  26. {
  27. path: 'pages/feed-plan/index',
  28. type: 'page',
  29. style: {
  30. navigationBarTitleText: '喂养计划',
  31. },
  32. },
  33. {
  34. path: 'pages/me/index',
  35. type: 'page',
  36. style: {
  37. navigationBarTitleText: '我的',
  38. },
  39. },
  40. {
  41. path: 'pages/pet-manual/index',
  42. type: 'page',
  43. style: {
  44. navigationBarTitleText: '宠物手册',
  45. },
  46. },
  47. {
  48. path: 'pages/setting/index',
  49. type: 'page',
  50. style: {
  51. navigationBarTitleText: '设置',
  52. },
  53. },
  54. {
  55. path: 'pages/start-filing/index',
  56. type: 'page',
  57. style: {
  58. navigationBarTitleText: '开始建档',
  59. },
  60. },
  61. {
  62. path: 'pages/userInfo/index',
  63. type: 'page',
  64. },
  65. {
  66. path: 'pages/feed-calculator/components/FeedSlogan',
  67. type: 'page',
  68. },
  69. {
  70. path: 'pages/feed-calculator/components/FeedForm',
  71. type: 'page',
  72. },
  73. {
  74. path: 'pages/feed-calculator/components/FeedQuestionnaire',
  75. type: 'page',
  76. },
  77. {
  78. path: 'pages/feed-calculator/components/FeedStart',
  79. type: 'page',
  80. },
  81. {
  82. path: 'pages/feed-calculator/components/FeedStep',
  83. type: 'page',
  84. },
  85. {
  86. path: 'pages/feed-calculator/components/ProgressBar',
  87. type: 'page',
  88. },
  89. {
  90. path: 'pages/pet-manual/components/CardList',
  91. type: 'page',
  92. },
  93. ],
  94. globalStyle: {
  95. backgroundColor: '#fff',
  96. backgroundColorBottom: '@bgColorBottom',
  97. backgroundColorTop: '@bgColorTop',
  98. backgroundTextStyle: '@bgTxtStyle',
  99. navigationBarBackgroundColor: '#fff',
  100. navigationBarTextStyle: 'black',
  101. navigationBarTitleText: '布兰德宠物喂养助手',
  102. },
  103. })