index.wxml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <wxs src="../../utils/filter.wxs" module="filters" />
  2. <view class="pkResult">
  3. <view class="body {{win?'body-win':equal?'body-equal':'body-lose'}}">
  4. <image src="https://reader-wx.ai160.com/images/reader/v3/biu.gif" class="celebrate" wx:if="{{win||equal}}"/>
  5. <view class="userBox left">
  6. <image src="{{victory.user.avatar}}" class="avatar avatarL" />
  7. <view class="bodyTitle textOver">{{victory.user.nickName||victory.user.eid}}</view>
  8. <view class="bodyScore" wx:if="{{victory.userReadExtend.businessType!=2}}">{{victory.userRead.score}}分
  9. </view>
  10. <view class="duration">
  11. <image src="{{vState?'/static/play-big2.png':'/static/play-big.png'}}" class="bodyPlay"
  12. bindtap="playAudio" data-type="victory" />
  13. <view class="time">{{vStart}}/{{vEnd}}</view>
  14. </view>
  15. </view>
  16. <view class="userBox right">
  17. <image src="{{defeated.user.avatar}}" class="avatar avatarL" />
  18. <view class="bodyTitle textOver">{{defeated.user.nickName||defeated.user.eid}}</view>
  19. <view class="bodyScore" wx:if="{{victory.userReadExtend.businessType!=2}}">{{defeated.userRead.score}}分
  20. </view>
  21. <view class="duration">
  22. <image src="{{dState?'/static/play-big2.png':'/static/play-big.png'}}" class="bodyPlay"
  23. bindtap="playAudio" data-type="defeated" />
  24. <view class="time">{{dStart}}/{{dEnd}}</view>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="footer" wx:if="{{!isplayback}}">
  29. <view class="stBtn" bindtap="result" data-type="reading">
  30. <image src="/static/pr1.png" class="imgBtn" />
  31. <view class="text">重新挑战</view>
  32. </view>
  33. <button class="resetBtn stBtn" open-type="share">
  34. <image src="/static/pr2.png" class="imgBtn" />
  35. <view class="text" style="color: #AC2A00;">炫耀一下</view>
  36. </button>
  37. </view>
  38. <view class="footer" wx:else>
  39. <view class="stBtn" bindtap="result" data-type="wantPlay">
  40. <image src="/static/pr1.png" class="imgBtn" />
  41. <view class="text">我也要玩</view>
  42. </view>
  43. <view class="stBtn" bindtap="result" data-type="index">
  44. <image src="/static/pr2.png" class="imgBtn" />
  45. <view class="text">回到首页</view>
  46. </view>
  47. </view>
  48. </view>
  49. <canvas id='share' type="2d"> </canvas>