index.wxml 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <wxs src="../../utils/filter.wxs" module="filters" />
  2. <view class="work">
  3. <view class="workHead">
  4. <view class="wH-left">
  5. <image src="{{videoInfoCopy.user.avatar}}" class="avatar" bindtap="jumpUserInfo" />
  6. <view class="wH-left-user">
  7. <view class="nickname textOver">{{videoInfoCopy.user.nickName||videoInfoCopy.user.eid}}</view>
  8. <view class="time">{{videoInfoCopy.userRead.day}}</view>
  9. </view>
  10. </view>
  11. <view class="wH-right" wx:if="{{videoType=='my'&&videoInfo.userRead.status!='CHECK'}}">
  12. <view class="wH-right-btn" bindtap="download">
  13. <image class="img" src="/static/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/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"
  22. src="{{videoInfoCopy.userRead.status==='NORMAL'? '/static/unlock.png': '/static/lock.png'}}" />
  23. <view class="text">
  24. {{videoInfoCopy.userRead.status==='NORMAL'? '公开': '私密'}}
  25. </view>
  26. </view>
  27. </view>
  28. <view class="wH-right" wx:elif="{{videoType=='public'&&selfUid!=videoInfoCopy.user.uid}}">
  29. <view class="follow {{videoInfoCopy.isFans?'isFans':''}}" bindtap="setFans">
  30. <image src="{{videoInfoCopy.isFans?'/static/follow_2.png':'/static/follow_1.png'}}" class="character" mode="" />
  31. <text class="text">{{videoInfoCopy.isFans?'已关注':'关注'}}</text>
  32. </view>
  33. </view>
  34. <view class="wH-right" wx:elif="{{videoType=='pk'}}">
  35. <view class="pkNum">
  36. {{videoInfoCopy.userRead.score||'暂无评'}}分
  37. </view>
  38. </view>
  39. </view>
  40. <!-- 视频 -->
  41. <view class="workContent" wx:if="{{else}}">
  42. <!-- 审核中遮罩 -->
  43. <view class="videoBox" wx:if="{{videoInfoCopy.userRead.status=='CHECK'&&videoInfoCopy.userRead.id!=currentId}}">
  44. <view class="maskBg"></view>
  45. <image class="maskImg" src="/static/checking.png" />
  46. <image class="cover" src="{{videoInfoCopy.userRead.coverImg}}" />
  47. </view>
  48. <!--未播放-->
  49. <view class="videoBox" wx:if="{{videoInfoCopy.userRead.status!='CHECK'&&videoInfoCopy.userRead.id!=currentId}}"
  50. bindtap="playVideo">
  51. <image class="play" src="/static/play-btn.png" />
  52. <image class="cover" src="{{videoInfoCopy.userRead.coverImg}}" />
  53. </view>
  54. <!-- 播放时渲染的video -->
  55. <video class="video" id="myVideo" wx:if="{{videoInfoCopy.userRead.id==currentId}}"
  56. src="{{videoInfoCopy.userRead.videoPath}}" autoplay="true" object-fit="contain">
  57. </video>
  58. </view>
  59. <!-- 音频 -->
  60. <view class="workContent" >
  61. <view class="audioBox">
  62. <image src="{{videoInfoCopy.userRead.coverImg}}" class="audioBg" mode="" />
  63. <view class="mask"></view>
  64. <view class="audioPlay" bindtap="audioPlay">
  65. <image src="/static/audioBg.png" class="audioPlayBg {{videoInfoCopy.userRead.id==currentId?'circle':''}}" />
  66. <image src="/static/zhen.png" class="audioPlayZhen" />
  67. <image src="{{videoInfoCopy.user.avatar}}" class="cover {{videoInfoCopy.userRead.id==currentId?'circle':''}}"
  68. mode="" />
  69. </view>
  70. </view>
  71. </view>
  72. <view class="workFooter" wx:if="{{videoInfo.userRead.status!='CHECK'}}">
  73. <button class="resetBtn mangeL-box" open-type="share" data-info='{{videoInfo}}'>
  74. <image src="/static/share.png" mode="" class="icon" />
  75. <view class="icon-name">分享</view>
  76. </button>
  77. <view class="mangeL-box" bindtap="collect">
  78. <image src="{{videoInfoCopy.isFavorites ? '/static/star_colored.png' : '/static/star.png'}}" mode=""
  79. class="icon" />
  80. <view class="icon-name">{{videoInfoCopy.isFavorites?'已收藏':'收藏'}}</view>
  81. </view>
  82. <view class="mangeL-box" bindtap="openComment">
  83. <image src="/static/comment.png" mode="" class="icon" />
  84. <view class="icon-name">{{filters.numFilter(videoInfoCopy.userRead.commentAmount)}}</view>
  85. </view>
  86. <view class="mangeL-box" bindtap="likeVideo">
  87. <image src="{{videoInfoCopy.isLike ? '/static/heart_colored.png' : '/static/heart.png'}}" mode="" class="icon" />
  88. <view class="icon-name">{{filters.numFilter(videoInfoCopy.userRead.likeAmount)}}</view>
  89. </view>
  90. </view>
  91. <view class="toReading" bindtap="toPkPage" wx:if="{{videoType!='my'}}">
  92. <image src="/static/reading.png" class="reading" mode="" />
  93. <view class="reading-text">挑战PK</view>
  94. </view>
  95. </view>