class.wxml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <view class="classPage">
  2. <view class="videoSection" wx:if="{{!isIOS}}">
  3. <cover-image wx:if="{{!videoLoad}}" class="video-playBtn" bindtap="videoPlayHandler" src="../../../static/image/play-btn.png"></cover-image>
  4. <image wx:if="{{!videoLoad}}" class="videoIcon" src="{{iconImg}}" />
  5. <video wx:if="{{videoLoad}}" 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}}" 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/like_gray.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. <canvas canvas-id="myCanvas" style="width:370px;z-index=99999; height: 507px; position: absolute; left: -999rpx; top: -9999rpx;"></canvas>
  45. <shareDialog id="share-dialog" shareType='class' />
  46. <goBackHome id="goBackHome" shareType="{{goBackHome}}" wx:if="{{goBackHome}}" />
  47. </view>