2025-06-06 15:17:30 +08:00

46 lines
1.8 KiB
Plaintext

<!--subpackage/parent/history-train/history-train.wxml-->
<view class="page-content">
<mp-bar background="linear-gradient(190deg, #49a5fc 0%, #f7f7f7 800rpx, #f7f7f7 100%)" title="记录" color="#fff"></mp-bar>
<view class="tab">
<view class="tab-l">
<view class="tab-l-content">
<view class="tab-left-box box-active"></view>
训练记录
</view>
</view>
<!-- <view class="tab-r">
<view class="tab-r-content">
</view>
</view> -->
</view>
<view class="card card3">
<view wx:if="{{sportList.length> 0}}">
<view class="sport" wx:for="{{sportList}}" wx:key="index">
<view class="top">
<view class="title">{{item.workModeTypeName}}-{{item.workTypeName}}</view>
<view class="time">{{item.endTime}}</view>
</view>
<view class="bottom">
<view class="bottom-item">
<image src="https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/train/jishi-icon.png" class="stat-img" />
{{item.workModeTypeName == '定时计数' ? item.duration * item.groupNumber : item.duration}}秒
</view>
<view class="bottom-item">
<image src="https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/train/geshu-icon.png" class="stat-img" />
{{item.workModeTypeName == '定数计时' ? item.amount * item.groupNumber : item.amount}}个
</view>
<view class="bottom-item" >
<image src="https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/team/kacl.png" class="stat-img" />
消耗:{{item.calorie}}kacl
</view>
</view>
</view>
</view>
<view wx:else class="no">
暂无运动记录,快去训练吧~</view>
</view>
</view>