index.wxml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <view class="readingBox">
  2. <block wx:if="{{!videoInfo.userReadExtend||videoInfo.userReadExtend.resourcesType==0}}">
  3. <image src="{{videoInfo.userRead.coverImg}}" class='poster' wx:if="{{!state&&!exampleState}}" bindtap="videoPlay" />
  4. <video id="myVideo" src="{{state?videoInfo.userRead.originVideo:videoInfo.userRead.videoPath}}" bindended='videoEnd'
  5. show-center-play-btn="{{readingReset}}" controls="{{!state&&!readingReset}}" muted="{{muted}}"></video>
  6. <!-- 这个用于预加载资源 -->
  7. <video src="{{videoInfo.userRead.originVideo}}" style="display: none;"></video>
  8. </block>
  9. <view class=" audio" wx:else>
  10. <image src="{{videoInfo.userRead.coverImg}}" class="audioBg" mode="" />
  11. <view class="mask"></view>
  12. <view class="audioPlay" style="background-image: url({{videoInfo.userReadExtend.backgroundVirtualImg}});">
  13. <image src="/static/audioBg.png" class="audioPlayBg {{state?'circle':''}}" />
  14. <image src="/static/zhen.png" class="audioPlayZhen" />
  15. <image src="{{videoInfo.userRead.coverImg}}" bindtap='videoPlay' class="cover {{state||exampleState?'circle':''}}"
  16. mode="" />
  17. </view>
  18. </view>
  19. <view class="contentBox" wx:if="{{!readingReset}}">
  20. <view class="articleMask"></view>
  21. <scroll-view class="content" scroll-y enhanced show-scrollbar="{{false}}" scroll-top="{{scrollTop}}"
  22. scroll-with-animation>
  23. <view style="height: 100rpx;"></view>
  24. <view class="row {{currentRow==index?'currentRow':''}}" wx:for="{{article}}" wx:key="id">{{item.text}}
  25. </view>
  26. <view style="height: {{contentH}}rpx;"></view>
  27. </scroll-view>
  28. </view>
  29. <view class="scoreBoxC" wx:elif="{{readingReset}}">
  30. <view class="scoreBox">
  31. <!-- 星星区域 -->
  32. <view class="lightBox">
  33. <image src="/static/{{readDetail.myOverall>=10?'stars-1.png':'stars-2.png'}}" class="stars stars-1" mode="" />
  34. <image src="/static/{{readDetail.myOverall>=30?'stars-1.png':'stars-2.png'}}" class="stars stars-2" mode="" />
  35. <image src="/static/{{readDetail.myOverall>=50?'stars-1.png':'stars-2.png'}}" class="stars stars-3" mode="" />
  36. <image src="/static/{{readDetail.myOverall>=70?'stars-1.png':'stars-2.png'}}" class="stars stars-4" mode="" />
  37. <image src="/static/{{readDetail.myOverall>=90?'stars-1.png':'stars-2.png'}}" class="stars stars-5" mode="" />
  38. <image src="/static/light.png" class="light" mode="" />
  39. </view>
  40. <!-- 主体得分区域 -->
  41. <view class="score">
  42. <view class="avatarBox">
  43. <image src="{{userInfo.avatar}}" class="avatar" mode="" />
  44. </view>
  45. <view class="nickName">
  46. {{userInfo.nickName||userInfo.eid}}
  47. </view>
  48. <view class="totalScore">
  49. <text>综合得分:</text>
  50. <text class="num">{{readDetail.myOverall}}</text>
  51. </view>
  52. <view class="progressBox">
  53. <view class="row">
  54. <view class="name">完整度</view>
  55. <progress class="progress" active percent='{{readDetail.integrity}}' stroke-width="18"
  56. activeColor="#70D9FF" />
  57. <view class="scoreInfo">
  58. {{readDetail.integrity}}/100
  59. </view>
  60. </view>
  61. <view class="row">
  62. <view class="name">正确率</view>
  63. <progress class="progress" active percent='{{readDetail.accuracy}}' stroke-width="18"
  64. activeColor="#918EFD" />
  65. <view class="scoreInfo">
  66. {{readDetail.accuracy}}/100
  67. </view>
  68. </view>
  69. <view class="row">
  70. <view class="name">流利度</view>
  71. <progress class="progress" active percent='{{readDetail.fluency}}' stroke-width="18"
  72. activeColor="#FE9500" />
  73. <view class="scoreInfo">
  74. {{readDetail.fluency}}/100
  75. </view>
  76. </view>
  77. <view class="row">
  78. <view class="name">语调</view>
  79. <progress class="progress" active percent='{{readDetail.tone}}' stroke-width="18" activeColor="#9BE74B " />
  80. <view class="scoreInfo">
  81. {{readDetail.tone}}/100
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. <view class="controller">
  89. <image wx:if="{{state}}" src="/static/readingNow.gif" class="readingNow" bindtap="setCountDown" />
  90. <image wx:else src="/static/work.png" class="playImg" bindtap="setCountDown" />
  91. <view class="text">
  92. {{state?'完成录制':readingReset?'点击重录':readingType=='public'||readingType=='readMatch'?'开始朗读':'开始挑战'}}</view>
  93. <uploadFile wx:if="{{readingReset&&!uploadHide}}" class="btnPosition" />
  94. </view>
  95. <view class="playImgBg"></view>
  96. <!-- 倒计时 -->
  97. <view class="countDownBox" wx:if="{{countDown.state}}">
  98. <view class="countDown">
  99. <view class="number">{{countDown.num}}</view>
  100. <view class="tips">秒后开始</view>
  101. </view>
  102. </view>
  103. <view class="uploadBox" wx:if="{{uploadState}}">
  104. <view class="upload">
  105. <view class="speed">{{percent}}%</view>
  106. <progress percent="{{percent}}" class="speedProgress" stroke-width="10" activeColor="#C3F166" />
  107. <view>挑战结算中</view>
  108. </view>
  109. </view>
  110. <readingTips id="readingTips"></readingTips>
  111. <canvas id='share' type="2d"> </canvas>
  112. </view>