|
@@ -24,6 +24,10 @@
|
|
|
<text class="badge" v-if="report.gutAge">肠龄: {{ report.gutAge }}</text>
|
|
<text class="badge" v-if="report.gutAge">肠龄: {{ report.gutAge }}</text>
|
|
|
<text class="badge" v-if="report.gutType">肠型: {{ report.gutType }}</text>
|
|
<text class="badge" v-if="report.gutType">肠型: {{ report.gutType }}</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <!-- 报告解读 -->
|
|
|
|
|
+ <view class="interpretation-box" v-if="reportInterpretation && reportInterpretation.gutAgeAssessment">
|
|
|
|
|
+ <text class="interp-text">{{ reportInterpretation.gutAgeAssessment }}</text>
|
|
|
|
|
+ </view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
<!-- 评分圆环 -->
|
|
<!-- 评分圆环 -->
|
|
@@ -43,6 +47,16 @@
|
|
|
<text class="nav-label">菌群详情</text>
|
|
<text class="nav-label">菌群详情</text>
|
|
|
<text class="nav-count">{{ floraCount }}种</text>
|
|
<text class="nav-count">{{ floraCount }}种</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <view class="nav-card" @tap="goToPathogen">
|
|
|
|
|
+ <text class="nav-icon">🔬</text>
|
|
|
|
|
+ <text class="nav-label">病原菌</text>
|
|
|
|
|
+ <text class="nav-count">{{ pathogenCount }}项</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="nav-card" @tap="goToTaxonomy">
|
|
|
|
|
+ <text class="nav-icon">📊</text>
|
|
|
|
|
+ <text class="nav-label">菌群层级</text>
|
|
|
|
|
+ <text class="nav-count">5级</text>
|
|
|
|
|
+ </view>
|
|
|
<view class="nav-card" @tap="goToRisks">
|
|
<view class="nav-card" @tap="goToRisks">
|
|
|
<text class="nav-icon">⚠️</text>
|
|
<text class="nav-icon">⚠️</text>
|
|
|
<text class="nav-label">疾病风险</text>
|
|
<text class="nav-label">疾病风险</text>
|
|
@@ -170,6 +184,7 @@ export default {
|
|
|
reportId: null,
|
|
reportId: null,
|
|
|
reportData: null,
|
|
reportData: null,
|
|
|
report: {},
|
|
report: {},
|
|
|
|
|
+ reportInterpretation: null,
|
|
|
isEditing: false,
|
|
isEditing: false,
|
|
|
accordionOpen: { gut: false, nutri: false },
|
|
accordionOpen: { gut: false, nutri: false },
|
|
|
scoreItems: [],
|
|
scoreItems: [],
|
|
@@ -180,6 +195,7 @@ export default {
|
|
|
riskCount: 0,
|
|
riskCount: 0,
|
|
|
foodCount: 0,
|
|
foodCount: 0,
|
|
|
indicatorCount: 0,
|
|
indicatorCount: 0,
|
|
|
|
|
+ pathogenCount: 0,
|
|
|
knowledgeVisible: false,
|
|
knowledgeVisible: false,
|
|
|
knowledgeData: {},
|
|
knowledgeData: {},
|
|
|
feedbackVisible: false,
|
|
feedbackVisible: false,
|
|
@@ -200,12 +216,18 @@ export default {
|
|
|
if (res.code === 200 && res.data) {
|
|
if (res.code === 200 && res.data) {
|
|
|
self.reportData = res.data
|
|
self.reportData = res.data
|
|
|
self.report = res.data.report || res.data
|
|
self.report = res.data.report || res.data
|
|
|
|
|
+ self.reportInterpretation = res.data.reportInterpretation || null
|
|
|
self.buildScores(res.data)
|
|
self.buildScores(res.data)
|
|
|
self.buildIndicators(res.data)
|
|
self.buildIndicators(res.data)
|
|
|
self.floraCount = (res.data.gutFlora || []).length
|
|
self.floraCount = (res.data.gutFlora || []).length
|
|
|
self.riskCount = (res.data.diseaseRisks || []).length
|
|
self.riskCount = (res.data.diseaseRisks || []).length
|
|
|
self.foodCount = (res.data.foods || []).length
|
|
self.foodCount = (res.data.foods || []).length
|
|
|
self.indicatorCount = (res.data.indicators || []).length
|
|
self.indicatorCount = (res.data.indicators || []).length
|
|
|
|
|
+ // 计算病原菌总数
|
|
|
|
|
+ var flora = res.data.gutFlora || []
|
|
|
|
|
+ self.pathogenCount = flora.filter(function(i) {
|
|
|
|
|
+ return i.category === 'pathogen_genus' || i.category === 'pathogen_detection'
|
|
|
|
|
+ }).length
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
@@ -319,6 +341,12 @@ export default {
|
|
|
goToSpecies: function() {
|
|
goToSpecies: function() {
|
|
|
uni.navigateTo({ url: '/pages/health/gut-flora-species-detail?reportId=' + this.reportId })
|
|
uni.navigateTo({ url: '/pages/health/gut-flora-species-detail?reportId=' + this.reportId })
|
|
|
},
|
|
},
|
|
|
|
|
+ goToPathogen: function() {
|
|
|
|
|
+ uni.navigateTo({ url: '/pages/health/gut-flora-species-detail?reportId=' + this.reportId + '&tab=pathogen_genus' })
|
|
|
|
|
+ },
|
|
|
|
|
+ goToTaxonomy: function() {
|
|
|
|
|
+ uni.navigateTo({ url: '/pages/health/gut-flora-species-detail?reportId=' + this.reportId + '&tab=taxonomy_class' })
|
|
|
|
|
+ },
|
|
|
goToRisks: function() {
|
|
goToRisks: function() {
|
|
|
uni.navigateTo({ url: '/pages/health/gut-flora-risks-detail?reportId=' + this.reportId })
|
|
uni.navigateTo({ url: '/pages/health/gut-flora-risks-detail?reportId=' + this.reportId })
|
|
|
},
|
|
},
|
|
@@ -409,4 +437,18 @@ export default {
|
|
|
.feedback-arrow { font-size: 28rpx; color: #ccc; }
|
|
.feedback-arrow { font-size: 28rpx; color: #ccc; }
|
|
|
|
|
|
|
|
.bottom-spacer { height: 40rpx; }
|
|
.bottom-spacer { height: 40rpx; }
|
|
|
|
|
+
|
|
|
|
|
+/* 报告解读 */
|
|
|
|
|
+.interpretation-box {
|
|
|
|
|
+ background: #FFF8E1;
|
|
|
|
|
+ border-radius: 12rpx;
|
|
|
|
|
+ padding: 16rpx 20rpx;
|
|
|
|
|
+ margin: 16rpx 0 0;
|
|
|
|
|
+ border-left: 6rpx solid #FFB300;
|
|
|
|
|
+}
|
|
|
|
|
+.interp-text {
|
|
|
|
|
+ font-size: 24rpx;
|
|
|
|
|
+ color: #795548;
|
|
|
|
|
+ line-height: 1.6;
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|