Files
youlai-app/pages.config.ts
T
Ray.Hao e0cff93f0b refactor: 全面重构移动端架构与规范落地
页面迁移至 subPages 分包,路由改用 definePage 宏驱动;抽取 usePagedList/useActionSheet/useSmsCode 组合式函数;统一 API 命名、toast 与主题色变量;登录页视觉收敛并清理无效字段及废弃依赖
2026-09-06 23:59:51 +08:00

39 lines
960 B
TypeScript

// pages.config.ts
import { defineUniPages } from "@uni-helper/vite-plugin-uni-pages";
export default defineUniPages({
// 你也可以定义 pages 字段,它具有最高的优先级。
pages: [],
globalStyle: {
navigationBarBackgroundColor: "@navBgColor",
navigationBarTextStyle: "@navTxtStyle",
navigationBarTitleText: "youlai-app",
backgroundColor: "@bgColor",
backgroundTextStyle: "@bgTxtStyle",
backgroundColorTop: "@bgColorTop",
backgroundColorBottom: "@bgColorBottom",
enablePullDownRefresh: false,
onReachBottomDistance: 50,
},
tabBar: {
custom: true,
height: "0",
color: "@tabColor",
selectedColor: "@tabSelectedColor",
backgroundColor: "@tabBgColor",
borderStyle: "@tabBorderStyle",
list: [
{
pagePath: "pages/index/index",
},
{
pagePath: "pages/work/index",
},
{
pagePath: "pages/mine/index",
},
],
},
});