Browse Source

对话文章中的注释

guanchunjie 3 years ago
parent
commit
fab1a240e1

+ 9 - 2
src/components/Adult/preview/DialogueArticleViewChs/NormalModelChs.vue

@@ -200,7 +200,7 @@ import RemarkChs from "./RemarkChs.vue";
 import Soundrecord from "../Soundrecord.vue";
 export default {
   name: "DialogueNormalModelChs",
-  props: ["curQue", "colorBox"],
+  props: ["curQue", "colorBox", "NNPEAnnotationList", "bodyLeft", "bodyWidth"],
   components: {
     AudioLine,
     RoleChs,
@@ -248,6 +248,7 @@ export default {
       clientY: 0,
       top: 0,
       left: 0,
+      curNoteCon: null,
     };
   },
   computed: {},
@@ -450,7 +451,12 @@ export default {
       let _this = this;
       _this.isNoteShow = true;
       _this.oldNoteNum = val;
-      //this.
+      let noteIndex = Number(val);
+      if (_this.NNPEAnnotationList && _this.NNPEAnnotationList.length > 0) {
+        _this.curNoteCon = _this.NNPEAnnotationList[noteIndex]
+          ? _this.NNPEAnnotationList[noteIndex]
+          : null;
+      }
     },
   },
   //生命周期 - 创建完成(可以访问当前this实例)
@@ -458,6 +464,7 @@ export default {
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {
     console.log(this.curQue);
+    console.log(this.NNPEAnnotationList);
     if (this.curQue) {
       this.handleData();
     }

+ 2 - 2
src/components/Adult/preview/DialogueArticleViewChs/index.vue

@@ -50,7 +50,7 @@
         :bodyLeft="bodyLeft"
         :bodyWidth="bodyWidth"
         :colorBox="colorBox"
-        :NotesList="NotesList"
+        :NNPEAnnotationList="NNPEAnnotationList"
         v-if="!showPhrases && !showPractice && !showWord"
       />
       <PhraseModel
@@ -90,7 +90,7 @@ import WordModel from "./WordModelChs.vue"; // 语音练习模式
 
 export default {
   name: "ArticleView",
-  props: ["curQue", "NNPENewWordList", "NotesList", "colorBox"],
+  props: ["curQue", "NNPENewWordList", "NNPEAnnotationList", "colorBox"],
   components: { NormalModelChs, Practice, WordModel, PhraseModel },
   data() {
     return {