feat(data): 体重差值按 weightDiff/weightTrend 动态渲染并区分增减颜色
- 差值图标与数值改用后端 weightDiff/weightTrend - 首次测量/持平不显示差值块 - 增加红色、减少绿色 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
e0f201f15c
commit
8284bf107b
@@ -73,12 +73,14 @@
|
||||
<view class="list-examTime">{{ item.examTime }}</view>
|
||||
<view class="list-weight arrow">
|
||||
<view>{{ item.weight }}<text>kg</text></view>
|
||||
<view>
|
||||
<view>
|
||||
<image src="/images/data/sub.png" mode="aspectFit" />
|
||||
<block wx:if="{{ item.weightTrend === 1 || item.weightTrend === -1 }}">
|
||||
<view class="{{ item.weightTrend === 1 ? 'diff-up' : '' }}">
|
||||
<view>
|
||||
<image src="{{ item.weightTrend === 1 ? '/images/data/add.png' : '/images/data/sub.png' }}" mode="aspectFit" />
|
||||
</view>
|
||||
<view>{{ item.weightDiff }}</view>
|
||||
</view>
|
||||
<view>0.3</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="list-bmi">
|
||||
<view>
|
||||
|
||||
Reference in New Issue
Block a user