index.wxml 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <wxs src="../../utils/filter.wxs" module="filters" />
  2. <view class="work">
  3. <view class="workHead">
  4. <view class="wH-left">
  5. <image src="{{videoInfo.user.avatar}}" class="avatar" mode="" />
  6. <view class="wH-left-user">
  7. <view class="nickname textOver">{{videoInfo.user.nickName}}</view>
  8. <view class="time">发布时间:{{videoInfo.userRead.day}}</view>
  9. </view>
  10. </view>
  11. <view class="wH-right" wx:if="{{videoInfo.userRead.status!='CHECK'}}">
  12. <view class="wH-right-btn" bindtap="download">
  13. <image class="img" src="/static/index/down.png" mode="" />
  14. <view class="text">下载</view>
  15. </view>
  16. <view class="wH-right-btn" bindtap="delete">
  17. <image class=" img" style="width:24rpx" src="/static/index/delete.png" mode="" />
  18. <view class="text">删除</view>
  19. </view>
  20. <view class="wH-right-btn" bindtap="setVideoPublic">
  21. <image class="img" style="width:30rpx" src="{{videoInfo.userRead.status==='NORMAL'? '/static/index/unlock.png': '/static/index/lock.png'}}" />
  22. <view class="text">
  23. {{videoInfo.userRead.status==='NORMAL'? '公开': '私密'}}
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. <view class="workContent">
  29. <!-- 审核中遮罩 -->
  30. <view class="videoBox" wx:if="{{videoInfo.userRead.status=='CHECK'&&videoInfo.userRead.id!=currentId}}">
  31. <view class="maskBg"></view>
  32. <image class="maskImg" src="/static/index/checking.png" />
  33. <image class="cover" src="{{videoInfo.userRead.coverImg}}" />
  34. </view>
  35. <!--未播放-->
  36. <view class="videoBox" wx:if="{{videoInfo.userRead.status!='CHECK'&&videoInfo.userRead.id!=currentId}}" bindtap="playVideo">
  37. <image class="play" src="/static/image/play-btn.png" />
  38. <image class="cover" src="{{videoInfo.userRead.coverImg}}" />
  39. </view>
  40. <!-- 播放时渲染的video -->
  41. <video class="video" id="myVideo" wx:if="{{videoInfo.userRead.id==currentId}}" src="{{videoInfo.userRead.videoPath}}" autoplay="true" object-fit="contain">
  42. </video>
  43. </view>
  44. <view class="workFooter">
  45. <view class="mange" wx:if="{{videoInfo.userRead.status!='CHECK'}}">
  46. <view class="mangeL" bindtap="collect">
  47. <view class="mangeL-box">
  48. <image src="{{videoInfo.isFavorites ? '/static/index/star_colored.png' : '/static/index/star.png'}}" mode="" class="icon" />
  49. <view class="icon-name">{{item.isFavorites}}</view>
  50. </view>
  51. <button class="resetBtn mangeL-box" open-type="share" data-info='{{videoInfo}}'>
  52. <image src="/static/index/share.png" mode="" class="icon" />
  53. <view class="icon-name">分享</view>
  54. </button>
  55. </view>
  56. <view class="mangeL">
  57. <view class="mangeL-box" bindtap="likeVideo">
  58. <image src="{{videoInfo.isLike ? '/static/index/heart_colored.png' : '/static/index/heart.png'}}" mode="" class="icon" />
  59. <view class="icon-name">{{filters.numFilter(videoInfo.userRead.likeAmount)}}</view>
  60. </view>
  61. <view class="mangeL-box" bindtap="openComment">
  62. <image src="/static/index/comment.png" mode="" class="icon" />
  63. <view class="icon-name">{{filters.numFilter(videoInfo.userRead.commentAmount)}}</view>
  64. </view>
  65. </view>
  66. </view>
  67. </view>
  68. </view>