fix(mp): 拆分 expert/community 为分包,主包从 1.6MB 降到 1.2MB 以内

- pages/expert(大神主页/入驻/工作台/雷达/大厅)与 pages/community(友圈/动态详情)改为分包,路由路径不变

- 首页预下载两个分包,避免首次进入等待

- 解决微信开发者工具上传报 source size 超 2MB 的问题
这个提交包含在:
xcbyy
2026-10-26 11:00:17 +08:00
父节点 c4eee64a0f
当前提交 1681d5d086

查看文件

@@ -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": "陪玩中心",