Files
frontend-uniapp/pages.config.ts
T
2024-12-25 10:23:12 +08:00

95 lines
2.0 KiB
TypeScript

import { defineUniPages } from '@uni-helper/vite-plugin-uni-pages'
export default defineUniPages({
easycom: {
autoscan: true,
custom: {
// uni-ui 规则如下配置
'^uni-(.*)': '@dcloudio/uni-ui/lib/uni-$1/uni-$1.vue',
},
},
pages: [
{
path: 'pages/feed-calculator/index',
type: 'page',
style: {
navigationBarTitleText: '喂养计算器',
},
},
{
path: 'pages/feed-plan/index',
type: 'page',
style: {
navigationBarTitleText: '喂养计划',
},
},
{
path: 'pages/me/index',
type: 'page',
style: {
navigationBarTitleText: '我的',
},
},
{
path: 'pages/pet-manual/index',
type: 'page',
style: {
navigationBarTitleText: '宠物手册',
},
},
{
path: 'pages/setting/index',
type: 'page',
},
{
path: 'pages/start-filing/index',
type: 'page',
style: {
navigationBarTitleText: '开始建档',
},
},
{
path: 'pages/userInfo/index',
type: 'page',
},
{
path: 'pages/feed-calculator/components/FeedFlogan',
type: 'page',
},
{
path: 'pages/feed-calculator/components/FeedForm',
type: 'page',
},
{
path: 'pages/feed-calculator/components/FeedQuestionnaire',
type: 'page',
},
{
path: 'pages/feed-calculator/components/FeedStart',
type: 'page',
},
{
path: 'pages/feed-calculator/components/FeedStep',
type: 'page',
},
{
path: 'pages/feed-calculator/components/ProgressBar',
type: 'page',
},
{
path: 'pages/pet-manual/components/CardList',
type: 'page',
},
],
globalStyle: {
backgroundColor: '@bgColor',
backgroundColorBottom: '@bgColorBottom',
backgroundColorTop: '@bgColorTop',
backgroundTextStyle: '@bgTxtStyle',
navigationBarBackgroundColor: '#fff',
navigationBarTextStyle: 'black',
navigationBarTitleText: 'Vitesse-Uni',
},
})