pages.config.ts 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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-questionnaire/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-questionnaire/components/FeedSlogan',
  67. type: 'page',
  68. },
  69. {
  70. path: 'pages/feed-questionnaire/components/FeedForm',
  71. type: 'page',
  72. },
  73. {
  74. path: 'pages/feed-questionnaire/components/FeedQuestionnaire',
  75. type: 'page',
  76. },
  77. {
  78. path: 'pages/feed-questionnaire/components/FeedStart',
  79. type: 'page',
  80. },
  81. {
  82. path: 'pages/feed-questionnaire/components/FeedStep',
  83. type: 'page',
  84. },
  85. {
  86. path: 'pages/feed-questionnaire/components/ProgressBar',
  87. type: 'page',
  88. },
  89. {
  90. path: 'pages/pet-manual/components/CardList',
  91. type: 'page',
  92. },
  93. {
  94. path: 'pages/feed-plan-calculator/index',
  95. type: 'page',
  96. style: {
  97. navigationBarTitleText: '喂养问卷',
  98. },
  99. layout: 'custom',
  100. },
  101. {
  102. path: 'pages/feed-plan-calculator/choose-product',
  103. type: 'page',
  104. style: {
  105. navigationBarTitleText: '喂养问卷',
  106. },
  107. layout: 'custom',
  108. },
  109. {
  110. path: 'pages/feed-plan-calculator/confirm',
  111. type: 'page',
  112. style: {
  113. navigationBarTitleText: '喂养问卷',
  114. },
  115. layout: 'custom',
  116. },
  117. ],
  118. globalStyle: {
  119. backgroundColor: '#fff',
  120. backgroundColorBottom: '@bgColorBottom',
  121. backgroundColorTop: '@bgColorTop',
  122. backgroundTextStyle: '@bgTxtStyle',
  123. navigationBarBackgroundColor: '#fff',
  124. navigationBarTextStyle: 'black',
  125. navigationBarTitleText: '布兰德宠物喂养助手',
  126. },
  127. })