index.wxml 5.4 KB

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