zq 2 недель назад
Родитель
Сommit
82265d9873

+ 4 - 3
src/components/CommonPreview.vue

@@ -343,7 +343,7 @@ export default {
         ({ courseware_info }) => {
           this.courseware_info = { ...this.courseware_info, ...courseware_info };
           this.getLangList();
-        }
+        },
       );
     },
     /**
@@ -390,7 +390,7 @@ export default {
       GetLanguageTypeList({ book_id: this.courseware_info.book_id, is_contain_zh: 'true' }).then(
         ({ language_type_list }) => {
           this.langList = language_type_list;
-        }
+        },
       );
     },
 
@@ -496,9 +496,10 @@ export default {
       this.$refs.courserware.handleResult(
         this.$refs.previewMain.scrollTop,
         this.$refs.previewMain.scrollLeft,
-        this.select_node
+        this.select_node,
       );
     },
+
     /**
      * 处理侧边栏图标点击事件
      * @param {string} handle - 处理函数名

+ 4 - 3
src/mobile_preview/index.vue

@@ -199,9 +199,10 @@ export default {
         ({ courseware_info }) => {
           this.courseware_info = { ...this.courseware_info, ...courseware_info };
           this.getLangList();
-        }
+        },
       );
     },
+
     /**
      * 得到课件内容(展示内容)
      * @param {string} id - 课件ID
@@ -247,7 +248,7 @@ export default {
       GetLanguageTypeList({ book_id: this.courseware_info.book_id, is_contain_zh: 'true' }).then(
         ({ language_type_list }) => {
           this.langList = language_type_list;
-        }
+        },
       );
     },
 
@@ -311,7 +312,7 @@ export default {
       this.$refs.courserware.handleResult(
         this.$refs.previewMain.scrollTop,
         this.$refs.previewMain.scrollLeft,
-        this.select_node
+        this.select_node,
       );
     },
 

+ 1 - 1
src/views/book/courseware/data/audio.js

@@ -33,7 +33,7 @@ export function getAudioData() {
     min_height: '110',
     property: getAudioProperty(),
     file_info_list: [],
-    file_id_list: [], // 文件 id['20032-121212', '20032-121216']
+    file_id_list: [], // 文件 id ['20032-121212', '20032-121216']
     // 内容中包含的文件列表,
     file_list: [],
     mind_map: {

+ 0 - 2
src/views/book/courseware/preview/components/audio/AudioPreview.vue

@@ -114,8 +114,6 @@ export default {
         this.fileLen = val.file_list.length;
         if (this.fileLen > 0 && this.data.property.view_method === 'list') {
           const ele = this.$refs.audioAreaBox;
-          // this.elementWidth = ele.clientWidth;
-          // this.elementHeight = ele.clientHeight;
 
           const sn_position = this.data.property.sn_position;
           // 序号在左和右补齐序号高度,去掉padding(8*2)

+ 1 - 0
src/views/book/courseware/preview/components/common/AudioPlay.vue

@@ -178,6 +178,7 @@ export default {
     getCurTime(curTime) {
       this.curTime = curTime * 1000;
     },
+
     playAudio() {
       if (!this.url) return;
       const audio = this.$refs[this.fileId];

+ 1 - 0
src/views/book/courseware/preview/components/common/PreviewMixin.js

@@ -102,6 +102,7 @@ const mixin = {
     getAnswer() {
       return this.answer;
     },
+
     /**
      * 显示答案
      * @param {boolean} isJudgingRightWrong 是否判断对错