<wxs src="../../utils/filter.wxs" module="filters" />
<view class="pkBox">
  <videoPreview wx:if="{{videoInfo}}" videoInfo="{{videoInfo}}" currentId="{{currentId}}"
    data-id="{{videoInfo.userRead.id}}" currentTime="{{currentTime}}" sliderValue="{{sliderValue}}"
    bind:playVideo="playVideo" bind:playAudio="playAudio" bind:pkPageAudio="pkPageAudio" data-audio="{{audioPath}}"
    bind:setSeek="setSeek" bind:openComment="openComment" videoType='pk' />
  <!-- 挑战记录列表 -->
  <view class="pkRecord">
    <view class="title">挑战记录</view>
    <scroll-view scroll-y="true" class="scrollBox" enhanced="true" show-scrollbar="{{false}}"
      bindscrolltolower='loadMore'>
      <view class="record" wx:for="{{recordList}}" wx:key="id" bindtap="jumpUserInfo" data-uid='{{item.user.uid}}'>
        <view class="record-left">
          <image src="{{item.user.avatar}}" class="avatar" />
          <view class="rl-info">
            <view class="nickName">{{item.user.nickName||item.user.eid}}</view>
            <view class="time">{{filters.formatDate(item.userRead.gmtCreated,1)}}</view>
          </view>
        </view>
        <view class="record-right">
          <view class="score">
            {{item.userRead.score}}分
          </view>
          <image src="/static/play.png" class="play" mode="" />
        </view>
      </view>
    </scroll-view>
  </view>
  <view class="footer" wx:if="{{isShare}}">
    <view class="stBtn" bindtap="jumpIndex">前往首页</view>
  </view>
  <Comment id="comment" bind:addCommentNum="addCommentNum" />
  <canvas id='share' type="2d"> </canvas>
</view>