reading.wxml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <view class="readingPage">
  2. <!-- <view class="videoSection" wx:if="{{!isIOS}}">
  3. <image wx:if="{{!videoLoad}}" class="videoIcon" src="{{iconImg}}" />
  4. </view> -->
  5. <video
  6. id="myVideo"
  7. class="videoSection"
  8. src="{{videoUrl}}"
  9. show-fullscreen-btn="{{fullScreenBtn}}"
  10. show-play-btn="{{playBtn}}"
  11. show-center-play-btn="{{centerBtn}}"
  12. muted="{{muted}}"
  13. enable-progress-gesture="{{gesture}}"
  14. bindended="recordingVideoEnd"
  15. ></video>
  16. <!-- bindwaiting="videoWaiting"
  17. bindplay="videoPlay" -->
  18. <!-- <audio name="123" author="123" src="{{recordSource}}" id="myAudio" controls loop></audio> -->
  19. <scroll-view class="textSection" scroll-y="true">
  20. <text class="textContent">
  21. {{readingText}}
  22. </text>
  23. </scroll-view>
  24. <view class="footSection">
  25. <image class="blackbord" src="../../../static/image/blackbord.png" />
  26. <view class="collectBtn footerBtn" wx:if="{{btnFlag}}" bindtap="audioPlay">
  27. <image src="../../../static/image/listen.png" />
  28. <text>试听</text>
  29. </view>
  30. <view class="readingBtn footerBtn" bindtap="audioRecord">
  31. <image class="microphone" src="{{btnImgFlag ? recordingGif :microphonePng}}" />
  32. <text>{{btnImgFlag ? '点击结束' : btnFlag ? '点击重录' : '开始朗读'}}</text>
  33. </view>
  34. <view class="shareBtn footerBtn" wx:if="{{btnFlag}}" bindtap="upload">
  35. <image src="../../../static/image/upload.png" />
  36. <text>上传</text>
  37. </view>
  38. </view>
  39. </view>