documentItem.wxml 1.2 KB

123456789101112131415161718192021
  1. <!--component/documentItem/documentItem.wxml-->
  2. <view>
  3. <view class="topLayout">
  4. <view class="topLayout_ImgLayout">
  5. <image wx:if="{{type==1}}" src="../../image/document/document_video.png" class="topLayout_ImgLayout_img"></image>
  6. <image wx:elif="{{type==0}}" src="../../image/document/document_img.png" class="topLayout_ImgLayout_img"></image>
  7. <text class="topLayout_ImgLayout_text">{{itemData.title}} 回看</text>
  8. </view>
  9. <view class="topLayout_ImgLayout_more" bindtap="showActionWindow">
  10. <image src="../../image/teacher/file_more.png" class="topLayout_ImgLayout_more_img"></image>
  11. </view>
  12. </view>
  13. <view class="timeLayout">
  14. <text class="timeLayout_time">起止时间:{{itemData.created}}</text>
  15. <text wx:if="{{hasDownLoad}}" class="timeLayout_download_text">{{downLoadProgress}}</text>
  16. </view>
  17. <view class="playerLayout">
  18. <video wx:if="{{type==1}}" class="player" src="{{itemData.url}}" autoplay="{{false}}"> </video>
  19. <image wx:elif=" {{type==0}}" class="player" style="background-color: sienna;" src="{{itemData.url}}"></image>
  20. </view>
  21. </view>