class.wxml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <view class="classPage">
  2. <video id="classVideo" class="videoSection" src="{{videoUrl}}" controls show-fullscreen-btn="{{fullScreenBtn}}" show-play-btn="{{playBtn}}"></video>
  3. <view class="readWorksSection" >
  4. <view class="peopleNum">
  5. <image class="peoplesIcon" src="../../../static/image/peoples.png" />
  6. <view class="title">共有{{total}}人完成了录音</view>
  7. </view>
  8. <view class="workCard" wx:for="{{works}}" wx:key="{{index}}" bindtap="goToWorks" data-id="{{item.id}}">
  9. <image class="avatar" src="{{item.avatar}}" />
  10. <view class="name">
  11. <text class="nickName">{{item.nickName}}</text>
  12. <text class="time">{{item.time}}</text>
  13. </view>
  14. <view class="likes">
  15. <image class="likeTag" src="../../../static/image/like_gray.png" />
  16. <text class="likeNum">{{item.likes}}</text>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="footSection">
  21. <image class="blackbord" src="../../../static/image/blackbord.png" />
  22. <view class="collectBtn footerBtn" bindtap="collect">
  23. <image src="{{collectFlag ? '../../../static/image/collected.png' : '../../../static/image/no_collect.png'}}" />
  24. <text>{{collectFlag ? '取消收藏' : '收藏'}}</text>
  25. </view>
  26. <view class="readingBtn footerBtn" bindtap="goToReading">
  27. <image class="microphone" src="../../../static/image/microphone.png" />
  28. <text>我要朗读</text>
  29. </view>
  30. <view class="shareBtn footerBtn">
  31. <!-- <image src="../../../static/image/share.png" />
  32. <text>分享</text> -->
  33. <button open-type="share" plain="true" hover-class="none">
  34. <image src="../../../static/image/share.png" />
  35. <text>分享</text>
  36. </button>
  37. </view>
  38. </view>
  39. <canvas canvas-id="myCanvas" style="width:370px;z-index=99999; height: 507px; position: absolute; left: -999rpx; top: -9999rpx;"></canvas>
  40. <shareDialog id="share-dialog" shareType='class' />
  41. <goBackHome id="goBackHome" shareType="{{goBackHome}}" wx:if="{{goBackHome}}" />
  42. </view>