浏览代码

修改视频不显示问题

秦鹏 3 年之前
父节点
当前提交
72d3e36927

+ 2 - 0
src/components/Adult/Preview.vue

@@ -372,6 +372,8 @@
                     :cur-que="itemss.data"
                     :type="itemss.type"
                     :theme-color="themeColor"
+                    :indexStr="index + '_' + indexs + '_' + indexss+'_'+currentTreeID"
+
                     v-if="refresh"
                   />
                 </template>

+ 3 - 3
src/components/Adult/preview/VideoControl.vue

@@ -11,7 +11,7 @@
       @mouseout="videoOut"
     ></video>
     <div :class="['qxd', qxdShow ? 'qxdshow' : 'qxdhide']">清晰度</div> -->
-    <div id="videoPlayer" @mousemove="viedeoMove"></div>
+    <div :id="'videoPlayer'+indexStr" @mousemove="viedeoMove"></div>
   </div>
 </template>
 
@@ -24,7 +24,7 @@ import "video.js/dist/video-js.css";
 export default {
   //import引入的组件需要注入到对象中才能使用
   components: {},
-  props: ["curQue", "fn_data", "type"],
+  props: ["curQue", "fn_data", "type","indexStr"],
   data() {
     //这里存放数据
     return {
@@ -87,7 +87,7 @@ export default {
     //   _this.VideoStatus = "暂停";
     // });
     _this.player = new vedioPlayer({
-      id: "videoPlayer",
+      id: `videoPlayer${_this.indexStr}`,
       autoplay: false,
       volume: 0.5, //视频初始音量大小
       loop: false, //是否循环播放

+ 7 - 1
src/components/Adult/preview/components/Freewrite.vue

@@ -75,7 +75,7 @@ export default {
   components: {
     FreeWriteQP,
   },
-  props: ["lineColor", "lineWidth", "cur", "wordNum","currentTreeID"],
+  props: ["lineColor", "lineWidth", "cur", "wordNum", "currentTreeID"],
   data() {
     return {
       width: this.wordNum != "2" ? 256 : 256,
@@ -128,6 +128,12 @@ export default {
           let Book_img = res.replace("data:image/png;base64,", "");
           this.history.push(this.$refs.esign.history);
           this.imgarr.push("data:image/png;base64," + Book_img);
+          let data = {
+            courseware_id: this.currentTreeID,
+            hz: this.cur.stem[0].con,
+            strokes_content: JSON.stringify(this.$refs.esign.history),
+            strokes_image_base64: Book_img,
+          };
           this.saveShow = false;
 
           //console.log(Book_img);

+ 2 - 2
src/views/adultInput.vue

@@ -532,11 +532,11 @@
                     />
                   </template>
                   <template v-else>
-                    <VideoControlView
+                    <!-- <VideoControlView
                       :curQue="topicIitem.data"
                       :type="topicIitem.type"
                       :fn_data="fn_data"
-                    />
+                    /> -->
                   </template>
                 </template>
                 <template v-if="topicIitem.type == 'table_chs'">