|
|
@@ -9,53 +9,51 @@
|
|
|
|
|
|
### 0.1 实际规模:43 个 >800 行页面(非 16)
|
|
|
|
|
|
-原始任务描述中"16 个"不准确。经 `pages.json` 注册页列表 + `wc -l` 实测,实际为 **43 个已注册页面**超过 800 行。另有若干 `*.vue` 文件(组件、混合文件)未计入此清单。
|
|
|
-
|
|
|
-| 序号 | 路径 | 总行数 | 模板行 | 脚本行 | 样式行 | 风险标记 |
|
|
|
+原始任务描述中"16 个"不准确。经 `pages.json` 注册页列表 + `wc -l` 实测,实际为 **43 个已注册页面**超过 800 行。另有若干 `*.vue` 文件(组件、混合文件)未计入此清单。| 序号 | 路径 | 总行数(`wc -l`) | 模板行 | 脚本行 | 样式行 | 风险标记 |
|
|
|
|------|------|--------|--------|--------|--------|----------|
|
|
|
-| 1 | `pages/index-home/index` | 3063 | 423 | 1675 | 962 | `newDate` |
|
|
|
-| 2 | `pages/health/report-detail` | 2654 | 455 | 1135 | 1061 | `scroll-view` |
|
|
|
-| 3 | `pages/mind-detail/index` | 2601 | 258 | 1038 | 1303 | `newDate` |
|
|
|
-| 4 | `pages/home-pages/parent-index` | 2294 | 494 | 838 | 960 | `scroll-view`, `newDate` |
|
|
|
-| 5 | `pages/shop/checkout/checkout` | 2021 | 482 | 778 | 759 | `scroll-view` |
|
|
|
-| 6 | `pages/health/health-plan-summary` | 1913 | 229 | 1039 | 643 | `newDate` |
|
|
|
-| 7 | `pages/health/report-confirm` | 1841 | 356 | 598 | 884 | — |
|
|
|
-| 8 | `pages/activity/activity-detail/activity-detail` | 1768 | 333 | 732 | 700 | `scroll-view` |
|
|
|
-| 9 | `pages/health/gut-flora-detail` | 1586 | 371 | 764 | 448 | `scroll-view` |
|
|
|
-| 10 | `pages/home-pages/child-index` | 1486 | 316 | 605 | 563 | `scroll-view`, `newDate` |
|
|
|
-| 11 | `pages/profile-main/profile` | 1427 | 301 | 533 | 591 | — |
|
|
|
-| 12 | `pages/wealth/index` | 1425 | 267 | 568 | 532 | `scroll-view`, `newDate` |
|
|
|
-| 13 | `pages/tasks/tasks` | 1408 | 250 | 528 | 628 | — |
|
|
|
-| 14 | `pages/mind-detail/emotion-checkin` | 1390 | 200 | 612 | 577 | `newDate` |
|
|
|
-| 15 | `pages/activity/index` | 1386 | 315 | 641 | 428 | `scroll-view`, `newDate` |
|
|
|
-| 16 | `pages/discover-detail/product-detail/product-detail` | 1371 | 175 | 647 | 547 | `scroll-view` |
|
|
|
-| 17 | `pages/body-detail/index` | 1365 | 243 | 542 | 578 | `newDate` |
|
|
|
-| 18 | `pages/wisdom-detail/index` | 1354 | 240 | 591 | 521 | `newDate` |
|
|
|
-| 19 | `pages/action-detail/index` | 1343 | 257 | 606 | 478 | `newDate` |
|
|
|
-| 20 | `pages/profile-extra/family-members` | 1342 | 167 | 615 | 558 | — |
|
|
|
-| 21 | `pages/health/challenge-manage` | 1323 | 329 | 386 | 606 | `scroll-view`, `newDate` |
|
|
|
-| 22 | `pages/promotion/team` | 1183 | 212 | 496 | 473 | — |
|
|
|
-| 23 | `pages/activity/create` | 1100 | 208 | 546 | 344 | — |
|
|
|
-| 24 | `pages/growth-main/index` | 1089 | 283 | 263 | 542 | `newDate` |
|
|
|
-| 25 | `pages/wishes/index` | 1087 | 236 | 349 | 500 | `scroll-view` |
|
|
|
-| 26 | `pages/user-edit/user-edit` | 1080 | 262 | 479 | 337 | — |
|
|
|
-| 27 | `pages/mind-detail/family-dashboard` | 1060 | 161 | 511 | 386 | `scroll-view`, `newDate` |
|
|
|
-| 28 | `pages/tianpan/index` | 1060 | 162 | 535 | 362 | `newDate` |
|
|
|
-| 29 | `pages/wisdom-detail/cognitive-report` | 1026 | 170 | 178 | 675 | — |
|
|
|
-| 30 | `pages/health/report-list` | 995 | 151 | 410 | 432 | `scroll-view` |
|
|
|
-| 31 | `pages/promotion/index` | 991 | 187 | 292 | 510 | `scroll-view` |
|
|
|
-| 32 | `pages/body-detail/health-report` | 989 | 181 | 341 | 465 | — |
|
|
|
-| 33 | `pages/ai/chat` | 984 | 161 | 349 | 472 | `scroll-view`, `newDate` |
|
|
|
-| 34 | `pages/health/report-survey` | 930 | 462 | 302 | 164 | — |
|
|
|
-| 35 | `pages/wisdom-detail/self-quiz` | 923 | 134 | 331 | 456 | — |
|
|
|
-| 36 | `pages/mind-detail/emotion-trend` | 874 | 123 | 431 | 318 | `newDate` |
|
|
|
-| 37 | `pages/health/report-upload` | 867 | 137 | 339 | 389 | — |
|
|
|
-| 38 | `pages/dan-assessment/report-result` | 860 | 235 | 403 | 220 | — |
|
|
|
-| 39 | `pages/growth/sleep-checkin` | 856 | 157 | 306 | 391 | `scroll-view`, `newDate` |
|
|
|
-| 40 | `pages/profile/service-role-apply` | 848 | 129 | 313 | 404 | — |
|
|
|
-| 41 | `pages/membership/upgrade` | 844 | 101 | 220 | 521 | `scroll-view` |
|
|
|
-| 42 | `pages/family/self-check-result` | 831 | 151 | 174 | 504 | — |
|
|
|
-| 43 | `pages/shop/cart/cart` | 828 | 140 | 304 | 382 | `scroll-view` |
|
|
|
+| 1 | `pages/index-home/index` | 3062 | 423 | 1675 | 962 | `newDate` |
|
|
|
+| 2 | `pages/health/report-detail` | 2653 | 455 | 1135 | 1061 | `scroll-view` |
|
|
|
+| 3 | `pages/mind-detail/index` | 2600 | 258 | 1038 | 1303 | `newDate` |
|
|
|
+| 4 | `pages/home-pages/parent-index` | 2293 | 494 | 838 | 960 | `scroll-view`, `newDate` |
|
|
|
+| 5 | `pages/shop/checkout/checkout` | 2020 | 482 | 778 | 759 | `scroll-view` |
|
|
|
+| 6 | `pages/health/health-plan-summary` | 1912 | 229 | 1039 | 643 | `newDate` |
|
|
|
+| 7 | `pages/health/report-confirm` | 1840 | 356 | 598 | 884 | — |
|
|
|
+| 8 | `pages/activity/activity-detail/activity-detail` | 1767 | 333 | 732 | 700 | `scroll-view` |
|
|
|
+| 9 | `pages/health/gut-flora-detail` | 1585 | 371 | 764 | 448 | `scroll-view` |
|
|
|
+| 10 | `pages/home-pages/child-index` | 1485 | 316 | 605 | 563 | `scroll-view`, `newDate` |
|
|
|
+| 11 | `pages/profile-main/profile` | 1426 | 301 | 533 | 591 | — |
|
|
|
+| 12 | `pages/wealth/index` | 1424 | 267 | 568 | 532 | `scroll-view`, `newDate` |
|
|
|
+| 13 | `pages/tasks/tasks` | 1407 | 250 | 528 | 628 | — |
|
|
|
+| 14 | `pages/mind-detail/emotion-checkin` | 1389 | 200 | 612 | 577 | `newDate` |
|
|
|
+| 15 | `pages/activity/index` | 1385 | 315 | 641 | 428 | `scroll-view`, `newDate` |
|
|
|
+| 16 | `pages/discover-detail/product-detail/product-detail` | 1370 | 175 | 647 | 547 | `scroll-view` |
|
|
|
+| 17 | `pages/body-detail/index` | 1364 | 243 | 542 | 578 | `newDate` |
|
|
|
+| 18 | `pages/wisdom-detail/index` | 1353 | 240 | 591 | 521 | `newDate` |
|
|
|
+| 19 | `pages/action-detail/index` | 1342 | 257 | 606 | 478 | `newDate` |
|
|
|
+| 20 | `pages/profile-extra/family-members` | 1341 | 167 | 615 | 558 | — |
|
|
|
+| 21 | `pages/health/challenge-manage` | 1322 | 329 | 386 | 606 | `scroll-view`, `newDate` |
|
|
|
+| 22 | `pages/promotion/team` | 1182 | 212 | 496 | 473 | — |
|
|
|
+| 23 | `pages/activity/create` | 1099 | 208 | 546 | 344 | — |
|
|
|
+| 24 | `pages/growth-main/index` | 1088 | 283 | 263 | 542 | `newDate` |
|
|
|
+| 25 | `pages/wishes/index` | 1086 | 236 | 349 | 500 | `scroll-view` |
|
|
|
+| 26 | `pages/user-edit/user-edit` | 1079 | 262 | 479 | 337 | — |
|
|
|
+| 27 | `pages/mind-detail/family-dashboard` | 1059 | 161 | 511 | 386 | `scroll-view`, `newDate` |
|
|
|
+| 28 | `pages/tianpan/index` | 1059 | 162 | 535 | 362 | `newDate` |
|
|
|
+| 29 | `pages/wisdom-detail/cognitive-report` | 1025 | 170 | 178 | 675 | — |
|
|
|
+| 30 | `pages/health/report-list` | 994 | 151 | 410 | 432 | `scroll-view` |
|
|
|
+| 31 | `pages/promotion/index` | 990 | 187 | 292 | 510 | `scroll-view` |
|
|
|
+| 32 | `pages/body-detail/health-report` | 988 | 181 | 341 | 465 | — |
|
|
|
+| 33 | `pages/ai/chat` | 983 | 161 | 349 | 472 | `scroll-view`, `newDate` |
|
|
|
+| 34 | `pages/health/report-survey` | 929 | 462 | 302 | 164 | — |
|
|
|
+| 35 | `pages/wisdom-detail/self-quiz` | 922 | 134 | 331 | 456 | — |
|
|
|
+| 36 | `pages/mind-detail/emotion-trend` | 873 | 123 | 431 | 318 | `newDate` |
|
|
|
+| 37 | `pages/health/report-upload` | 866 | 137 | 339 | 389 | — |
|
|
|
+| 38 | `pages/dan-assessment/report-result` | 859 | 235 | 403 | 220 | — |
|
|
|
+| 39 | `pages/growth/sleep-checkin` | 855 | 157 | 306 | 391 | `scroll-view`, `newDate` |
|
|
|
+| 40 | `pages/profile/service-role-apply` | 847 | 129 | 313 | 404 | — |
|
|
|
+| 41 | `pages/membership/upgrade` | 843 | 101 | 220 | 521 | `scroll-view` |
|
|
|
+| 42 | `pages/family/self-check-result` | 830 | 151 | 174 | 504 | — |
|
|
|
+| 43 | `pages/shop/cart/cart` | 827 | 140 | 304 | 382 | `scroll-view` |
|
|
|
|
|
|
> **风险标记说明**:`scroll-view` = 含滚动联动或 `position:fixed` 需平级放置;`newDate` = 使用 `new Date(string)` 可能触 iOS 兼容问题;`optionalChain` / `keyExpr` = 无(全部合规)。
|
|
|
|
|
|
@@ -103,13 +101,13 @@
|
|
|
|
|
|
### 【P0】核心首页集群(登录态总览)
|
|
|
|
|
|
-#### 2.1 `pages/index-home/index`(3063 行)
|
|
|
+#### 2.1 `pages/index-home/index`(3062 行)
|
|
|
|
|
|
> 详见 §4 单独章节。
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.2 `pages/home-pages/parent-index`(2294 行)|家庭首页
|
|
|
+#### 2.2 `pages/home-pages/parent-index`(2293 行)|家庭首页
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -126,7 +124,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.3 `pages/home-pages/child-index`(1486 行)|孩子首页
|
|
|
+#### 2.3 `pages/home-pages/child-index`(1485 行)|孩子首页
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -141,7 +139,7 @@
|
|
|
|
|
|
### 【P1】健康报告集群(深度阅读)
|
|
|
|
|
|
-#### 2.4 `pages/health/report-detail`(2654 行)|报告详情页
|
|
|
+#### 2.4 `pages/health/report-detail`(2653 行)|报告详情页
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -155,7 +153,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.5 `pages/health/report-confirm`(1841 行)|报告确认页
|
|
|
+#### 2.5 `pages/health/report-confirm`(1840 行)|报告确认页
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -170,7 +168,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.6 `pages/health/health-plan-summary`(1913 行)|健康方案摘要
|
|
|
+#### 2.6 `pages/health/health-plan-summary`(1912 行)|健康方案摘要
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -184,7 +182,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.7 `pages/health/report-list`(995 行)|报告列表
|
|
|
+#### 2.7 `pages/health/report-list`(994 行)|报告列表
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -196,7 +194,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.8 `pages/health/report-upload`(867 行)|报告上传
|
|
|
+#### 2.8 `pages/health/report-upload`(866 行)|报告上传
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -208,7 +206,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.9 `pages/health/gut-flora-detail`(1586 行)|肠道菌群详情
|
|
|
+#### 2.9 `pages/health/gut-flora-detail`(1585 行)|肠道菌群详情
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -224,7 +222,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.10 `pages/health/challenge-manage`(1323 行)|挑战管理
|
|
|
+#### 2.10 `pages/health/challenge-manage`(1322 行)|挑战管理
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -239,7 +237,7 @@
|
|
|
|
|
|
### 【P2】维度详情集群(身/心/智/行/富)
|
|
|
|
|
|
-#### 2.11 `pages/mind-detail/index`(2601 行)|心智首页
|
|
|
+#### 2.11 `pages/mind-detail/index`(2600 行)|心智首页
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -253,7 +251,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.12 `pages/mind-detail/emotion-checkin`(1390 行)|情绪打卡
|
|
|
+#### 2.12 `pages/mind-detail/emotion-checkin`(1389 行)|情绪打卡
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -268,7 +266,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.13 `pages/mind-detail/emotion-trend`(874 行)|情绪趋势
|
|
|
+#### 2.13 `pages/mind-detail/emotion-trend`(873 行)|情绪趋势
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -281,7 +279,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.14 `pages/mind-detail/family-dashboard`(1060 行)|家庭天盘
|
|
|
+#### 2.14 `pages/mind-detail/family-dashboard`(1059 行)|家庭天盘
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -294,7 +292,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.15 `pages/body-detail/index`(1365 行)|身体首页
|
|
|
+#### 2.15 `pages/body-detail/index`(1364 行)|身体首页
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -308,7 +306,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.16 `pages/body-detail/health-report`(989 行)|身体报告
|
|
|
+#### 2.16 `pages/body-detail/health-report`(988 行)|身体报告
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -323,7 +321,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.17 `pages/wisdom-detail/index`(1354 行)|智慧首页
|
|
|
+#### 2.17 `pages/wisdom-detail/index`(1353 行)|智慧首页
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -338,7 +336,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.18 `pages/wisdom-detail/cognitive-report`(1026 行)|认知报告
|
|
|
+#### 2.18 `pages/wisdom-detail/cognitive-report`(1025 行)|认知报告
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -352,7 +350,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.19 `pages/wisdom-detail/self-quiz`(923 行)|自测题
|
|
|
+#### 2.19 `pages/wisdom-detail/self-quiz`(922 行)|自测题
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -363,7 +361,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.20 `pages/wealth/index`(1425 行)|财富首页
|
|
|
+#### 2.20 `pages/wealth/index`(1424 行)|财富首页
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -380,7 +378,7 @@
|
|
|
|
|
|
### 【P3】任务与成长集群
|
|
|
|
|
|
-#### 2.21 `pages/tasks/tasks`(1408 行)|任务列表
|
|
|
+#### 2.21 `pages/tasks/tasks`(1407 行)|任务列表
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -395,7 +393,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.22 `pages/growth-main/index`(1089 行)|成长记录首页
|
|
|
+#### 2.22 `pages/growth-main/index`(1088 行)|成长记录首页
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -410,7 +408,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.23 `pages/growth/sleep-checkin`(856 行)|睡眠打卡
|
|
|
+#### 2.23 `pages/growth/sleep-checkin`(855 行)|睡眠打卡
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -423,7 +421,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.24 `pages/wishes/index`(1087 行)|心愿管理
|
|
|
+#### 2.24 `pages/wishes/index`(1086 行)|心愿管理
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -438,7 +436,7 @@
|
|
|
|
|
|
### 【P4】社交与活动集群
|
|
|
|
|
|
-#### 2.25 `pages/activity/index`(1386 行)|活动中心
|
|
|
+#### 2.25 `pages/activity/index`(1385 行)|活动中心
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -451,7 +449,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.26 `pages/activity/activity-detail/activity-detail`(1768 行)|活动详情
|
|
|
+#### 2.26 `pages/activity/activity-detail/activity-detail`(1767 行)|活动详情
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -465,7 +463,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.27 `pages/activity/create`(1100 行)|创建活动
|
|
|
+#### 2.27 `pages/activity/create`(1099 行)|创建活动
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -479,7 +477,7 @@
|
|
|
|
|
|
### 【P5】商城与订单集群
|
|
|
|
|
|
-#### 2.28 `pages/shop/checkout/checkout`(2021 行)|结算页
|
|
|
+#### 2.28 `pages/shop/checkout/checkout`(2020 行)|结算页
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -494,7 +492,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.29 `pages/shop/cart/cart`(828 行)|购物车
|
|
|
+#### 2.29 `pages/shop/cart/cart`(827 行)|购物车
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -508,7 +506,7 @@
|
|
|
|
|
|
### 【P6】个人中心与设置集群
|
|
|
|
|
|
-#### 2.30 `pages/profile-main/profile`(1427 行)|个人中心
|
|
|
+#### 2.30 `pages/profile-main/profile`(1426 行)|个人中心
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -523,7 +521,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.31 `pages/profile-extra/family-members`(1342 行)|家庭成员管理
|
|
|
+#### 2.31 `pages/profile-extra/family-members`(1341 行)|家庭成员管理
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -537,7 +535,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.32 `pages/profile/service-role-apply`(848 行)|服务角色申请
|
|
|
+#### 2.32 `pages/profile/service-role-apply`(847 行)|服务角色申请
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -550,7 +548,7 @@
|
|
|
|
|
|
### 【P7】财富推广集群
|
|
|
|
|
|
-#### 2.33 `pages/promotion/index`(991 行)|推广首页
|
|
|
+#### 2.33 `pages/promotion/index`(990 行)|推广首页
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -564,7 +562,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.34 `pages/promotion/team`(1183 行)|团队管理
|
|
|
+#### 2.34 `pages/promotion/team`(1182 行)|团队管理
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -580,7 +578,7 @@
|
|
|
|
|
|
### 【P8】其他功能集群
|
|
|
|
|
|
-#### 2.35 `pages/user-edit/user-edit`(1080 行)|用户编辑
|
|
|
+#### 2.35 `pages/user-edit/user-edit`(1079 行)|用户编辑
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -591,7 +589,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.36 `pages/dan-assessment/report-result`(860 行)|DAN 测评结果
|
|
|
+#### 2.36 `pages/dan-assessment/report-result`(859 行)|DAN 测评结果
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -602,7 +600,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.37 `pages/membership/upgrade`(844 行)|会员升级
|
|
|
+#### 2.37 `pages/membership/upgrade`(843 行)|会员升级
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -616,7 +614,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.38 `pages/family/self-check-result`(831 行)|家庭自检结果
|
|
|
+#### 2.38 `pages/family/self-check-result`(830 行)|家庭自检结果
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -631,7 +629,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.39 `pages/discover-detail/product-detail/product-detail`(1371 行)|商品详情
|
|
|
+#### 2.39 `pages/discover-detail/product-detail/product-detail`(1370 行)|商品详情
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -645,7 +643,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.40 `pages/action-detail/index`(1343 行)|行动详情
|
|
|
+#### 2.40 `pages/action-detail/index`(1342 行)|行动详情
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -662,7 +660,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.41 `pages/ai/chat`(984 行)|AI 对话
|
|
|
+#### 2.41 `pages/ai/chat`(983 行)|AI 对话
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -675,7 +673,7 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-#### 2.42 `pages/health/report-survey`(930 行)|健康问卷
|
|
|
+#### 2.42 `pages/health/report-survey`(929 行)|健康问卷
|
|
|
|
|
|
| # | 区块 | 建议组件 | 落位 | Props | Events | 预估 | 风险 |
|
|
|
|---|------|----------|------|-------|--------|------|------|
|
|
|
@@ -713,11 +711,11 @@
|
|
|
|
|
|
---
|
|
|
|
|
|
-## 4. index-home 深度拆分方案(3063 行)
|
|
|
+## 4. index-home 深度拆分方案(3062 行)
|
|
|
|
|
|
### 4.1 现状诊断
|
|
|
|
|
|
-`index-home` 是目前最重的页面,3063 行,但**结构非常清晰**,模板注释已标明 9 大区块:
|
|
|
+`index-home` 是目前最重的页面,3062 行,但**结构非常清晰**,模板注释已标明 9 大区块:
|
|
|
|
|
|
| 区块 | 行号范围 | 行数 | 性质 | 拆分可行性 |
|
|
|
|------|----------|------|------|-----------|
|
|
|
@@ -766,7 +764,7 @@
|
|
|
| `ArticleFeedSection` | `pages/index-home/components/` | `articles[]` | `@tapArticle` | -80 |
|
|
|
| `LoginFooter` | `pages/index-home/components/` | — | `@tapLogin` | -40 |
|
|
|
|
|
|
-**阶段一后预估**:3063 - 800 = **2263 行**
|
|
|
+**阶段一后预估**:3062 - 800 = **2262 行**
|
|
|
|
|
|
#### 阶段二:样式局部化(预计 -400 行)
|
|
|
|
|
|
@@ -776,7 +774,7 @@
|
|
|
- 三步上手样式 → `HowItWorksSection.vue`
|
|
|
- 活动/文章列表样式 → 各自组件
|
|
|
|
|
|
-**阶段二后预估**:2263 - 400 = **1863 行**
|
|
|
+**阶段二后预估**:2262 - 400 = **1862 行**
|
|
|
|
|
|
#### 阶段三:脚本逻辑下沉(预计 -600 行)
|
|
|
|
|
|
@@ -788,7 +786,7 @@
|
|
|
|
|
|
父页面只保留数据加载逻辑(`loadLoggedInData()`, `loadUnloggedInData()` 等)。
|
|
|
|
|
|
-**阶段三后预估**:1863 - 600 = **1263 行**
|
|
|
+**阶段三后预估**:1862 - 600 = **1262 行**
|
|
|
|
|
|
#### 阶段四:组件复用优化(预计 -200 行)
|
|
|
|
|
|
@@ -804,7 +802,7 @@
|
|
|
|
|
|
若部分组件可进一步通用化(如 `ArticleBookshelf` 改为支持 `mode="home"`),可再减 -200 行。
|
|
|
|
|
|
-**最终预估**:**~1063 行**(仍超 800,但已降低 65%)
|
|
|
+**最终预估**:**~1062 行**(仍超 800,但已降低 65%)
|
|
|
|
|
|
### 4.3 风险与注意事项
|
|
|
|
|
|
@@ -836,27 +834,27 @@
|
|
|
|
|
|
| 优先级 | 页面 | 行数 | 改动频率 | 风险 | 建议 |
|
|
|
|--------|------|------|----------|------|------|
|
|
|
-| **P0(立即拆)** | `index-home/index` | 3063 | 高 | 中 | 分 4 阶段实施 |
|
|
|
-| **P0** | `home-pages/parent-index` | 2294 | 高 | 中 | 先拆 Banner + 成员选择条 |
|
|
|
-| **P0** | `mind-detail/index` | 2601 | 中 | 高 | 雷达图拆分需谨慎 |
|
|
|
-| **P1(近期拆)** | `health/report-detail` | 2654 | 高 | 中 | 指标明细行 + 弹窗 |
|
|
|
-| **P1** | `shop/checkout/checkout` | 2021 | 中 | 高 | 价格分解区 |
|
|
|
-| **P1** | `health/health-plan-summary` | 1913 | 中 | 高 | 问卷 + 签名区 |
|
|
|
-| **P1** | `health/report-confirm` | 1841 | 中 | 中 | 条件渲染区块 |
|
|
|
+| **P0(立即拆)** | `index-home/index` | 3062 | 高 | 中 | 分 4 阶段实施 |
|
|
|
+| **P0** | `home-pages/parent-index` | 2293 | 高 | 中 | 先拆 Banner + 成员选择条 |
|
|
|
+| **P0** | `mind-detail/index` | 2600 | 中 | 高 | 雷达图拆分需谨慎 |
|
|
|
+| **P1(近期拆)** | `health/report-detail` | 2653 | 高 | 中 | 指标明细行 + 弹窗 |
|
|
|
+| **P1** | `shop/checkout/checkout` | 2020 | 中 | 高 | 价格分解区 |
|
|
|
+| **P1** | `health/health-plan-summary` | 1912 | 中 | 高 | 问卷 + 签名区 |
|
|
|
+| **P1** | `health/report-confirm` | 1840 | 中 | 中 | 条件渲染区块 |
|
|
|
| **P1** | `activity/activity-detail` | 1768 | 中 | 高 | iOS fixed 弹窗 |
|
|
|
-| **P2(中期拆)** | `health/gut-flora-detail` | 1586 | 低 | 中 | 手风琴组件 |
|
|
|
-| **P2** | `home-pages/child-index` | 1486 | 中 | 中 | 推荐流 |
|
|
|
-| **P2** | `profile-main/profile` | 1427 | 中 | 低 | 成就统计 + 订单 |
|
|
|
-| **P2** | `wealth/index` | 1425 | 低 | 高 | Canvas 图表 |
|
|
|
-| **P2** | `tasks/tasks` | 1408 | 高 | 中 | 多 Tab 状态 |
|
|
|
-| **P2** | `mind-detail/emotion-checkin` | 1390 | 低 | 高 | Canvas 情绪轮 |
|
|
|
-| **P2** | `activity/index` | 1386 | 中 | 中 | 多 Tab 内容 |
|
|
|
+| **P2(中期拆)** | `health/gut-flora-detail` | 1585 | 低 | 中 | 手风琴组件 |
|
|
|
+| **P2** | `home-pages/child-index` | 1485 | 中 | 中 | 推荐流 |
|
|
|
+| **P2** | `profile-main/profile` | 1426 | 中 | 低 | 成就统计 + 订单 |
|
|
|
+| **P2** | `wealth/index` | 1424 | 低 | 高 | Canvas 图表 |
|
|
|
+| **P2** | `tasks/tasks` | 1407 | 高 | 中 | 多 Tab 状态 |
|
|
|
+| **P2** | `mind-detail/emotion-checkin` | 1389 | 低 | 高 | Canvas 情绪轮 |
|
|
|
+| **P2** | `activity/index` | 1385 | 中 | 中 | 多 Tab 内容 |
|
|
|
| **P2** | `discover-detail/product-detail` | 1371 | 中 | 高 | SKU 联动 |
|
|
|
-| **P2** | `body-detail/index` | 1365 | 低 | 高 | Canvas 雷达 |
|
|
|
-| **P2** | `wisdom-detail/index` | 1354 | 低 | 高 | Canvas 图表 |
|
|
|
-| **P2** | `action-detail/index` | 1343 | 低 | 中 | 关系解读 |
|
|
|
-| **P2** | `profile-extra/family-members` | 1342 | 中 | 高 | 多弹窗 |
|
|
|
-| **P2** | `health/challenge-manage` | 1323 | 低 | 中 | 表单弹窗 |
|
|
|
+| **P2** | `body-detail/index` | 1364 | 低 | 高 | Canvas 雷达 |
|
|
|
+| **P2** | `wisdom-detail/index` | 1353 | 低 | 高 | Canvas 图表 |
|
|
|
+| **P2** | `action-detail/index` | 1342 | 低 | 中 | 关系解读 |
|
|
|
+| **P2** | `profile-extra/family-members` | 1341 | 中 | 高 | 多弹窗 |
|
|
|
+| **P2** | `health/challenge-manage` | 1322 | 低 | 中 | 表单弹窗 |
|
|
|
| **P3(可暂缓)** | 其余 20+ 页 | <1200 | 低 | 低 | 视资源情况排期 |
|
|
|
|
|
|
### 5.3 暂缓建议
|
|
|
@@ -889,7 +887,7 @@
|
|
|
|
|
|
### 子任务 4:index-home 阶段四(组件复用确认)
|
|
|
- **目标**:确认现有组件可复用性,移除重复导入
|
|
|
-- **产出**:最终行数 ~1063 行
|
|
|
+- **产出**:最终行数 ~1062 行
|
|
|
- **验证**:性能测试(首屏加载时间)
|
|
|
|
|
|
### 子任务 5:parent-index 拆分
|