guhongwei hace 4 años
padre
commit
3d98b1c643
Se han modificado 1 ficheros con 4 adiciones y 7 borrados
  1. 4 7
      src/views/halltwo/directTwo.vue

+ 4 - 7
src/views/halltwo/directTwo.vue

@@ -98,7 +98,7 @@
           <div class="w_1200">
             <el-col :span="24" class="three1">
               <el-col :span="12" class="left">
-                <video :src="dockInfo.file_path" autoplay controls="controls" v-if="dockInfo.file_path != null || ''">
+                <video :src="dockInfo.file_path" autoplay="autoplay" controls="controls" v-if="dockInfo.file_path != null || ''">
                   您的浏览器不支持 video 标签。
                 </video>
                 <div class="videointro" v-else>
@@ -356,9 +356,6 @@ export default {
     await this.searchInfo();
     await this.searchVideo();
   },
-  // beforeDestroy() {
-  //   this.clearInterval(this.timer);
-  // },
   methods: {
     ...dock({ dockQuery: 'query', dockFetch: 'fetch', goodsquery: 'goodsquery' }),
     ...expertsuser({ expertQuery: 'query' }),
@@ -456,7 +453,7 @@ export default {
     },
     seachtime() {
       // 倒计时
-      this.timer = setInterval(() => {
+      this.djstime = setInterval(() => {
         this.setTime(this.dockInfo.start_time);
       }, 1000);
     },
@@ -465,7 +462,7 @@ export default {
       let now = moment().format('YYYY-MM-DD HH:mm:ss');
       // let now = moment().format('2020-11-20 08:00:00');
       if (end == now) {
-        clearInterval(this.timer);
+        clearInterval(this.djstime);
         this.$set(this, `djs`, '展会开始');
       } else {
         let sec = moment(end).diff(now, 'seconds');
@@ -499,7 +496,7 @@ export default {
       this.timer = setInterval(() => {
         this.times--;
         if (this.times === 0) {
-          this.searchInfo();
+          this.searchVideo();
           this.times = 5;
           clearInterval(this.timer);
         }