guhongwei преди 3 години
родител
ревизия
88c33e6dc9
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      src/views/twoweb/achieveLive/detail/videoLive.vue

+ 2 - 2
src/views/twoweb/achieveLive/detail/videoLive.vue

@@ -2,7 +2,7 @@
   <div id="videoLive">
     <el-row>
       <el-col :span="24" class="main">
-        <video id="videoElement" controls autoplay class="h5video"></video>
+        <video id="videoElement" controls autoplay class="h5video" height="480px" :poster="poster"></video>
         <!-- <video id="videoElement" autoplay controls style="width:500px;height:300px"></video> -->
       </el-col>
     </el-row>
@@ -20,6 +20,7 @@ export default {
   data: function() {
     return {
       info: {},
+      poster: require('@common/src/assets/hall.jpg'),
     };
   },
   async created() {
@@ -78,7 +79,6 @@ export default {
 .main {
   .h5video {
     width: 100%;
-    height: 480px;
     background: #000000;
   }
 }