12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <nav type="back" title="运动记录" background-color="#4F9AF7" front-color="#ffffff"></nav>
- <block wx:for="{{actData}}" wx:key="index">
- <view class="li" data-index="{{index}}" bind:tap="onOpen">
- <view class="left">
- <view class="top">
- <block wx:if="{{item.activity.objectId}}">
- <text>{{item.activity.title}}</text>
- </block>
- <block wx:else>
- <text>日常{{item.type=='run'?'跑步':'步行'}}</text>
- </block>
- <text>{{item.distance||0}} m</text>
- </view>
- <view class="under">
- <text>用时 {{item.sportDate||'未知'}}</text>
- <text>配速 {{item.matchSpeed||0}}</text>
- </view>
- </view>
- <view class="right">{{item.startDate||'未知'}}</view>
- </view>
- </block>
- <van-popup round position="bottom" show="{{ show }}" bind:close="onClose">
- <van-overlay show="{{ points.length<logCount }}" bind:click="onClickHide">
- <view style="width: 100%;height: 100%; z-index: 999;display: flex;justify-content: center;align-items: center;color: white;font-size: 30rpx;">
- 路线轨迹生成中... {{points.length||0}}/{{logCount}}
- </view>
- </van-overlay>
- <view style="padding: 20rpx;display: flex;justify-content: center;font-weight: bold;border-bottom: 1rpx solid whitesmoke;">运动详情</view>
- <view class="mapBox">
- <view style="border-radius: 10rpx;">
- <view class="li" style="border: none;" data-index="{{index}}" bind:tap="getActLog">
- <view class="left">
- <view class="top">
- <block wx:if="{{chickAct.activity.objectId}}">
- <text>{{chickAct.activity.title}}</text>
- </block>
- <block wx:else>
- <text>日常{{chickAct.type=='run'?'跑步':'步行'}}</text>
- </block>
- <text>{{chickAct.distance||0}} m</text>
- </view>
- <view class="under">
- <text>用时 {{chickAct.sportDate||'未知'}}</text>
- <text>配速 {{chickAct.matchSpeed||0}}</text>
- </view>
- </view>
- <view class="right">{{chickAct.startDate||'未知'}}</view>
- </view>
- </view>
- <block wx:if="{{polyline}}">
- <map class="map" scale="{{scale}}" latitude="{{latitude}}" longitude="{{longitude}}" polyline="{{polyline}}" markers="{{markers}}" />
- </block>
- </view>
- </van-popup>
|