Files
frontend-uniapp/pages.config.ts
T

102 lines
2.2 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',
},
},
entryPagePath: 'pages/home/index',
pages: [
{
path: 'pages/home/index',
type: 'page',
style: {
navigationBarTitleText: '首页',
},
},
{
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/FeedSlogan',
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: '#fff',
backgroundColorBottom: '@bgColorBottom',
backgroundColorTop: '@bgColorTop',
backgroundTextStyle: '@bgTxtStyle',
navigationBarBackgroundColor: '#fff',
navigationBarTextStyle: 'black',
navigationBarTitleText: '布兰德宠物喂养助手',
},
})