Просмотр исходного кода

chore: auto bump version and changelog [skip ci]

iwt 1 месяц назад
Родитель
Сommit
143994c3af

+ 36 - 8
cfc-frontend/pages/health-main/index.vue

@@ -236,10 +236,14 @@
         </view>
         </view>
         <view v-if="reports.length > 0">
         <view v-if="reports.length > 0">
           <view class="report-card" v-for="(report, idx) in reports.slice(0, 3)" :key="idx" @click="goReportDetail(report)">
           <view class="report-card" v-for="(report, idx) in reports.slice(0, 3)" :key="idx" @click="goReportDetail(report)">
-            <text class="report-icon">📄</text>
+            <view class="report-type-badge" :class="'badge-' + _reportTypeClass(report.reportType)">{{ _reportTypeLabel(report.reportType) }}</view>
             <view class="report-info">
             <view class="report-info">
-              <text class="report-name">{{ report.title || '健康报告' }}</text>
-              <text class="report-status">{{ report.status === 'resolved' ? '已解析' : '待确认' }}</text>
+              <text class="report-name">{{ report.childName || report.personName || '健康报告' }}</text>
+              <text class="report-meta">{{ report.reportDate || '' }}{{ report.gutType ? ' · ' + report.gutType : '' }}</text>
+            </view>
+            <view class="report-score-wrap">
+              <text v-if="report.overallScore != null" class="report-score">{{ report.overallScore }}</text>
+              <text class="report-status" :class="'status-' + _statusClass(report.status)">{{ report.status === 'resolved' ? '已解析' : '待确认' }}</text>
             </view>
             </view>
             <text class="report-arrow">›</text>
             <text class="report-arrow">›</text>
           </view>
           </view>
@@ -373,7 +377,21 @@ export default {
       uni.navigateTo({ url: url })
       uni.navigateTo({ url: url })
     },
     },
     goReportDetail: function(report) {
     goReportDetail: function(report) {
-      uni.navigateTo({ url: '/pages/health/report-list' + (report && report.id ? '?reportId=' + report.id : '') })
+      if (!report || !report.id) return
+      var type = report.reportType || 'gut_flora'
+      var url = '/pages/health/report-detail?reportType=' + type + '&reportId=' + report.id
+      uni.navigateTo({ url: url })
+    },
+    _reportTypeLabel: function(type) {
+      var map = { gut_flora: '肠道', physical_exam: '体检', tongue: '舌诊', blood: '血液' }
+      return map[type] || '健康报告'
+    },
+    _reportTypeClass: function(type) {
+      var map = { gut_flora: 'gut', physical_exam: 'exam', tongue: 'tongue', blood: 'blood' }
+      return map[type] || 'default'
+    },
+    _statusClass: function(status) {
+      return status === 'resolved' ? 'resolved' : 'pending'
     },
     },
     goSelfTest: function() { uni.navigateTo({ url: '/pages/health/survey-questionnaire?dim=all' }) },
     goSelfTest: function() { uni.navigateTo({ url: '/pages/health/survey-questionnaire?dim=all' }) },
     goAiQuestionnaire: function() { uni.navigateTo({ url: '/pages/health/ai-questionnaire' }) },
     goAiQuestionnaire: function() { uni.navigateTo({ url: '/pages/health/ai-questionnaire' }) },
@@ -463,10 +481,20 @@ export default {
 .section-title { font-size: 28rpx; font-weight: bold; color: #333; }
 .section-title { font-size: 28rpx; font-weight: bold; color: #333; }
 .section-more { font-size: 24rpx; color: #F97316; }
 .section-more { font-size: 24rpx; color: #F97316; }
 .report-card { display: flex; align-items: center; background: #fff; border-radius: 16rpx; padding: 16rpx 20rpx; margin-bottom: 10rpx; }
 .report-card { display: flex; align-items: center; background: #fff; border-radius: 16rpx; padding: 16rpx 20rpx; margin-bottom: 10rpx; }
-.report-icon { font-size: 32rpx; margin-right: 16rpx; }
-.report-info { flex: 1; }
-.report-name { font-size: 24rpx; color: #333; display: block; margin-bottom: 4rpx; }
-.report-status { font-size: 20rpx; color: #999; }
+.report-type-badge { font-size: 20rpx; padding: 4rpx 12rpx; border-radius: 8rpx; margin-right: 12rpx; flex-shrink: 0; font-weight: 600; }
+.report-type-badge.badge-gut { background: rgba(249,115,22,0.12); color: #F97316; }
+.report-type-badge.badge-exam { background: rgba(99,102,241,0.12); color: #6366F1; }
+.report-type-badge.badge-tongue { background: rgba(16,185,129,0.12); color: #10B981; }
+.report-type-badge.badge-blood { background: rgba(239,68,68,0.12); color: #EF4444; }
+.report-type-badge.badge-default { background: rgba(107,114,128,0.12); color: #6B7280; }
+.report-info { flex: 1; min-width: 0; }
+.report-name { font-size: 26rpx; color: #333; font-weight: 600; display: block; margin-bottom: 4rpx; }
+.report-meta { font-size: 20rpx; color: #999; display: block; }
+.report-score-wrap { display: flex; flex-direction: column; align-items: flex-end; margin-right: 8rpx; flex-shrink: 0; }
+.report-score { font-size: 32rpx; font-weight: bold; color: #F97316; line-height: 1; }
+.report-status { font-size: 20rpx; margin-top: 4rpx; }
+.report-status.status-resolved { color: #10B981; }
+.report-status.status-pending { color: #F59E0B; }
 .report-arrow { font-size: 28rpx; color: #ccc; }
 .report-arrow { font-size: 28rpx; color: #ccc; }
 .empty-hint { text-align: center; padding: 30rpx 0; background: #fff; border-radius: 16rpx; }
 .empty-hint { text-align: center; padding: 30rpx 0; background: #fff; border-radius: 16rpx; }
 .empty-hint .empty-text { font-size: 26rpx; color: #999; display: block; }
 .empty-hint .empty-text { font-size: 26rpx; color: #999; display: block; }

+ 1 - 1
cfc-frontend/pages/health/report-list.vue

@@ -9,7 +9,7 @@
     <view class="report-list" v-else-if="reports.length > 0">
     <view class="report-list" v-else-if="reports.length > 0">
       <view
       <view
         class="report-card"
         class="report-card"
-        v-for="item in reports"
+        v-for="item in reports.slice(0, 3)"
         :key="item.id"
         :key="item.id"
         @click="goToDetail(item.id, item.reportType)"
         @click="goToDetail(item.id, item.reportType)"
       >
       >

+ 1 - 1
cfc-web/.last_build_commit

@@ -1 +1 @@
-aee87e6670f42cf2b0b06b8cadd55601527225f0
+c1540037e2875b09aedfc5ffd062d09f6fccd8a0

+ 2 - 2
cfc-web/package-lock.json

@@ -1,12 +1,12 @@
 {
 {
   "name": "cfc-web",
   "name": "cfc-web",
-  "version": "1.0.1055",
+  "version": "1.0.1056",
   "lockfileVersion": 3,
   "lockfileVersion": 3,
   "requires": true,
   "requires": true,
   "packages": {
   "packages": {
     "": {
     "": {
       "name": "cfc-web",
       "name": "cfc-web",
-      "version": "1.0.1055",
+      "version": "1.0.1056",
       "dependencies": {
       "dependencies": {
         "@wangeditor/editor": "^5.1.23",
         "@wangeditor/editor": "^5.1.23",
         "@wangeditor/editor-for-vue": "^1.0.2",
         "@wangeditor/editor-for-vue": "^1.0.2",

+ 1 - 1
cfc-web/package.json

@@ -1,6 +1,6 @@
 {
 {
   "name": "cfc-web",
   "name": "cfc-web",
-  "version": "1.0.1056",
+  "version": "1.0.1057",
   "private": true,
   "private": true,
   "scripts": {
   "scripts": {
     "dev": "vue-cli-service serve",
     "dev": "vue-cli-service serve",

+ 33 - 0
cfc-web/public/CHANGELOG-v1.0.md

@@ -4,6 +4,39 @@
 
 
 ---
 ---
 
 
+## v1.0.1057 (2026-08-15)
+
+### 新功能
+- 改版v1 C类前端 - 首页旅程集成(F1) + 分包注册
+- 改版v1 C类前端 - 问题流/通知共8页面(F4-F11)
+- 改版v1 C类前端 - 意图选择弹层(F2) + 旅程进度条(F3)
+- 改版v1 C类前端 - 接口封装(F13) + 会员任务角标(F12)
+
+### 其他
+- Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
+- Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
+- 
+- Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
+- Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
+- 
+- Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
+- Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
+- 
+- Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
+- Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
+- 
+- Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
+- Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
+- 
+- 1. getReportDetail 传参传了对象 {reportType, reportId},但函数签名只接受单个 reportId,导致后端 NumberFormatException
+- 2. blocks 取 self.report.blocks 但后端返回 blocks 在 res.data 层级,导致空数组显示'暂无报告内容'
+- 
+
+### Bug 修复
+- 改版v1 C类调研提交 - 修正旅程阶段映射(3→2)
+- report-detail.vue 修复传参错误导致400及blocks获取层级错误
+
+
 ## v1.0.1056 (2026-08-14)
 ## v1.0.1056 (2026-08-14)
 
 
 ### 新功能
 ### 新功能

+ 34 - 1
cfc-web/public/CHANGELOG.md

@@ -1,6 +1,6 @@
 # 更新日志
 # 更新日志
 
 
-> 当前版本: v1.0.1056
+> 当前版本: v1.0.1057
 
 
 ## 历史版本
 ## 历史版本
 
 
@@ -8,6 +8,39 @@
 
 
 ---
 ---
 
 
+## v1.0.1057 (2026-08-15)
+
+### 新功能
+- 改版v1 C类前端 - 首页旅程集成(F1) + 分包注册
+- 改版v1 C类前端 - 问题流/通知共8页面(F4-F11)
+- 改版v1 C类前端 - 意图选择弹层(F2) + 旅程进度条(F3)
+- 改版v1 C类前端 - 接口封装(F13) + 会员任务角标(F12)
+
+### 其他
+- Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
+- Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
+- 
+- Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
+- Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
+- 
+- Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
+- Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
+- 
+- Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
+- Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
+- 
+- Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
+- Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
+- 
+- 1. getReportDetail 传参传了对象 {reportType, reportId},但函数签名只接受单个 reportId,导致后端 NumberFormatException
+- 2. blocks 取 self.report.blocks 但后端返回 blocks 在 res.data 层级,导致空数组显示'暂无报告内容'
+- 
+
+### Bug 修复
+- 改版v1 C类调研提交 - 修正旅程阶段映射(3→2)
+- report-detail.vue 修复传参错误导致400及blocks获取层级错误
+
+
 ## v1.0.1056 (2026-08-14)
 ## v1.0.1056 (2026-08-14)
 
 
 ### 新功能
 ### 新功能