Jelajahi Sumber

销售直播代码 修改直播间 样式

yuhongqi 3 minggu lalu
induk
melakukan
ea5977376d
2 mengubah file dengan 12 tambahan dan 10 penghapusan
  1. 2 2
      src/views/live/live/index.vue
  2. 10 8
      src/views/live/liveConsole/index.vue

+ 2 - 2
src/views/live/live/index.vue

@@ -605,7 +605,7 @@ export default {
       this.$router.push('/live/liveConsole/' + row.liveId)
     },
     handleEnded(row){
-      this.$confirm('是否确认关闭录播直播间?', "警告", {
+      this.$confirm('是否确认关闭直播间?', "警告", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         type: "warning"
@@ -614,7 +614,7 @@ export default {
       }).catch(() => {});
     },
     handleStart(row){
-      this.$confirm('是否确认开启录播直播间?', "警告", {
+      this.$confirm('是否确认开启直播间?', "警告", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         type: "warning"

+ 10 - 8
src/views/live/liveConsole/index.vue

@@ -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 {