|
@@ -63,7 +63,7 @@
|
|
|
<!-- 直播/视频 start -->
|
|
|
<el-col class="live-console-col" :span="12">
|
|
|
<div style="background: #000; border-radius: 5px; overflow: hidden; margin: 10px 5px;">
|
|
|
- <div style="border-radius: 5px; overflow: hidden;" v-if="livingUrl.length > 0">
|
|
|
+ <div style="border-radius: 5px; overflow: hidden;" v-if="liveType == 1">
|
|
|
<video
|
|
|
controls
|
|
|
ref="livingPlayer"
|
|
@@ -72,7 +72,7 @@
|
|
|
style="display: block; background: #000; height: 45vh;"
|
|
|
></video>
|
|
|
</div>
|
|
|
- <div style="border-radius: 5px; overflow: hidden;" v-else-if="videoUrl.length > 0">
|
|
|
+ <div style="border-radius: 5px; overflow: hidden;" v-else-if="liveType == 2">
|
|
|
<video
|
|
|
controls
|
|
|
ref="videoPlayer"
|
|
@@ -86,12 +86,12 @@
|
|
|
style="display: block; background: #000; height: 45vh;"
|
|
|
></video>
|
|
|
</div>
|
|
|
- <div style="border-radius: 5px; overflow: hidden;" v-else-if="!isAudit">
|
|
|
- <img :src="require('@/assets/images/videoIsAudit.png')" style="width: 100%; height: 45vh;">
|
|
|
- </div>
|
|
|
- <div style="border-radius: 5px; overflow: hidden;" v-else>
|
|
|
- <img :src="require('@/assets/images/videoNotStart.png')" style="width: 100%; height: 45vh;">
|
|
|
- </div>
|
|
|
+<!-- <div style="border-radius: 5px; overflow: hidden;" v-else-if="!isAudit">-->
|
|
|
+<!-- <img :src="require('@/assets/images/videoIsAudit.png')" style="width: 100%; height: 45vh;">-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- <div style="border-radius: 5px; overflow: hidden;" v-else>-->
|
|
|
+<!-- <img :src="require('@/assets/images/videoNotStart.png')" style="width: 100%; height: 45vh;">-->
|
|
|
+<!-- </div>-->
|
|
|
</div>
|
|
|
<!-- 底部导航栏 -->
|
|
|
<div style="display: flex; justify-content: space-around; padding: 15px 0; background: #fff; border-top: 1px solid #f0f0f0;">
|
|
@@ -261,6 +261,7 @@ export default {
|
|
|
newMsg: '',
|
|
|
isAudit: false,
|
|
|
myChart: null, // 用于存储 ECharts 实例
|
|
|
+ liveType: 1,
|
|
|
tableRadio: '订单数',
|
|
|
// ... 其他数据 ...
|
|
|
searchQuery: {timeOptions:'2',timeGranularity:'10',liveId: null}, // 搜索查询条件
|
|
@@ -360,6 +361,7 @@ export default {
|
|
|
if (res.data.liveType == 1) {
|
|
|
this.getLiveUrl();
|
|
|
} else {
|
|
|
+ this.liveType = 2
|
|
|
this.videoUrl = res.data.videoUrl;
|
|
|
}
|
|
|
} else {
|