index.wxml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <nav type="back" title="运动记录" background-color="#4F9AF7" front-color="#ffffff"></nav>
  2. <block wx:for="{{actData}}" wx:key="index">
  3. <view class="li" data-index="{{index}}" bind:tap="onOpen">
  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>
  22. <van-popup round position="bottom" show="{{ show }}" bind:close="onClose">
  23. <van-overlay show="{{ points.length<logCount }}" bind:click="onClickHide">
  24. <view style="width: 100%;height: 100%; z-index: 999;display: flex;justify-content: center;align-items: center;color: white;font-size: 30rpx;">
  25. 路线轨迹生成中... {{points.length||0}}/{{logCount}}
  26. </view>
  27. </van-overlay>
  28. <view style="padding: 20rpx;display: flex;justify-content: center;font-weight: bold;border-bottom: 1rpx solid whitesmoke;">运动详情</view>
  29. <view class="mapBox">
  30. <view style="border-radius: 10rpx;">
  31. <view class="li" style="border: none;" data-index="{{index}}" bind:tap="getActLog">
  32. <view class="left">
  33. <view class="top">
  34. <block wx:if="{{chickAct.activity.objectId}}">
  35. <text>{{chickAct.activity.title}}</text>
  36. </block>
  37. <block wx:else>
  38. <text>日常{{chickAct.type=='run'?'跑步':'步行'}}</text>
  39. </block>
  40. <text>{{chickAct.distance||0}} m</text>
  41. </view>
  42. <view class="under">
  43. <text>用时 {{chickAct.sportDate||'未知'}}</text>
  44. <text>配速 {{chickAct.matchSpeed||0}}</text>
  45. </view>
  46. </view>
  47. <view class="right">{{chickAct.startDate||'未知'}}</view>
  48. </view>
  49. </view>
  50. <block wx:if="{{polyline}}">
  51. <map class="map" scale="{{scale}}" latitude="{{latitude}}" longitude="{{longitude}}" polyline="{{polyline}}" markers="{{markers}}" />
  52. </block>
  53. </view>
  54. </van-popup>