|
|
@@ -81,12 +81,12 @@
|
|
|
v-for="(ind, i) in group.items"
|
|
|
:key="i"
|
|
|
class="gut-item"
|
|
|
- :class="{ 'gut-abnormal': ind.status === '偏高' || ind.status === '偏低' }"
|
|
|
+ :class="{ 'gut-abnormal': ind.status === 'high' || ind.status === 'low' }"
|
|
|
>
|
|
|
<text class="gut-item-name">{{ ind.name }}</text>
|
|
|
<view class="gut-item-right">
|
|
|
<text class="gut-item-value" v-if="ind.value">{{ ind.value }}</text>
|
|
|
- <text class="gut-item-status" :class="'status-' + (ind.status || 'normal')">{{ ind.status || '正常' }}</text>
|
|
|
+ <text class="gut-item-status" :class="'status-' + (ind.status || 'normal')">{{ ind.status === 'high' ? '偏高' : ind.status === 'low' ? '偏低' : (ind.status || '正常') }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -114,7 +114,7 @@
|
|
|
<text class="risk-name">{{ risk.name }}</text>
|
|
|
<view class="risk-right">
|
|
|
<text class="risk-value" v-if="risk.value">{{ risk.value }}</text>
|
|
|
- <text class="risk-level">{{ risk.level || '未知' }}</text>
|
|
|
+ <text class="risk-level">{{ risk.level === 'severe' ? '高风险' : risk.level === 'attention' ? '需注意' : (risk.level || '未知') }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -266,7 +266,7 @@ export default {
|
|
|
},
|
|
|
gutSummary: function() {
|
|
|
if (!this.gutFloraIndicators.length) return ''
|
|
|
- var abnormal = this.gutFloraIndicators.filter(function(i) { return i.status === '偏高' || i.status === '偏低' }).length
|
|
|
+ var abnormal = this.gutFloraIndicators.filter(function(i) { return i.status === 'high' || i.status === 'low' }).length
|
|
|
if (abnormal === 0) return '菌群整体平衡良好'
|
|
|
if (abnormal <= 2) return '部分菌群指标略有波动'
|
|
|
return '多项菌群指标异常,建议咨询专业营养师'
|
|
|
@@ -670,8 +670,8 @@ export default {
|
|
|
.gut-item-right { display: flex; align-items: center; gap: 12rpx; }
|
|
|
.gut-item-value { font-size: 26rpx; color: #666; }
|
|
|
.gut-item-status { font-size: 22rpx; padding: 4rpx 12rpx; border-radius: 20rpx; }
|
|
|
-.gut-item-status.status-偏高 { background: #FEE2E2; color: #DC2626; }
|
|
|
-.gut-item-status.status-偏低 { background: #FEF3C7; color: #D97706; }
|
|
|
+.gut-item-status.status-high { background: #FEE2E2; color: #DC2626; }
|
|
|
+.gut-item-status.status-low { background: #FEF3C7; color: #D97706; }
|
|
|
.gut-item-status.status-normal { background: #D1FAE5; color: #059669; }
|
|
|
.gut-empty-hint { text-align: center; padding: 30rpx; color: #999; font-size: 26rpx; background: #fff; border-radius: 16rpx; margin-bottom: 16rpx; }
|
|
|
.gut-upload-link { color: #3B82F6; margin-left: 8rpx; }
|
|
|
@@ -681,14 +681,14 @@ export default {
|
|
|
.risk-list { background: #fff; border-radius: 16rpx; padding: 8rpx 0; box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.06); }
|
|
|
.risk-item { display: flex; align-items: center; justify-content: space-between; padding: 20rpx 24rpx; border-bottom: 1rpx solid #F3F4F6; }
|
|
|
.risk-item:last-child { border-bottom: none; }
|
|
|
-.risk-item.risk-高风险 { background: #FEF2F2; }
|
|
|
-.risk-item.risk-需注意 { background: #FFFBEB; }
|
|
|
+.risk-item.risk-severe { background: #FEF2F2; }
|
|
|
+.risk-item.risk-attention { background: #FFFBEB; }
|
|
|
.risk-name { font-size: 28rpx; font-weight: 500; color: #333; flex: 1; }
|
|
|
.risk-right { display: flex; align-items: center; gap: 12rpx; }
|
|
|
.risk-value { font-size: 24rpx; color: #666; }
|
|
|
.risk-level { font-size: 22rpx; padding: 4rpx 12rpx; border-radius: 20rpx; }
|
|
|
-.risk-level.高风险 { background: #FEE2E2; color: #DC2626; }
|
|
|
-.risk-level.需注意 { background: #FEF3C7; color: #D97706; }
|
|
|
+.risk-level.risk-severe { background: #FEE2E2; color: #DC2626; }
|
|
|
+.risk-level.risk-attention { background: #FEF3C7; color: #D97706; }
|
|
|
|
|
|
.bottom-spacer {
|
|
|
height: 120rpx;
|