class.wxml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <view class="classPage">
  2. <view class="videoSection" wx:if="{{!isIOS}}">
  3. <image wx:if="{{!videoLoad}}" class="video-playBtn" bindtap="videoPlayHandler" src="../../../static/image/play-btn.png"/>
  4. <image wx:if="{{!videoLoad}}" class="videoIcon" src="{{iconImg}}" />
  5. <video wx:if="{{videoLoad}}" bindtimeupdate="videoTimeChange" id="classVideo" class="videoSection" src="{{videoUrl}}" autoPlay="{{autoPlay}}" controls="{{controls}}" show-center-play-btn="{{centerBtn}}" show-fullscreen-btn="{{fullScreenBtn}}" show-play-btn="{{playBtn}}"></video>
  6. </view>
  7. <video wx:if="{{isIOS}}" bindtimeupdate="videoTimeChange" id="classVideo" class="videoSection" src="{{videoUrl}}" autoPlay="{{autoPlay}}" controls="{{controls}}" show-center-play-btn="{{centerBtn}}" show-fullscreen-btn="{{fullScreenBtn}}" show-play-btn="{{playBtn}}"></video>
  8. <view class="readWorksSection">
  9. <view class="peopleNum">
  10. <image class="peoplesIcon" src="../../../static/image/peoples.png" />
  11. <view class="title">共有{{total}}个录音作品</view>
  12. </view>
  13. <view class="workCard" wx:for="{{works}}" wx:key="{{index}}" bindtap="goToWorks" data-id="{{item.id}}">
  14. <image class="avatar" lazy-load="true" src="{{item.avatar}}" />
  15. <view class="name">
  16. <text class="nickName">{{item.nickName}}</text>
  17. <text class="time">{{item.time}}</text>
  18. </view>
  19. <view class="likes">
  20. <image class="likeTag" src="../../../static/image/hotPlays.png" />
  21. <text class="likeNum">{{item.likes}}</text>
  22. </view>
  23. </view>
  24. </view>
  25. <view class="footSection">
  26. <image class="blackbord" src="../../../static/image/blackbord.png" />
  27. <view class="collectBtn footerBtn" bindtap="collect">
  28. <image src="{{collectFlag ? '../../../static/image/collected.png' : '../../../static/image/no_collect.png'}}" />
  29. <text>{{collectFlag ? '取消收藏' : '收藏'}}</text>
  30. </view>
  31. <view class="readingBtn footerBtn" bindtap="goToReading">
  32. <image class="microphone" src="../../../static/image/microphone.png" />
  33. <text>我要朗读</text>
  34. </view>
  35. <view class="shareBtn footerBtn">
  36. <!-- <image src="../../../static/image/share.png" />
  37. <text>分享</text> -->
  38. <button open-type="share" plain="true" hover-class="none">
  39. <image src="../../../static/image/share.png" />
  40. <text>分享</text>
  41. </button>
  42. </view>
  43. </view>
  44. <view hidden="{{hide}}">
  45. <Dialog bindmyevent="jurisdiction" />
  46. </view>
  47. <canvas canvas-id="myCanvas" style="width:370px;z-index=99999; height: 507px; position: absolute; left: -999rpx; top: -9999rpx;"></canvas>
  48. <shareDialog id="share-dialog" shareType='class' />
  49. <goBackHome id="goBackHome" shareType="{{goBackHome}}" wx:if="{{goBackHome}}" />
  50. <myModal id="myModal" btnText="{{modalBtnText}}" type="{{modalType}}" text="{{modalText}}" wx:if="{{isModalShow}}" bindconfirm="modalConfirmHandler" bindclose="modalCloseHandler" />
  51. </view>