index.wxml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <view class="readingBox">
  2. <!-- 查看全部配音作品 -->
  3. <view class="moreWork" wx:if="{{readingType=='public'||readingType=='readMatch'}}">
  4. <view class="left">查看全部配音作品</view>
  5. <view class="right" bindtap="otherWork" style="width: {{(videoInfo.avatarList.length+1)*42+64}}rpx;">
  6. <block wx:for="{{videoInfo.avatarList}}" wx:key="index">
  7. <image class="moreImg" style="left: {{(index+1)*40}}rpx;" src="{{item}}"></image>
  8. </block>
  9. <image src="/static/more.png" class="moreImg" />
  10. </view>
  11. </view>
  12. <view class="videoBox" wx:if="{{!videoInfo.userReadExtend||videoInfo.userReadExtend.resourcesType==0}}">
  13. <image src="{{videoInfo.userRead.coverImg}}" class='poster' wx:if="{{!state&&!exampleState}}" bindtap="videoPlay" />
  14. <image src="/static/play-btn.png" bindtap="videoPlay" wx:if="{{!state&&!exampleState}}" class="playBtn" />
  15. <!-- 水印 -->
  16. <image src="{{videoInfo.readMaskTemplate.imgPath}}" class="watermark" />
  17. <video id="myVideo" src="{{videoPath}}" bindended='videoEnd' show-center-play-btn="{{readingReset}}"
  18. custom-cache="{{false}}" controls="{{!state&&!readingReset}}" muted="{{muted}}"></video>
  19. </view>
  20. <view class="audio" bindtap='videoPlay' wx:else>
  21. <!-- <image src="{{videoInfo.userRead.coverImg}}" class="audioBg" /> -->
  22. <!-- <view class="mask"></view> -->
  23. <view class="audioPlay" style="background-image: url({{videoInfo.userReadExtend.backgroundVirtualImg}});">
  24. <image src="/static/audioBg.png" class="audioPlayBg {{state?'circle':''}}" />
  25. <image src="/static/zhen.png" class="audioPlayZhen" />
  26. <image src="/static/play-btn.png" wx:if="{{!state&&!exampleState}}" class="playBtn" />
  27. <image src="{{videoInfo.userRead.coverImg}}" class="cover {{state||exampleState?'circle':''}}" mode="" />
  28. </view>
  29. <view class="progressBar">
  30. <image src="{{state||exampleState?'/static/aStop.png':'/static/aPlay.png'}}" class="audioSwitch" />
  31. <view class="time">{{silderData.currentTime}}</view>
  32. <slider class="slider" value="{{silderData.sliderValue}}" catchtap="false" disabled="{{!state&&!exampleState}}"
  33. catchchange="slider" block-size='12' backgroundColor='#ffffff50' selected-color="#ffffff" />
  34. <view class="time">{{silderData.endTime}}</view>
  35. </view>
  36. </view>
  37. <view class="contentBox" wx:if="{{!readingReset}}">
  38. <view class="articleMask"></view>
  39. <scroll-view class="content" scroll-y enhanced show-scrollbar="{{false}}" scroll-top="{{scrollTop}}"
  40. scroll-with-animation>
  41. <view style="height: 100rpx;"></view>
  42. <view class="row {{currentRow==index?'currentRow':''}}" wx:for="{{article}}" wx:key="id">{{item.text}}
  43. </view>
  44. <view style="height: {{contentH}}rpx;"></view>
  45. </scroll-view>
  46. </view>
  47. <view class="scoreBoxC" wx:elif="{{readingReset}}">
  48. <view class="scoreBox">
  49. <!-- 星星区域 -->
  50. <view class="lightBox">
  51. <image src="/static/{{readDetail.myOverall>=10?'stars-1.png':'stars-2.png'}}" class="stars stars-1" mode="" />
  52. <image src="/static/{{readDetail.myOverall>=30?'stars-1.png':'stars-2.png'}}" class="stars stars-2" mode="" />
  53. <image src="/static/{{readDetail.myOverall>=50?'stars-1.png':'stars-2.png'}}" class="stars stars-3" mode="" />
  54. <image src="/static/{{readDetail.myOverall>=70?'stars-1.png':'stars-2.png'}}" class="stars stars-4" mode="" />
  55. <image src="/static/{{readDetail.myOverall>=90?'stars-1.png':'stars-2.png'}}" class="stars stars-5" mode="" />
  56. <image src="/static/light.png" class="light" mode="" />
  57. </view>
  58. <!-- 主体得分区域 -->
  59. <view class="score">
  60. <view class="avatarBox">
  61. <image src="{{userInfo.avatar}}" class="avatar" mode="" />
  62. </view>
  63. <view class="nickName">
  64. {{userInfo.nickName||userInfo.eid}}
  65. </view>
  66. <view class="totalScore">
  67. <text>综合得分:</text>
  68. <text class="num">{{readDetail.myOverall}}</text>
  69. </view>
  70. <view class="progressBox">
  71. <view class="row">
  72. <view class="name">完整度</view>
  73. <progress class="progress" active percent='{{readDetail.integrity}}' stroke-width="18"
  74. activeColor="#70D9FF" />
  75. <view class="scoreInfo">
  76. {{readDetail.integrity}}/100
  77. </view>
  78. </view>
  79. <view class="row">
  80. <view class="name">正确率</view>
  81. <progress class="progress" active percent='{{readDetail.accuracy}}' stroke-width="18"
  82. activeColor="#918EFD" />
  83. <view class="scoreInfo">
  84. {{readDetail.accuracy}}/100
  85. </view>
  86. </view>
  87. <view class="row">
  88. <view class="name">流利度</view>
  89. <progress class="progress" active percent='{{readDetail.fluency}}' stroke-width="18"
  90. activeColor="#FE9500" />
  91. <view class="scoreInfo">
  92. {{readDetail.fluency}}/100
  93. </view>
  94. </view>
  95. <view class="row">
  96. <view class="name">语调</view>
  97. <progress class="progress" active percent='{{readDetail.tone}}' stroke-width="18" activeColor="#9BE74B " />
  98. <view class="scoreInfo">
  99. {{readDetail.tone}}/100
  100. </view>
  101. </view>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. <view class="controller">
  107. <!-- <image wx:else src="/static/work.png" class="playImg" bindtap="eeeeee" /> -->
  108. <view class="workBox">
  109. <view class="vipLogo" wx:if="{{!isVip}}">VIP</view>
  110. <image wx:if="{{state}}" src="/static/readingNow.gif" class="readingNow" bindtap="setCountDown" />
  111. <image wx:else src="/static/work.png" class="playImg" bindtap="setCountDown" />
  112. </view>
  113. <view class="text">
  114. {{state?'完成录制':readingReset?'点击重录':readingType=='public'||readingType=='readMatch'?'开始朗读':'开始挑战'}}
  115. </view>
  116. <block wx:if="{{readingReset}}">
  117. <uploadFile activityId='{{activityId}}' readingType='{{readingType}}' class="btnPosition"
  118. wx:if="{{!uploadHide}}" />
  119. <view class="stBtn" bindtap="backReading">退出</view>
  120. </block>
  121. </view>
  122. <view class="playImgBg"></view>
  123. <!-- 倒计时 -->
  124. <view class="countDownBox" wx:if="{{countDown.state}}">
  125. <view class="countDown">
  126. <view class="number">{{countDown.num}}</view>
  127. <view class="tips">秒后开始</view>
  128. </view>
  129. </view>
  130. <page-container show="{{uploadState}}" bind:beforeleave='beforeleave'>
  131. <view class="uploadBox">
  132. <view class="upload">
  133. <image src="/static/uploadTips.png" class="tipsImg" />
  134. <view>{{readingType=='pk'?'挑战结算中,小朋友请耐心等待哦~':'作品上传中,小朋友请耐心等待哦~'}}</view>
  135. <view class="speed">
  136. {{percent}}%
  137. </view>
  138. </view>
  139. </view>
  140. </page-container>
  141. <canvas id='share' type="2d"> </canvas>
  142. </view>