reading.wxml 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <scroll-view class="readingPage" lower-threshold="{{}}" scroll-y="true" bindscrolltolower="scrollToLower" bindscrolltoupper="scrollToUpper">
  2. <!-- <view class="videoSection" wx:if="{{!isIOS}}">
  3. <image wx:if="{{!videoLoad}}" class="videoIcon" src="{{iconImg}}" />
  4. </view> -->
  5. <video id="myVideo" class="videoSection" src="{{videoUrl}}" show-fullscreen-btn="{{fullScreenBtn}}" show-play-btn="{{playBtn}}" show-center-play-btn="{{centerBtn}}" muted="{{muted}}" enable-progress-gesture="{{gesture}}" bindended="recordingVideoEnd"></video>
  6. <!-- bindwaiting="videoWaiting"
  7. bindplay="videoPlay" -->
  8. <!-- <audio name="123" author="123" src="{{recordSource}}" id="myAudio" controls loop></audio> -->
  9. <view class="footSection">
  10. <view class="collectBtn footerBtn" wx:if="{{btnFlag}}" bindtap="audioPlay">
  11. <image src="../../static/index/listen.png" />
  12. <text>试听</text>
  13. </view>
  14. <!-- <view class="readingBtn footerBtn" bindtap="audioRecord">
  15. <image class="microphone" src="{{btnImgFlag ? recordingGif :microphonePng}}" />
  16. <text>{{btnImgFlag ? '点击结束' : btnFlag ? '点击重录' : '开始朗读'}}</text>
  17. </view> -->
  18. <view class="btn_wrapper" bindtap="audioRecord">
  19. <view class="reading_btn">
  20. <image class="microphone" src="{{btnImgFlag ? recordingGif :microphonePng}}" />
  21. <text>{{btnImgFlag ? '点击结束' : btnFlag ? '点击重录' : '开始朗读'}}</text>
  22. </view>
  23. </view>
  24. <view class="shareBtn footerBtn" wx:if="{{btnFlag}}" bindtap="upload">
  25. <image src="../../static/index/upload.png" />
  26. <text>上传</text>
  27. </view>
  28. </view>
  29. <scroll-view class="textSection" wx:if="{{ifTextShow}}" scroll-y="true">
  30. <!-- <view class="btn_wrapper" bindtap="audioRecord">
  31. <view class="reading_btn">
  32. <image src="../../../static/index/star.png" />
  33. <text>{{btnImgFlag ? '点击结束' : btnFlag ? '点击重录' : '开始朗读'}}</text>
  34. </view>
  35. </view> -->
  36. <text class="textContent">{{readingText}}</text>
  37. </scroll-view>
  38. <view class="score_section" wx:if="{{ifScoreShow}}">
  39. <view class="title">测评报告</view>
  40. <view class="star_row">
  41. <image class="star" wx:for="{{star}}" src="{{item? '../../static/index/star_colored.png': '../../static/index/star.png'}}" />
  42. </view>
  43. <view class="score_item">
  44. <text class="score_square"></text>
  45. <text >完成度:{{integrity}}/100</text>
  46. </view>
  47. <view class="score_item">
  48. <text class="score_square"></text>
  49. <text >正确率:{{accuracy}}/100</text>
  50. </view>
  51. <view class="score_item">
  52. <text class="score_square"></text>
  53. <text >语速:{{fluency}}/100</text>
  54. </view>
  55. <view class="score_item">
  56. <text class="score_square"></text>
  57. <text >语音语调:{{tone}}/100</text>
  58. </view>
  59. </view>
  60. <VideoSwiper bindopenShare="openShare" wx:if="{{videoList && videoList.length > 0 && isVideoListShow}}" class="video-swiper" video-list="{{videoList}}" nextMargin="{{nextMargin}}" isSwiper="{{false}}" bindopenComment="openComment" bindheadTap="headTapHandler" bindgoToReading="goToReading" bindplay="onPlay"></VideoSwiper>
  61. </scroll-view>
  62. <view class="comment_section" catchtap="commentTap" data-type="blank" wx:if="{{commentShow}}">
  63. <Comment data-type="list" commentId="{{commentId}}" />
  64. </view>
  65. <view class="score_dialog" wx:if="{{ifScoreDialogShow}}">
  66. <view class="score_section">
  67. <view class="title">测评报告</view>
  68. <view class="star_row">
  69. <image class="star" wx:for="{{star}}" src="{{item? '../../static/index/star_colored.png': '../../static/index/star.png'}}" />
  70. </view>
  71. <view class="score_item">
  72. <text class="score_square"></text>
  73. <text >完成度:{{integrity}}/100</text>
  74. </view>
  75. <view class="score_item">
  76. <text class="score_square"></text>
  77. <text >正确率:{{accuracy}}/100</text>
  78. </view>
  79. <view class="score_item">
  80. <text class="score_square"></text>
  81. <text >语速:{{fluency}}/100</text>
  82. </view>
  83. <view class="score_item">
  84. <text class="score_square"></text>
  85. <text >语音语调:{{tone}}/100</text>
  86. </view>
  87. </view>
  88. <view class="close" bindtap="closeScoreDialog">
  89. <image class="close_icon" src="../../static/index/close.png" />
  90. </view>
  91. </view>