index.wxml 4.4 KB

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