加入社群页面

This commit is contained in:
2025-11-27 17:02:51 +08:00
parent a20490f28d
commit 2ad9988120
5 changed files with 160 additions and 17 deletions

View File

@@ -12,13 +12,9 @@ export default defineAppConfig({
"game_pages/sharePoster/index",
],
subPackages: [
{
root: 'publish_pages',
pages: [
"publishBall/index",
"footballRules/index"
],
root: "publish_pages",
pages: ["publishBall/index", "footballRules/index"],
},
{
root: "user_pages",
@@ -35,6 +31,7 @@ export default defineAppConfig({
"setTransactionPassword/index", // 设置交易密码
"validPhone/index", // 验证手机号
"withdrawal/index", // 提现
"joinGroup/index", // 加入社群
],
},
// {
@@ -45,15 +42,14 @@ export default defineAppConfig({
// ],
// },
{
root: 'order_pages',
root: "order_pages",
pages: [
"orderList/index", // 订单列表页
"orderDetail/index", // 订单详情页
],
},
{
root: 'other_pages',
root: "other_pages",
pages: [
"comment_reply/index", // 收到的评论和回复
"new_follow/index", // 新增关注
@@ -63,13 +59,13 @@ export default defineAppConfig({
},
],
"preloadRule": {
preloadRule: {
// 移除首屏预加载,所有子包改为按需加载,提升启动速度
// 如果需要,可以在 main_pages/index 加载后再预加载常用包
"main_pages/index": {
"packages": ["publish_pages"], // 只预加载最常用的发布页面
"network": "all"
}
packages: ["publish_pages"], // 只预加载最常用的发布页面
network: "all",
},
},
window: {
@@ -90,5 +86,5 @@ export default defineAppConfig({
provider: "wx76a9a06e5b4e693e",
},
},
"lazyCodeLoading": "requiredComponents"
lazyCodeLoading: "requiredComponents",
});