提交 a979c5a3 authored 作者: 王鹏飞's avatar 王鹏飞

增加观看回放状态

上级 a72b0951
......@@ -26,7 +26,7 @@
<div class="live-item-content">
<div class="live-item-content__title">{{ subitem.topic }}</div>
<div class="live-item-content__time">{{ subitem.start_time }}</div>
<div class="live-item-content__status">{{ calcTimeText(subitem.start_time, subitem.live_status) }}</div>
<div class="live-item-content__status">{{ calcTimeText(subitem) }}</div>
</div>
</div>
</div>
......@@ -178,7 +178,8 @@ export default {
url && window.open(url, '_blank')
},
// 计算日期
calcTimeText(liveTime, liveStatus) {
calcTimeText(data) {
let { start_time: liveTime, live_status: liveStatus } = data
const map = {
1: this.$t('live.notStarted'),
2: this.$t('live.liveStreaming'),
......@@ -208,6 +209,9 @@ export default {
})
}
}
if (liveStatus === 3 && data.enable_record && data.record_url) {
result = this.$t('live.watchReplay')
}
return result
}
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论