index.wxml 5.1 KB

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