pages.config.ts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. },
  51. {
  52. path: 'pages/start-filing/index',
  53. type: 'page',
  54. style: {
  55. navigationBarTitleText: '开始建档',
  56. },
  57. },
  58. {
  59. path: 'pages/userInfo/index',
  60. type: 'page',
  61. },
  62. {
  63. path: 'pages/feed-calculator/components/FeedSlogan',
  64. type: 'page',
  65. },
  66. {
  67. path: 'pages/feed-calculator/components/FeedForm',
  68. type: 'page',
  69. },
  70. {
  71. path: 'pages/feed-calculator/components/FeedQuestionnaire',
  72. type: 'page',
  73. },
  74. {
  75. path: 'pages/feed-calculator/components/FeedStart',
  76. type: 'page',
  77. },
  78. {
  79. path: 'pages/feed-calculator/components/FeedStep',
  80. type: 'page',
  81. },
  82. {
  83. path: 'pages/feed-calculator/components/ProgressBar',
  84. type: 'page',
  85. },
  86. {
  87. path: 'pages/pet-manual/components/CardList',
  88. type: 'page',
  89. },
  90. ],
  91. globalStyle: {
  92. backgroundColor: '#fff',
  93. backgroundColorBottom: '@bgColorBottom',
  94. backgroundColorTop: '@bgColorTop',
  95. backgroundTextStyle: '@bgTxtStyle',
  96. navigationBarBackgroundColor: '#fff',
  97. navigationBarTextStyle: 'black',
  98. navigationBarTitleText: '布兰德宠物喂养助手',
  99. },
  100. })