Files
mini-programs/src/app.config.ts
2026-02-01 16:12:04 +08:00

94 lines
2.7 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
export default defineAppConfig({
pages: [
// "test_pages/index", //测试页
"home_pages/index", //中转页
"main_pages/index", // 主容器页面合并三个tab
"login_pages/index/index",
"login_pages/verification/index",
"login_pages/terms/index",
"game_pages/search/index", // 搜索页
"game_pages/searchResult/index", // 搜索结果页面
"game_pages/detail/index", // 球局详情页
"game_pages/sharePoster/index",
],
subPackages: [
{
root: "publish_pages",
pages: ["publishBall/index", "footballRules/index"],
},
{
root: "user_pages",
pages: [
"myself/index", // 个人中心
"edit/index", // 编辑个人中心
"other/index", // 他人个人主页
"follow/index", // 球友关注页
"wallet/index", // 钱包页
"queryTransactions/index", // 查询交易
"downloadBill/index", // 下载账单
"downloadBillRecords/index", // 下载账单记录
"billDetail/index", // 账单详情
"setTransactionPassword/index", // 设置交易密码
"validPhone/index", // 验证手机号
"withdrawal/index", // 提现
"joinGroup/index", // 加入社群
],
},
// {
// root: 'game_pages',
// pages: [
// // 列表页
// ],
// },
{
root: "order_pages",
pages: [
"orderList/index", // 订单列表页
"orderDetail/index", // 订单详情页
],
},
{
root: "other_pages",
pages: [
"comment_reply/index", // 收到的评论和回复
"new_follow/index", // 新增关注
"favorites/index", // 收藏页
"ntrp-evaluate/index", // NTRP评估页
"enable_notification/index", // 开启消息通知
"emptyState/index", // 空状态页面
"bannerDetail/index", // Banner 图片详情页
],
},
],
preloadRule: {
// 移除首屏预加载,所有子包改为按需加载,提升启动速度
// 如果需要,可以在 main_pages/index 加载后再预加载常用包
"main_pages/index": {
packages: ["publish_pages"], // 只预加载最常用的发布页面
network: "all",
},
},
window: {
backgroundTextStyle: "light",
navigationBarBackgroundColor: "#FAFAFA",
navigationBarTextStyle: "black",
backgroundColor: "#FAFAFA",
},
permission: {
"scope.userLocation": {
desc: "你的位置信息将用于小程序位置接口的效果展示",
},
},
requiredPrivateInfos: ["getLocation", "chooseLocation"],
plugins: {
chooseLocation: {
version: "1.0.12",
provider: "wx76a9a06e5b4e693e",
},
},
lazyCodeLoading: "requiredComponents",
});