reading.wxml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. </view>
  35. <VideoSwiper
  36. wx:if="{{videoList.length > 0}}"
  37. class="video-swiper"
  38. video-list="{{videoList}}"
  39. nextMargin="{{nextMargin}}"
  40. bindopenComment="openComment"
  41. bindheadTap="headTapHandler"
  42. bindgoToReading="goToReading"
  43. bindplay="onPlay"
  44. >
  45. </VideoSwiper>