From 1681d5d08659e6c27ef2425fb2359a6926e78c9f Mon Sep 17 00:00:00 2001 From: xcbyy <2578898740@qq.com> Date: Mon, 26 Oct 2026 11:00:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(mp):=20=E6=8B=86=E5=88=86=20expert/communit?= =?UTF-8?q?y=20=E4=B8=BA=E5=88=86=E5=8C=85=EF=BC=8C=E4=B8=BB=E5=8C=85?= =?UTF-8?q?=E4=BB=8E=201.6MB=20=E9=99=8D=E5=88=B0=201.2MB=20=E4=BB=A5?= =?UTF-8?q?=E5=86=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - pages/expert(大神主页/入驻/工作台/雷达/大厅)与 pages/community(友圈/动态详情)改为分包,路由路径不变 - 首页预下载两个分包,避免首次进入等待 - 解决微信开发者工具上传报 source size 超 2MB 的问题 --- pwuniapp/pages.json | 153 ++++++++++++++++++++++++-------------------- 1 file changed, 85 insertions(+), 68 deletions(-) diff --git a/pwuniapp/pages.json b/pwuniapp/pages.json index 114905f..3cfe71e 100644 --- a/pwuniapp/pages.json +++ b/pwuniapp/pages.json @@ -65,24 +65,6 @@ "backgroundColor": "#0A0F1D" } }, - { - "path": "pages/expert/detail", - "style": { - "navigationBarTitleText": "陪玩大神主页", - "navigationBarBackgroundColor": "#0A0F1D", - "navigationBarTextStyle": "white", - "backgroundColor": "#0A0F1D" - } - }, - { - "path": "pages/expert/apply", - "style": { - "navigationBarTitleText": "大神入驻认证", - "navigationBarBackgroundColor": "#0A0F1D", - "navigationBarTextStyle": "white", - "backgroundColor": "#0A0F1D" - } - }, { "path": "pages/order/create", "style": { @@ -102,7 +84,6 @@ "backgroundColor": "#0A0F1D" } }, - { "path": "pages/user/index", "style": { @@ -230,57 +211,93 @@ "navigationBarTextStyle": "white", "backgroundColor": "#0A0F1D" } - }, - { - "path": "pages/expert/workspace", - "style": { - "navigationBarTitleText": "大神接单工作台", - "navigationBarBackgroundColor": "#0A0F1D", - "navigationBarTextStyle": "white", - "backgroundColor": "#0A0F1D" - } - }, - { - "path": "pages/community/index", - "style": { - "navigationStyle": "custom", - "navigationBarTitleText": "友圈广场", - "navigationBarBackgroundColor": "#0A0F1D", - "navigationBarTextStyle": "white", - "backgroundColor": "#0A0F1D" - } - }, - { - "path": "pages/community/detail", - "style": { - "navigationStyle": "custom", - "navigationBarTitleText": "动态详情", - "navigationBarBackgroundColor": "#0A0F1D", - "navigationBarTextStyle": "white", - "backgroundColor": "#0A0F1D" - } - }, - { - "path": "pages/expert/radar", - "style": { - "navigationStyle": "custom", - "navigationBarTitleText": "我要接单", - "navigationBarBackgroundColor": "#0A0F1D", - "navigationBarTextStyle": "white", - "backgroundColor": "#0A0F1D" - } - }, - { - "path": "pages/expert/hall", - "style": { - "navigationStyle": "custom", - "navigationBarTitleText": "接单大厅", - "navigationBarBackgroundColor": "#0A0F1D", - "navigationBarTextStyle": "white", - "backgroundColor": "#0A0F1D" - } } ], + "subPackages": [ + { + "root": "pages/expert", + "pages": [ + { + "path": "detail", + "style": { + "navigationBarTitleText": "陪玩大神主页", + "navigationBarBackgroundColor": "#0A0F1D", + "navigationBarTextStyle": "white", + "backgroundColor": "#0A0F1D" + } + }, + { + "path": "apply", + "style": { + "navigationBarTitleText": "大神入驻认证", + "navigationBarBackgroundColor": "#0A0F1D", + "navigationBarTextStyle": "white", + "backgroundColor": "#0A0F1D" + } + }, + { + "path": "workspace", + "style": { + "navigationBarTitleText": "大神接单工作台", + "navigationBarBackgroundColor": "#0A0F1D", + "navigationBarTextStyle": "white", + "backgroundColor": "#0A0F1D" + } + }, + { + "path": "radar", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "我要接单", + "navigationBarBackgroundColor": "#0A0F1D", + "navigationBarTextStyle": "white", + "backgroundColor": "#0A0F1D" + } + }, + { + "path": "hall", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "接单大厅", + "navigationBarBackgroundColor": "#0A0F1D", + "navigationBarTextStyle": "white", + "backgroundColor": "#0A0F1D" + } + } + ] + }, + { + "root": "pages/community", + "pages": [ + { + "path": "index", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "友圈广场", + "navigationBarBackgroundColor": "#0A0F1D", + "navigationBarTextStyle": "white", + "backgroundColor": "#0A0F1D" + } + }, + { + "path": "detail", + "style": { + "navigationStyle": "custom", + "navigationBarTitleText": "动态详情", + "navigationBarBackgroundColor": "#0A0F1D", + "navigationBarTextStyle": "white", + "backgroundColor": "#0A0F1D" + } + } + ] + } + ], + "preloadRule": { + "pages/index/index": { + "network": "all", + "packages": ["pages/expert", "pages/community"] + } + }, "globalStyle": { "navigationBarTextStyle": "white", "navigationBarTitleText": "陪玩中心",