fix: 代码质量扫描 — 分包降主包体积,登录页背景去 base64

- 主包仅保留 5 个 Tab 页,其余页面迁入 subPackages
- login-pop 177KB base64 背景改为 static/n-login/login-bg.jpg(16KB)
- H5 缓存版本 202608283

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
jackyu66git
2026-08-25 04:51:53 +08:00
co-authored by Cursor
parent dee8370c06
commit 6e97f01378
4 changed files with 246 additions and 149 deletions
+244 -147
View File
@@ -1,5 +1,5 @@
{
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
"pages": [
{
"path": "pages/index/index",
"style": {
@@ -23,173 +23,271 @@
}
}
},
{
"path": "pages/healing/healing-list",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/healing-detail/healing-detail",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/healing/active-list",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/healing-detail/active-detail",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/test-list/test-list",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/test-detail/test-detail",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/show-question/show-question",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/test-result/test-result",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/my-test/my-test",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/login-pop/login-pop",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/pay-demo/pay-demo",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/consult/consult",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/consult-detail/consult-detail",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/appoint/appoint",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/my-focus/my-focus",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/order/order",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/order-detail/order-detail",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/personal-center/personal-center",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/edit-userinfo/edit-userinfo",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "pages/customer-service/customer-service",
"style": {
"navigationBarTitleText": ""
}
},
{
"path" : "pages/feedback/feedback",
"style" :
{
"navigationBarTitleText" : ""
}
},
{
"path" : "pages/consult-appointment/consult-appointment",
"style" :
{
"navigationBarTitleText" : ""
}
},
{
"path" : "pages/show-image/show-image",
"style" :
{
"navigationBarTitleText" : ""
}
},
{
"path" : "pages/show-banner/show-banner",
"style" :
{
"navigationBarTitleText" : ""
}
},
{
"path" : "pages/webview-page/webview-page",
"style" :
{
"navigationBarTitleText" : ""
}
}
],
"subPackages": [
{
"root": "pages/healing",
"pages": [
{
"path": "healing-list",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "active-list",
"style": {
"navigationBarTitleText": ""
}
}
]
},
{
"root": "pages/healing-detail",
"pages": [
{
"path": "healing-detail",
"style": {
"navigationBarTitleText": ""
}
},
{
"path": "active-detail",
"style": {
"navigationBarTitleText": ""
}
}
]
},
{
"root": "pages/test-detail",
"pages": [
{
"path": "test-detail",
"style": {
"navigationBarTitleText": ""
}
}
]
},
{
"root": "pages/show-question",
"pages": [
{
"path": "show-question",
"style": {
"navigationBarTitleText": ""
}
}
]
},
{
"root": "pages/test-result",
"pages": [
{
"path": "test-result",
"style": {
"navigationBarTitleText": ""
}
}
]
},
{
"root": "pages/my-test",
"pages": [
{
"path": "my-test",
"style": {
"navigationBarTitleText": ""
}
}
]
},
{
"root": "pages/login-pop",
"pages": [
{
"path": "login-pop",
"style": {
"navigationBarTitleText": ""
}
}
]
},
{
"root": "pages/pay-demo",
"pages": [
{
"path": "pay-demo",
"style": {
"navigationBarTitleText": ""
}
}
]
},
{
"root": "pages/consult-detail",
"pages": [
{
"path": "consult-detail",
"style": {
"navigationBarTitleText": ""
}
}
]
},
{
"root": "pages/appoint",
"pages": [
{
"path": "appoint",
"style": {
"navigationBarTitleText": ""
}
}
]
},
{
"root": "pages/my-focus",
"pages": [
{
"path": "my-focus",
"style": {
"navigationBarTitleText": ""
}
}
]
},
{
"root": "pages/order",
"pages": [
{
"path": "order",
"style": {
"navigationBarTitleText": ""
}
}
]
},
{
"root": "pages/order-detail",
"pages": [
{
"path": "order-detail",
"style": {
"navigationBarTitleText": ""
}
}
]
},
{
"root": "pages/edit-userinfo",
"pages": [
{
"path": "edit-userinfo",
"style": {
"navigationBarTitleText": ""
}
}
]
},
{
"root": "pages/customer-service",
"pages": [
{
"path": "customer-service",
"style": {
"navigationBarTitleText": ""
}
}
]
},
{
"root": "pages/feedback",
"pages": [
{
"path": "feedback",
"style": {
"navigationBarTitleText": ""
}
}
]
},
{
"root": "pages/consult-appointment",
"pages": [
{
"path": "consult-appointment",
"style": {
"navigationBarTitleText": ""
}
}
]
},
{
"root": "pages/show-image",
"pages": [
{
"path": "show-image",
"style": {
"navigationBarTitleText": ""
}
}
]
},
{
"root": "pages/show-banner",
"pages": [
{
"path": "show-banner",
"style": {
"navigationBarTitleText": ""
}
}
]
},
{
"root": "pages/webview-page",
"pages": [
{
"path": "webview-page",
"style": {
"navigationBarTitleText": ""
}
}
]
}
],
"preloadRule": {
"pages/index/index": {
"network": "all",
"packages": ["pages/login-pop"]
}
},
"globalStyle": {
// "navigationBarTextStyle": "black",
// "navigationBarTitleText": "uni-app",
// "navigationBarBackgroundColor": "#F8F8F8",
// "backgroundColor": "#F8F8F8",
"navigationStyle": "custom",
"navigationBarTextStyle": "black",
"navigationBarBackgroundColor": "#ffd1c7",
"backgroundColor": "#ffd1c7",
"backgroundColorTop": "#ffd1c7"
},
"uniIdRouter": {},
"tabBar": {
@@ -198,7 +296,8 @@
"selectedColor": "#EA4E2D",
"fontSize": "24px",
"iconWidth": "16px",
"list": [{
"list": [
{
"iconPath": "./static/n-menu/sy-n.png",
"selectedIconPath": "./static/n-menu/sy-c.png",
"pagePath": "pages/index/index",
@@ -227,9 +326,7 @@
"selectedIconPath": "./static/n-menu/wd-c.png",
"pagePath": "pages/personal-center/personal-center",
"text": "我的"
}
]
}
}
}
File diff suppressed because one or more lines are too long
Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

+1 -1
View File
@@ -2,7 +2,7 @@
import { LOCAL_H5_HOST, USE_LOCAL_H5 } from './yxgConfig.local.js'
const PROD_BASE = 'https://h5.yuxingu.com.cn/psy/'
const PROD_VERSION = '202608282'
const PROD_VERSION = '202608283'
/** 愈心魔方顶栏 logo(小程序包内 static,不请求外网) */
export const YXG_MP_LOGO_URL = '/static/n-main/yxg-brand-logo.png'