Files
frontend-uniapp/pages.config.ts
T
2025-01-21 14:31:48 +08:00

103 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-questionnaire/index',
type: 'page',
style: {
navigationBarTitleText: '喂养计算器',
},
layout: 'custom',
},
{
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',
style: {
navigationBarTitleText: '设置',
},
},
{
path: 'pages/start-filing/index',
type: 'page',
style: {
navigationBarTitleText: '开始建档',
},
layout: 'custom',
},
{
path: 'pages/userInfo/index',
type: 'page',
},
{
path: 'pages/feed-plan-calculator/index',
type: 'page',
style: {
navigationBarTitleText: '喂养问卷',
},
layout: 'custom',
},
{
path: 'pages/feed-plan-calculator/choose-product',
type: 'page',
style: {
navigationBarTitleText: '喂养问卷',
},
layout: 'custom',
},
{
path: 'pages/feed-plan-calculator/confirm',
type: 'page',
style: {
navigationBarTitleText: '喂养问卷',
},
layout: 'custom',
},
],
globalStyle: {
backgroundColor: '#fff',
backgroundColorBottom: '@bgColorBottom',
backgroundColorTop: '@bgColorTop',
backgroundTextStyle: '@bgTxtStyle',
navigationBarBackgroundColor: '#fff',
navigationBarTextStyle: 'black',
navigationBarTitleText: '布兰德宠物喂养助手',
},
})