reading.wxml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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="read_num" wx:if="{{isVideoListShow && totalSize > 0}}">
  39. <image class="read_num_icon" src='../../static/index/peoples.png' />
  40. <text >共有{{totalSize}}个作品</text>
  41. </view>
  42. <view class="score_section" wx:if="{{ifScoreShow}}">
  43. <view class="title">测评报告</view>
  44. <view class="star_row">
  45. <image class="star" wx:for="{{star}}" src="{{item? '../../static/index/star_test_colored.png': '../../static/index/star_test.png'}}" />
  46. </view>
  47. <view class="score_item">
  48. <text class="score_square"></text>
  49. <text>完成度:{{integrity}}/100</text>
  50. </view>
  51. <view class="score_item">
  52. <text class="score_square"></text>
  53. <text>正确率:{{accuracy}}/100</text>
  54. </view>
  55. <view class="score_item">
  56. <text class="score_square"></text>
  57. <text>语速:{{fluency}}/100</text>
  58. </view>
  59. <view class="score_item">
  60. <text class="score_square"></text>
  61. <text>语音语调:{{tone}}/100</text>
  62. </view>
  63. </view>
  64. <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" bindonPlay="onPlay"></VideoSwiper>
  65. </scroll-view>
  66. <view class="comment_section" catchtap="commentTap" data-type="blank" wx:if="{{commentShow}}">
  67. <Comment data-type="list" commentId="{{commentId}}" />
  68. </view>
  69. <view class="score_dialog" wx:if="{{ifScoreDialogShow}}">
  70. <view class="score_section">
  71. <view class="title">测评报告</view>
  72. <view class="star_row">
  73. <image class="star" wx:for="{{star}}" src="{{item? '../../static/index/star_test_colored.png': '../../static/index/star_test.png'}}" />
  74. </view>
  75. <view class="score_item">
  76. <text class="score_square"></text>
  77. <text>完成度:{{integrity}}/100</text>
  78. </view>
  79. <view class="score_item">
  80. <text class="score_square"></text>
  81. <text>正确率:{{accuracy}}/100</text>
  82. </view>
  83. <view class="score_item">
  84. <text class="score_square"></text>
  85. <text>语速:{{fluency}}/100</text>
  86. </view>
  87. <view class="score_item">
  88. <text class="score_square"></text>
  89. <text>语音语调:{{tone}}/100</text>
  90. </view>
  91. </view>
  92. <view class="close" bindtap="closeScoreDialog">
  93. <image class="close_icon" src="../../static/index/close.png" />
  94. </view>
  95. </view>