guhongwei 5 years ago
parent
commit
4dfe45e0ac
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/views/direct.vue

+ 6 - 3
src/views/direct.vue

@@ -52,7 +52,9 @@
                   <span>直播</span>
                 </el-col>
                 <el-col :span="24" class="video">
-                  直播换面
+                  <video :src="file_path" controls="controls" style="height: 395px; width: 100%;">
+                    您的浏览器不支持 video 标签。
+                  </video>
                 </el-col>
               </el-col>
               <el-col :span="24" class="right">
@@ -462,6 +464,7 @@ export default {
     two: require('@/assets/live/top_bg.png'),
     superOnes: require('@/assets/live/测试图片.jpg'),
     title: '',
+    file_path: '',
     xuqiu: '',
     chengguo: '',
     qiatan: '',
@@ -484,6 +487,8 @@ export default {
       // 标题
       let res = await this.dockFetch(this.id);
       this.$set(this, `title`, res.data.title);
+      this.$set(this, `file_path`, res.data.file_path);
+      console.log(res.data);
       // 交易实况
       let aaa = await this.tquery();
       let newaaa = aaa.data.filter(f => f.status == '1' || f.status == '2');
@@ -491,8 +496,6 @@ export default {
         var time = moment(val.meta.createdAt).format('YYYY-MM-DD hh:mm');
         val.time = time;
       }
-      console.log(newaaa);
-
       this.$set(this, `directlist`, newaaa);
       // 洽谈
       let abb = await this.tquery({ status: 0 });