reading.wxml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <StatusBar receiveData="{{statusbarobj}}" grade="{{grade}}" bindgradeTap="gradeTap" />
  2. <view class="readingPage">
  3. <!-- <view class="videoSection" wx:if="{{!isIOS}}">
  4. <image wx:if="{{!videoLoad}}" class="videoIcon" src="{{iconImg}}" />
  5. </view> -->
  6. <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>
  7. <!-- bindwaiting="videoWaiting"
  8. bindplay="videoPlay" -->
  9. <!-- <audio name="123" author="123" src="{{recordSource}}" id="myAudio" controls loop></audio> -->
  10. <scroll-view class="textSection" scroll-y="true">
  11. <view class="btn_wrapper" bindtap="audioRecord">
  12. <view class="reading_btn">
  13. <image src="../../../static/index/star.png" />
  14. <text>我要配音</text>
  15. </view>
  16. </view>
  17. <text class="textContent">{{readingText}}</text>
  18. </scroll-view>
  19. <!-- <view class="footSection">
  20. <image class="blackbord" src="../../../static/image/blackbord.png" />
  21. <view class="collectBtn footerBtn" wx:if="{{btnFlag}}" bindtap="audioPlay">
  22. <image src="../../../static/image/listen.png" />
  23. <text>试听</text>
  24. </view>
  25. <view class="readingBtn footerBtn" bindtap="audioRecord">
  26. <image class="microphone" src="{{btnImgFlag ? recordingGif :microphonePng}}" />
  27. <text>{{btnImgFlag ? '点击结束' : btnFlag ? '点击重录' : '开始朗读'}}</text>
  28. </view>
  29. <view class="shareBtn footerBtn" wx:if="{{btnFlag}}" bindtap="upload">
  30. <image src="../../../static/image/upload.png" />
  31. <text>上传</text>
  32. </view>
  33. </view> -->
  34. <VideoSwiper
  35. wx:if="{{videoList.length > 0}}"
  36. class="video-swiper"
  37. video-list="{{videoList}}"
  38. nextMargin="{{nextMargin}}"
  39. bindopenComment="openComment"
  40. bindheadTap="headTapHandler"
  41. bindgoToReading="goToReading"
  42. bindplay="onPlay"
  43. >
  44. <!-- bindplay="onPlay"
  45. bindpause="onPause"
  46. bindtimeupdate="onTimeUpdate"
  47. bindended="onEnded"
  48. binderror="onError"
  49. bindwaiting="onWaiting"
  50. bindprogress="onProgress"
  51. bindloadedmetadata="onLoadedMetaData" -->
  52. </VideoSwiper>
  53. </view>