index copy.wxml 2.3 KB

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