| | |
| | | |
| | | <!-- 视频信息层 --> |
| | | <view class="video-info" :style="{bottom: marginBottom + 20 + 'px'}"> |
| | | <view> |
| | | <text class="video-author" @click="jumpToSearch">@{{item.authorName}}</text> |
| | | <view style="width: 100%; position: relative;"> |
| | | <text class="video-author">@{{item.authorName}}</text> |
| | | <text class="iconfont" @click="jumpToSearch" style="position: absolute;right: 45px;"></text> |
| | | </view> |
| | | <view style="width: 100%;word-wrap: break-word;white-space: normal;overflow-wrap: break-word;"> |
| | | <text class="video-title">{{item.title}}</text> |
| | | <text class="video-tag" v-for="(tag, index) in item.tagList" :key="tag.id">#{{tag.tagName}}</text> |
| | | </view> |
| | | |
| | | </view> |
| | | |
| | | <!-- 右侧互动按钮 --> |
| | |
| | | // } else { |
| | | // this.loadVideos(); |
| | | // } |
| | | if (this.videoList.length < 1) { |
| | | this.loadVideos(); |
| | | } |
| | | // 如果视频按下暂停后切换页面再回到页面时,只算暂停时间(因为暂停时间和离开页面时间是重复的,只算一个) |
| | | if(this.startHidenTime !== 0 && this.currentVideoIsPlaying) { |
| | | const duration = Date.now() - this.startHidenTime |
| | |
| | | } |
| | | |
| | | .video-info { |
| | | width: 70%; |
| | | width: 100%; |
| | | position: absolute; |
| | | bottom: 20px; |
| | | left: 20px; |