feat(detailedReport): 完善详细报告指标数据与卡片结构
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
92b395b8bd
commit
01bbcdecaf
@@ -35,41 +35,65 @@
|
||||
</view>
|
||||
|
||||
<!-- 基础指标 -->
|
||||
<view class="card">
|
||||
<view class="card-title">
|
||||
<view class="title-bar"></view>
|
||||
<view class="title-text">基础指标</view>
|
||||
<view class="basicIndicators">
|
||||
<view class="basicIndicatorsTitle">
|
||||
<view class="basicIndicatorsBar"></view>
|
||||
<view class="basicIndicatorsTitleText">基础指标</view>
|
||||
</view>
|
||||
<view class="basic-grid">
|
||||
<block wx:for="{{ basic.rows }}" wx:key="index" wx:for-item="row">
|
||||
<view class="basic-row">
|
||||
<block wx:for="{{ row }}" wx:key="label" wx:for-item="cell">
|
||||
<view class="basic-cell">
|
||||
<view class="basic-label">{{ cell.label }}</view>
|
||||
<view class="basic-value-row">
|
||||
<view class="basic-value">{{ cell.value }}</view>
|
||||
<view class="basic-unit" wx:if="{{ cell.unit }}">{{ cell.unit }}</view>
|
||||
<view class="basic-tag" wx:if="{{ cell.tag }}">{{ cell.tag }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<view class="basicIndicatorsGrid">
|
||||
<view class="basicIndicatorsRow">
|
||||
<view class="basicIndicatorsCell">
|
||||
<view class="basicIndicatorsLabel">体重</view>
|
||||
<view class="basicIndicatorsValueRow">
|
||||
<view class="basicIndicatorsValue">172</view>
|
||||
<view class="basicIndicatorsUnit">kg</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="basicIndicatorsCell">
|
||||
<view class="basicIndicatorsLabel">BMI</view>
|
||||
<view class="basicIndicatorsValueRow">
|
||||
<view class="basicIndicatorsValue">22.4</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="basicIndicatorsCell">
|
||||
<view class="basicIndicatorsLabel">体脂率</view>
|
||||
<view class="basicIndicatorsValueRow">
|
||||
<view class="basicIndicatorsValue">22.1</view>
|
||||
<view class="basicIndicatorsUnit">%</view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="bmi-scale">
|
||||
<view class="scale-track">
|
||||
<view class="scale-block scale-block--low"></view>
|
||||
<view class="scale-block scale-block--normal"></view>
|
||||
<view class="scale-block scale-block--over"></view>
|
||||
<view class="scale-block scale-block--obese"></view>
|
||||
</view>
|
||||
<view class="scale-row">
|
||||
<view class="basicIndicatorsRow">
|
||||
<view class="basicIndicatorsCell">
|
||||
<view class="basicIndicatorsLabel">身体得分</view>
|
||||
<view class="basicIndicatorsValueRow">
|
||||
<view class="basicIndicatorsValue">73</view>
|
||||
<view class="basicIndicatorsUnit">分</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="basicIndicatorsCell">
|
||||
<view class="basicIndicatorsLabel">健康评估</view>
|
||||
<view class="basicIndicatorsValueRow">
|
||||
<view class="basicIndicatorsValue">一般</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="basicIndicatorsCell"></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="basicIndicatorsScale">
|
||||
<view class="basicIndicatorsTrack">
|
||||
<view class="basicIndicatorsBlock basicIndicatorsBlock--low"></view>
|
||||
<view class="basicIndicatorsBlock basicIndicatorsBlock--normal"></view>
|
||||
<view class="basicIndicatorsBlock basicIndicatorsBlock--over"></view>
|
||||
<view class="basicIndicatorsBlock basicIndicatorsBlock--obese"></view>
|
||||
</view>
|
||||
<view class="basicIndicatorsScaleRow">
|
||||
<view>消瘦</view>
|
||||
<view>正常</view>
|
||||
<view>超重</view>
|
||||
<view>肥胖</view>
|
||||
</view>
|
||||
<view class="scale-row scale-row--range">
|
||||
<view class="basicIndicatorsScaleRow basicIndicatorsScaleRow--range">
|
||||
<view>BMI<18.5</view>
|
||||
<view>18.5≤BMI<24</view>
|
||||
<view>24≤BMI<28</view>
|
||||
@@ -78,38 +102,6 @@
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 指标卡片 -->
|
||||
<block wx:for="{{ sections }}" wx:key="title" wx:for-item="section">
|
||||
<view class="card">
|
||||
<view class="card-title">
|
||||
<view class="title-bar"></view>
|
||||
<view class="title-text">{{ section.title }}</view>
|
||||
</view>
|
||||
<block wx:for="{{ section.items }}" wx:key="label" wx:for-item="item">
|
||||
<view class="metric-row">
|
||||
<view class="metric-label">{{ item.label }}</view>
|
||||
<view class="metric-value">{{ item.value }}</view>
|
||||
<view class="metric-status metric-status--{{ item.statusClass }}">{{ item.status }}</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</block>
|
||||
|
||||
<!-- 躯干/四肢 -->
|
||||
<block wx:for="{{ limbSections }}" wx:key="title" wx:for-item="section">
|
||||
<view class="card">
|
||||
<view class="card-title">
|
||||
<view class="title-bar"></view>
|
||||
<view class="title-text">{{ section.title }}</view>
|
||||
</view>
|
||||
<block wx:for="{{ section.items }}" wx:key="label" wx:for-item="item">
|
||||
<view class="metric-row">
|
||||
<view class="metric-label">{{ item.label }}</view>
|
||||
<view class="metric-value">{{ item.value }}</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
|
||||
Reference in New Issue
Block a user