优化
This commit is contained in:
@@ -34,12 +34,12 @@
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="play-status">
|
||||
<div class="live" v-if="isLiveing">
|
||||
<span class="label"></span>
|
||||
<i>直播中</i>
|
||||
<div class="live">
|
||||
<span class="label" v-if="isLiveing"></span>
|
||||
<i v-if="isLiveing">直播中</i>
|
||||
<em>{{ date }}</em>
|
||||
</div>
|
||||
<div v-else class="back-btn" @click="backLiveing">回到直播</div>
|
||||
<div v-if="!isLiveing" class="back-btn" @click="backLiveing">回到直播</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
@@ -295,8 +295,6 @@
|
||||
const date = new Date()
|
||||
const seconds = date.getHours() * 3600 + date.getMinutes() * 60 + date.getSeconds()
|
||||
|
||||
console.log(this.canvasWidth)
|
||||
|
||||
this.x = seconds / (24 * 60 * 60) * this.canvasWidth + 100
|
||||
},
|
||||
|
||||
@@ -564,6 +562,7 @@
|
||||
.live {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
line-height: 1;
|
||||
padding: 2px 5px;
|
||||
color: rgba(0,255,0,.8);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user