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

fix: 修复健康报告列表非菌群报告无法进入详情页

- report-list.vue: goToDetail 与 health-main 对齐,physical_exam/tongue/其他类型统一跳转通用详情页 report-detail(blocks 渲染支持任意类型)
- 原 tongue 分支指向废弃页 tongue-index(会重定向到上传页);未知类型分支路径 /pages/body/health-report 不存在导致 navigateTo 失败
- nutrition-profile.vue: 修正 /pages/body/health-report 错误路径为 /pages/body-detail/health-report
Xiaogang Liao 2 месяцев назад
Родитель
Сommit
e77289704d

+ 2 - 2
cfc-frontend/pages/health/nutrition-profile.vue

@@ -284,10 +284,10 @@ export default {
       uni.navigateBack()
     },
     goToReport: function(id) {
-      uni.navigateTo({ url: '/pages/body/health-report?reportId=' + id + '&memberId=' + this.memberId })
+      uni.navigateTo({ url: '/pages/body-detail/health-report?reportId=' + id + '&memberId=' + this.memberId })
     },
     goToIndicators: function() {
-      uni.navigateTo({ url: '/pages/body/health-report?memberId=' + this.memberId })
+      uni.navigateTo({ url: '/pages/body-detail/health-report?memberId=' + this.memberId })
     },
     goToAssessment: function() {
       uni.navigateTo({ url: '/pages/assessment/apply' })

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

@@ -134,12 +134,8 @@ export default {
 			url = '/pages/health/gut-flora-detail?reportId=' + reportId
 		} else if (reportType === 'dan') {
 			url = '/pages/dan-assessment/report-result?reportId=' + reportId
-		} else if (reportType === 'physical_exam') {
-			url = '/pages/health/physical-exam-detail?reportId=' + reportId
-		} else if (reportType === 'tongue') {
-			url = '/pages/health/tongue-index?reportId=' + reportId
 		} else {
-			url = '/pages/body/health-report?reportId=' + reportId
+			url = '/pages/health/report-detail?reportType=' + (reportType || 'gut_flora') + '&reportId=' + reportId
 		}
 		uni.navigateTo({ url: url })
 	},