index.wxml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <wxs src="../../utils/filter.wxs" module="filters" />
  2. <view class="pkResult">
  3. <view class="title">{{victory.userRead.title}}</view>
  4. <view class="time">{{filters.formatDate(pkRecord.gmtCreated,1)}}</view>
  5. <view class="body">
  6. <view class="left {{equal?'equal':''}}">
  7. <image src="{{victory.user.avatar}}" class="avatar avatarL" />
  8. <view class="bodyTitle textOver">{{victory.user.nickName||victory.user.eid}}</view>
  9. <view class="bodyScore">{{victory.userRead.score}}分</view>
  10. <image src="{{vState?'/static/work.png':'/static/play-big.png'}}" class="bodyPlay" bindtap="playAudio"
  11. data-type="victory" />
  12. <progress percent="{{vProgress}}" stroke-width="4" class="progress" style="margin-right:48rpx;" />
  13. <view class="duration">
  14. <view class="start">{{vStart}}</view>
  15. <view class="end">{{vEnd}}</view>
  16. </view>
  17. </view>
  18. <view class="right {{equal?'equalRight':''}}">
  19. <image src="{{defeated.user.avatar}}" class="avatar avatarR" />
  20. <view class="bodyTitle textOver">{{defeated.user.nickName||defeated.user.eid}}</view>
  21. <view class="bodyScore">{{defeated.userRead.score}}分</view>
  22. <image src="{{dState?'/static/work.png':'/static/play-big.png'}}" class="bodyPlay" bindtap="playAudio"
  23. data-type="defeated" />
  24. <progress percent="{{dProgress}}" stroke-width="4" class="progress" />
  25. <view class="duration">
  26. <view class="start">{{dStart}}</view>
  27. <view class="end">{{dEnd}}</view>
  28. </view>
  29. </view>
  30. </view>
  31. <view class="footer" wx:if="{{!isplayback}}">
  32. <view class="stBtn" bindtap="result" data-type="reading">重新挑战</view>
  33. <button class="resetBtn btn" open-type="share">
  34. 分享战绩
  35. </button>
  36. </view>
  37. <view class="footer" wx:else>
  38. <view class="stBtn" bindtap="result" data-type="wantPlay">我也要玩</view>
  39. <view class="btn" bindtap="result" data-type="index">回到首页</view>
  40. </view>
  41. </view>
  42. <canvas id='share' type="2d"> </canvas>