index.wxml 9.4 KB

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