|
@@ -1,106 +1,110 @@
|
|
|
<wxs src="../../utils/filter.wxs" module="filters" />
|
|
|
<view class="work">
|
|
|
- <view class="workHead">
|
|
|
- <view class="wH-left">
|
|
|
- <image src="{{videoInfoCopy.user.avatar}}" class="avatar" bindtap="jumpUserInfo" />
|
|
|
- <view class="wH-left-user">
|
|
|
- <view class="nickname textOver">{{videoInfoCopy.user.nickName||videoInfoCopy.user.eid}}</view>
|
|
|
- <view class="time">{{videoInfoCopy.userRead.day}}</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="wH-right" wx:if="{{videoType=='my'&&videoInfo.userRead.status!='CHECK'}}">
|
|
|
- <view class="wH-right-btn" bindtap="download">
|
|
|
- <image class="img" src="/static/down.png" mode="" />
|
|
|
- <view class="text">下载</view>
|
|
|
- </view>
|
|
|
- <view class="wH-right-btn" bindtap="delete">
|
|
|
- <image class=" img" style="width:24rpx" src="/static/delete.png" mode="" />
|
|
|
- <view class="text">删除</view>
|
|
|
- </view>
|
|
|
- <view class="wH-right-btn" bindtap="setVideoPublic">
|
|
|
- <image class="img" style="width:30rpx"
|
|
|
- src="{{videoInfoCopy.userRead.status==='NORMAL'? '/static/unlock.png': '/static/lock.png'}}" />
|
|
|
- <view class="text">
|
|
|
- {{videoInfoCopy.userRead.status==='NORMAL'? '公开': '私密'}}
|
|
|
+ <view class="workHead">
|
|
|
+ <view class="wH-left">
|
|
|
+ <image src="{{videoInfoCopy.user.avatar}}" class="avatar" bindtap="jumpUserInfo" />
|
|
|
+ <view class="wH-left-user">
|
|
|
+ <view class="nickname textOver">{{videoInfoCopy.user.nickName||videoInfoCopy.user.eid}}</view>
|
|
|
+ <view class="time">{{videoInfoCopy.userRead.day}}</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="wH-right"
|
|
|
- wx:elif="{{videoType=='public'&&selfUid!=videoInfoCopy.user.uid||videoType=='excellent'&&selfUid!=videoInfoCopy.user.uid}}">
|
|
|
- <view class="follow {{videoInfoCopy.isFans?'isFans':''}}" bindtap="setFans">
|
|
|
- <image src="{{videoInfoCopy.isFans?'/static/follow_2.png':'/static/follow_1.png'}}" class="character" mode="" />
|
|
|
- <text class="text">{{videoInfoCopy.isFans?'已关注':'关注'}}</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="wH-right" wx:elif="{{videoType=='pk'}}">
|
|
|
- <view class="pkNum">
|
|
|
- {{videoInfoCopy.userRead.score||'暂无评'}}分
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <!-- 视频 -->
|
|
|
- <view class="workContent" wx:if="{{!videoInfoCopy.userReadExtend||videoInfoCopy.userReadExtend.resourcesType==0}}">
|
|
|
- <!-- 审核中遮罩 -->
|
|
|
- <view class="videoBox" wx:if="{{videoInfoCopy.userRead.status=='CHECK'&&videoInfoCopy.userRead.id!=currentId}}">
|
|
|
- <view class="maskBg"></view>
|
|
|
- <image class="maskImg" src="/static/checking.png" />
|
|
|
- <image class="cover" src="{{videoInfoCopy.userRead.coverImg}}" />
|
|
|
- </view>
|
|
|
- <!--未播放-->
|
|
|
- <view class="videoBox" wx:if="{{videoInfoCopy.userRead.status!='CHECK'&&videoInfoCopy.userRead.id!=currentId}}"
|
|
|
- bindtap="playVideo">
|
|
|
- <image class="play" src="/static/play-btn.png" />
|
|
|
- <image class="cover" src="{{videoInfoCopy.userRead.coverImg}}" />
|
|
|
- </view>
|
|
|
- <!-- 播放时渲染的video -->
|
|
|
- <video class="video" id="myVideo" wx:if="{{videoInfoCopy.userRead.id==currentId}}"
|
|
|
- src="{{videoInfoCopy.userRead.videoPath}}" autoplay="true" object-fit="contain">
|
|
|
- </video>
|
|
|
- </view>
|
|
|
- <!-- 音频 -->
|
|
|
- <view class="workContent" wx:else>
|
|
|
- <view class="audioBox">
|
|
|
- <image src=" {{videoInfoCopy.userReadExtend.backgroundVirtualImg}}" class="audioBg" mode="aspectFill" />
|
|
|
- <view class="audioPlay" bindtap="audioPlay">
|
|
|
- <image src="/static/audioBg.png" class="audioPlayBg {{videoInfoCopy.userRead.id==currentId?'circle':''}}" />
|
|
|
- <image src="/static/zhen.png" class="audioPlayZhen" />
|
|
|
- <image src="{{videoInfoCopy.userRead.coverImg}}"
|
|
|
- class="cover {{videoInfoCopy.userRead.id==currentId?'circle':''}}" mode="" />
|
|
|
- </view>
|
|
|
- <view class="titleBox">
|
|
|
- <view class="textOver">
|
|
|
- {{videoInfoCopy.userRead.title}}
|
|
|
+ <view class="wH-right" wx:if="{{videoType=='my'&&videoInfo.userRead.status!='CHECK'}}">
|
|
|
+ <view class="wH-right-btn" bindtap="download">
|
|
|
+ <image class="img" src="/static/down.png" mode="" />
|
|
|
+ <view class="text">下载</view>
|
|
|
+ </view>
|
|
|
+ <view class="wH-right-btn" bindtap="delete">
|
|
|
+ <image class=" img" style="width:24rpx" src="/static/delete.png" mode="" />
|
|
|
+ <view class="text">删除</view>
|
|
|
+ </view>
|
|
|
+ <view class="wH-right-btn" bindtap="setVideoPublic">
|
|
|
+ <image class="img" style="width:30rpx"
|
|
|
+ src="{{videoInfoCopy.userRead.status==='NORMAL'? '/static/unlock.png': '/static/lock.png'}}" />
|
|
|
+ <view class="text">
|
|
|
+ {{videoInfoCopy.userRead.status==='NORMAL'? '公开': '私密'}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="wH-right"
|
|
|
+ wx:elif="{{videoType=='public'&&selfUid!=videoInfoCopy.user.uid||videoType=='excellent'&&selfUid!=videoInfoCopy.user.uid}}">
|
|
|
+ <view class="follow {{videoInfoCopy.isFans?'isFans':''}}" bindtap="setFans">
|
|
|
+ <image src="{{videoInfoCopy.isFans?'/static/follow_2.png':'/static/follow_1.png'}}" class="character"
|
|
|
+ mode="" />
|
|
|
+ <text class="text">{{videoInfoCopy.isFans?'已关注':'关注'}}</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="wH-right" wx:elif="{{videoType=='pk'}}">
|
|
|
+ <view class="pkNum">
|
|
|
+ {{videoInfoCopy.userRead.score||'暂无评'}}分
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="workFooter" wx:if="{{videoInfo.userRead.status!='CHECK'}}">
|
|
|
- <button class="resetBtn mangeL-box" open-type="share" data-info='{{videoInfo}}'>
|
|
|
- <image src="/static/share.png" mode="" class="icon" />
|
|
|
- <view class="icon-name">分享</view>
|
|
|
- </button>
|
|
|
- <view class="mangeL-box" bindtap="collect">
|
|
|
- <image src="{{videoInfoCopy.isFavorites ? '/static/star_colored.png' : '/static/star.png'}}" mode=""
|
|
|
- class="icon" />
|
|
|
- <view class="icon-name">{{videoInfoCopy.isFavorites?'已收藏':'收藏'}}</view>
|
|
|
- </view>
|
|
|
- <view class="mangeL-box" bindtap="openComment">
|
|
|
- <image src="/static/comment.png" mode="" class="icon" />
|
|
|
- <view class="icon-name">{{filters.numFilter(videoInfoCopy.userRead.commentAmount)}}</view>
|
|
|
</view>
|
|
|
- <view class="mangeL-box" bindtap="likeVideo">
|
|
|
- <image src="{{videoInfoCopy.isLike ? '/static/heart_colored.png' : '/static/heart.png'}}" mode="" class="icon" />
|
|
|
- <view class="icon-name">{{filters.numFilter(videoInfoCopy.userRead.likeAmount)}}</view>
|
|
|
+ <!-- 视频 -->
|
|
|
+ <view class="workContent" wx:if="{{!videoInfoCopy.userReadExtend||videoInfoCopy.userReadExtend.resourcesType==0}}">
|
|
|
+ <!-- 审核中遮罩 -->
|
|
|
+ <view class="videoBox" wx:if="{{videoInfoCopy.userRead.status=='CHECK'&&videoInfoCopy.userRead.id!=currentId}}">
|
|
|
+ <view class="maskBg"></view>
|
|
|
+ <image class="maskImg" src="/static/checking.png" />
|
|
|
+ <image class="cover" src="{{videoInfoCopy.userRead.coverImg}}" />
|
|
|
+ </view>
|
|
|
+ <!--未播放-->
|
|
|
+ <view class="videoBox" wx:if="{{videoInfoCopy.userRead.status!='CHECK'&&videoInfoCopy.userRead.id!=currentId}}"
|
|
|
+ bindtap="playVideo">
|
|
|
+ <image class="play" src="/static/play-btn.png" />
|
|
|
+ <image class="cover" src="{{videoInfoCopy.userRead.coverImg}}" />
|
|
|
+ </view>
|
|
|
+ <!-- 播放时渲染的video -->
|
|
|
+ <video class="video" id="myVideo" wx:if="{{videoInfoCopy.userRead.id==currentId}}"
|
|
|
+ src="{{videoInfoCopy.userRead.videoPath}}" autoplay="true" object-fit="contain">
|
|
|
+ </video>
|
|
|
</view>
|
|
|
- </view>
|
|
|
- <block wx:if="{{videoType!='my'}}">
|
|
|
- <view class="toReading" bindtap="toPkPage" wx:if="{{videoInfo.userRead.type=='READ'}}">
|
|
|
- <image src="/static/reading.png" class="reading" mode="" />
|
|
|
- <view class="reading-text">挑战PK</view>
|
|
|
+ <!-- 音频 -->
|
|
|
+ <view class="workContent" wx:else>
|
|
|
+ <view class="audioBox" bindtap="audioPlay">
|
|
|
+ <image src="/static/readingNow.gif" class="readingTips" wx:if="{{videoInfoCopy.userRead.id==currentId}}" />
|
|
|
+ <image src=" {{videoInfoCopy.userReadExtend.backgroundVirtualImg}}" class="audioBg" mode="aspectFill" />
|
|
|
+ <view class="audioPlay">
|
|
|
+ <image src="/static/audioBg.png"
|
|
|
+ class="audioPlayBg {{videoInfoCopy.userRead.id==currentId?'circle':''}}" />
|
|
|
+ <image src="/static/zhen.png" class="audioPlayZhen" />
|
|
|
+ <image src="{{videoInfoCopy.userRead.coverImg}}"
|
|
|
+ class="cover {{videoInfoCopy.userRead.id==currentId?'circle':''}}" />
|
|
|
+ </view>
|
|
|
+ <view class="titleBox">
|
|
|
+ <view class="textOver" wx:for="{{videoInfoCopy.userRead.title}}" wx:key="index">
|
|
|
+ {{item}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view class="toReading" bindtap="toPkPage" wx:if="{{videoInfo.userRead.type=='EXAMPLE'}}">
|
|
|
- <image src="/static/reading.png" class="reading" mode="" />
|
|
|
- <view class="reading-text">去朗读</view>
|
|
|
+ <view class="workFooter" wx:if="{{videoInfo.userRead.status!='CHECK'}}">
|
|
|
+ <button class="resetBtn mangeL-box" open-type="share" data-info='{{videoInfo}}'>
|
|
|
+ <image src="/static/share.png" mode="" class="icon" />
|
|
|
+ <view class="icon-name">分享</view>
|
|
|
+ </button>
|
|
|
+ <view class="mangeL-box" bindtap="collect">
|
|
|
+ <image src="{{videoInfoCopy.isFavorites ? '/static/star_colored.png' : '/static/star.png'}}" mode=""
|
|
|
+ class="icon" />
|
|
|
+ <view class="icon-name">{{videoInfoCopy.isFavorites?'已收藏':'收藏'}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="mangeL-box" bindtap="openComment">
|
|
|
+ <image src="/static/comment.png" mode="" class="icon" />
|
|
|
+ <view class="icon-name">{{filters.numFilter(videoInfoCopy.userRead.commentAmount)}}</view>
|
|
|
+ </view>
|
|
|
+ <view class="mangeL-box" bindtap="likeVideo">
|
|
|
+ <image src="{{videoInfoCopy.isLike ? '/static/heart_colored.png' : '/static/heart.png'}}" mode=""
|
|
|
+ class="icon" />
|
|
|
+ <view class="icon-name">{{filters.numFilter(videoInfoCopy.userRead.likeAmount)}}</view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- </block>
|
|
|
+ <block wx:if="{{videoType!='my'}}">
|
|
|
+ <view class="toReading" bindtap="toPkPage" wx:if="{{videoInfo.userRead.type=='READ'}}">
|
|
|
+ <image src="/static/reading.png" class="reading" mode="" />
|
|
|
+ <view class="reading-text">挑战PK</view>
|
|
|
+ </view>
|
|
|
+ <view class="toReading" bindtap="toPkPage" wx:if="{{videoInfo.userRead.type=='EXAMPLE'}}">
|
|
|
+ <image src="/static/reading.png" class="reading" mode="" />
|
|
|
+ <view class="reading-text">去朗读</view>
|
|
|
+ </view>
|
|
|
+ </block>
|
|
|
</view>
|