index.wxml 717 B

12345678910111213141516171819202122
  1. <nav type="back" title="运动记录" background-color="#4F9AF7" front-color="#ffffff"></nav>
  2. <block wx:for="{{actData}}" wx:key="index">
  3. <view class="li">
  4. <view class="left">
  5. <view class="top">
  6. <block wx:if="{{item.activity.objectId}}">
  7. <text>{{item.activity.title}}</text>
  8. </block>
  9. <block wx:else>
  10. <text>日常{{item.type=='run'?'跑步':'步行'}}</text>
  11. </block>
  12. <text>{{item.distance||0}} m</text>
  13. </view>
  14. <view class="under">
  15. <text>用时 {{item.sportDate||'未知'}}</text>
  16. <text>配速 {{item.matchSpeed||0}}</text>
  17. </view>
  18. </view>
  19. <view class="right">{{item.startDate||'未知'}}</view>
  20. </view>
  21. </block>