shaogen1995 пре 3 година
родитељ
комит
59a048db93
3 измењених фајлова са 15 додато и 1 уклоњено
  1. 1 0
      web/src/views/tab3/index.vue
  2. 13 1
      web/src/views/tab4/tab4-1.vue
  3. 1 0
      web/src/views/tab4/tab4-5.vue

+ 1 - 0
web/src/views/tab3/index.vue

@@ -486,6 +486,7 @@ export default {
       video {
         vertical-align: top;
         width: 100%;
+        max-height: 96vh;
       }
     }
   }

+ 13 - 1
web/src/views/tab4/tab4-1.vue

@@ -22,6 +22,7 @@
         autoplay
         controls
       ></video>
+      <p>{{videoTxt}}</p>
     </div>
   </div>
   <div class="tab4-1 conNull" v-else>暂 无 数 据</div>
@@ -40,6 +41,7 @@ export default {
       videoSrc: "",
       videoList: [],
       baseURL: "",
+      videoTxt:''
     };
   },
   // 监听属性 类似于data概念
@@ -49,6 +51,7 @@ export default {
   // 方法集合
   methods: {
     async videoChange(val,ind) {
+      this.videoTxt=val.name
       this.videoSrc = val.filePath;
       this.videoInd=ind
       // 记录访问量
@@ -67,6 +70,7 @@ export default {
     this.videoSrc = this.videoList[0].filePath;
     // 进页面为第一个视频添加访问量
     if(res.data.records[0]) await webVisit("video", res.data.records[0].id);
+    this.videoTxt =res.data.records[0].name
     // console.log(998,res);
   },
   beforeCreate() {}, // 生命周期 - 创建之前
@@ -120,6 +124,7 @@ export default {
         height: 100%;
       }
       .video_name {
+        padding: 0 5px;
         overflow: hidden;
         text-overflow: ellipsis;
         white-space: nowrap;
@@ -142,7 +147,14 @@ export default {
     flex: 1;
     & > video {
       width: 100%;
-      height: 100%;
+      height: 95%;
+    }
+    &>P {
+      padding: 0 10px;
+      text-align: center;
+      font-size: 18px;
+      height: 5%;
+      color: #bc4b39;
     }
   }
 }

+ 1 - 0
web/src/views/tab4/tab4-5.vue

@@ -131,6 +131,7 @@ export default {
 }
 
 .conNull {
+  padding-bottom: 200px;
   display: flex;
   font-size: 30px;
   align-items: center;