pages.config.ts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. layout: 'custom',
  26. },
  27. {
  28. path: 'pages/feed-plan/index',
  29. type: 'page',
  30. style: {
  31. navigationBarTitleText: '喂养计划',
  32. },
  33. },
  34. {
  35. path: 'pages/me/index',
  36. type: 'page',
  37. style: {
  38. navigationBarTitleText: '我的',
  39. },
  40. },
  41. {
  42. path: 'pages/pet-manual/index',
  43. type: 'page',
  44. style: {
  45. navigationBarTitleText: '宠物手册',
  46. },
  47. },
  48. {
  49. path: 'pages/setting/index',
  50. type: 'page',
  51. style: {
  52. navigationBarTitleText: '设置',
  53. },
  54. },
  55. {
  56. path: 'pages/start-filing/index',
  57. type: 'page',
  58. style: {
  59. navigationBarTitleText: '开始建档',
  60. },
  61. layout: 'custom',
  62. },
  63. {
  64. path: 'pages/userInfo/index',
  65. type: 'page',
  66. },
  67. {
  68. path: 'pages/feed-plan-calculator/index',
  69. type: 'page',
  70. style: {
  71. navigationBarTitleText: '喂养问卷',
  72. },
  73. layout: 'custom',
  74. },
  75. {
  76. path: 'pages/feed-plan-calculator/choose-product',
  77. type: 'page',
  78. style: {
  79. navigationBarTitleText: '喂养问卷',
  80. },
  81. layout: 'custom',
  82. },
  83. {
  84. path: 'pages/feed-plan-calculator/confirm',
  85. type: 'page',
  86. style: {
  87. navigationBarTitleText: '喂养问卷',
  88. },
  89. layout: 'custom',
  90. },
  91. ],
  92. globalStyle: {
  93. backgroundColor: '#fff',
  94. backgroundColorBottom: '@bgColorBottom',
  95. backgroundColorTop: '@bgColorTop',
  96. backgroundTextStyle: '@bgTxtStyle',
  97. navigationBarBackgroundColor: '#fff',
  98. navigationBarTextStyle: 'black',
  99. navigationBarTitleText: '布兰德宠物喂养助手',
  100. },
  101. })