lsc 2 年之前
父節點
當前提交
beb1ed5d72

+ 1 - 1
dist/index.html

@@ -18,4 +18,4 @@
       border-radius: 10px;
       -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
       background-color: rgba(0, 0, 0, 0.1);
-    }</style><link href=./static/css/app.bd7097f0870f8c31a3d8aeac54fbe633.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.e0b99d2da8a8198154ec.js></script><script type=text/javascript src=./static/js/app.6c71b571ff4431c4915a.js></script></body></html><script>document.domain = "cocorobo.cn"</script>
+    }</style><link href=./static/css/app.a6d12d9a72cd67cb69932a0de53d0140.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.e0b99d2da8a8198154ec.js></script><script type=text/javascript src=./static/js/app.e2645e29e08c8aa51407.js></script></body></html><script>document.domain = "cocorobo.cn"</script>

文件差異過大導致無法顯示
+ 0 - 0
dist/static/css/app.a6d12d9a72cd67cb69932a0de53d0140.css


文件差異過大導致無法顯示
+ 0 - 0
dist/static/css/app.a6d12d9a72cd67cb69932a0de53d0140.css.map


文件差異過大導致無法顯示
+ 0 - 0
dist/static/css/app.bd7097f0870f8c31a3d8aeac54fbe633.css.map


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/app.6c71b571ff4431c4915a.js


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/app.6c71b571ff4431c4915a.js.map


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/app.e2645e29e08c8aa51407.js


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/app.e2645e29e08c8aa51407.js.map


文件差異過大導致無法顯示
+ 0 - 0
dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map


+ 1 - 0
src/components/components/pdf.vue

@@ -72,6 +72,7 @@ export default {
     pageTotalNum(val) {
       if (val) {
         this.loading.close();
+        this.$parent.setData();
       }
       this.$emit("getPageTotal", val);
     },

+ 38 - 20
src/components/liveProjectDetail.vue

@@ -1784,22 +1784,22 @@ export default {
             ) {
               this.dialogVisiblePick = true;
             }
-            // if (
-            //   res.data[0][0].handle &&
-            //   JSON.parse(res.data[0][0].handle).type == 1 &&
-            //   this.videoList.length
-            // ) {
-            //   let handle = JSON.parse(res.data[0][0].handle);
-            //   let a = this.$refs.zVideo;
+            if (
+              res.data[0][0].handle &&
+              JSON.parse(res.data[0][0].handle).type == 1 &&
+              this.videoList.length
+            ) {
+              let handle = JSON.parse(res.data[0][0].handle);
+              let a = this.$refs.zVideo;
 
-            //   if (handle.isPlay == 1) {
-            //     a.player.play();
-            //   } else if (handle.isPlay == 2) {
-            //     a.player.pause();
-            //   }
-            // } else if(this.$refs.zVideo){
-            //   this.$refs.zVideo.player.pause();
-            // }
+              if (handle.isPlay == 1) {
+                a.player.play();
+              } else if (handle.isPlay == 2) {
+                a.player.pause();
+              }
+            } else if (this.$refs.zVideo) {
+              this.$refs.zVideo.player.pause();
+            }
 
             if (this.ppage == res.data[0][0].page && this.isBlock !== 0) {
               return;
@@ -1881,6 +1881,28 @@ export default {
         }, 0);
       });
     },
+    getData() {
+      let params = {
+        id: this.cid,
+      };
+      this.ajax
+        .get(this.$store.state.api + "getRealTimeClassById", params)
+        .then((r) => {
+          let res = r.data[0][0];
+          this.pdfUrl = res.url;
+          this.tools = JSON.parse(res.content);
+        })
+        .catch((err) => {
+          // this.$message.error("查询失败");
+          console.error(err);
+        });
+    },
+    setData() {
+      let _this = this;
+      this.timer = setInterval(() => {
+        _this.setPage();
+      }, 1000);
+    },
   },
   beforeDestroy() {
     clearInterval(this.timer);
@@ -1888,11 +1910,7 @@ export default {
     // window.removeEventListener("message");
   },
   created() {
-    // this.selectSWork();
-    let _this = this;
-    this.timer = setInterval(() => {
-      _this.setPage();
-    }, 1000);
+    this.getData();
     // window.addEventListener("message", function (e) {
     //   // 监听 message 事件
     //   if (e.data.type && e.data.type == "shishi_canvas") {

部分文件因文件數量過多而無法顯示