Browse Source

Merge branch 'NPC-lhd'

natasha 2 năm trước cách đây
mục cha
commit
ba5653acd8

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

@@ -237,6 +237,15 @@
                       :cur-que="itemss.data"
                       :theme-color="themeColor"
                       :task-model="TaskModel"
+                      :indexStr="
+                        index +
+                        '_' +
+                        indexs +
+                        '_' +
+                        indexss +
+                        '_' +
+                        currentTreeID
+                      "
                     />
                   </template>
                   <template v-if="itemss.type == 'NewWord_chs'">
@@ -248,6 +257,15 @@
                       :indexs="indexs"
                       :indexss="indexss"
                       :task-model="TaskModel"
+                      :indexStr="
+                        index +
+                        '_' +
+                        indexs +
+                        '_' +
+                        indexss +
+                        '_' +
+                        currentTreeID
+                      "
                     />
                   </template>
                   <template v-if="itemss.type == 'annotation_chs'">
@@ -256,6 +274,15 @@
                       :cur-que="itemss.data"
                       :theme-color="themeColor"
                       :task-model="TaskModel"
+                      :indexStr="
+                        index +
+                        '_' +
+                        indexs +
+                        '_' +
+                        indexss +
+                        '_' +
+                        currentTreeID
+                      "
                     />
                   </template>
                   <template v-if="itemss.type == 'notes_chs'">

+ 4 - 5
src/components/Adult/preview/WordPhrase.vue

@@ -24,7 +24,6 @@
         </template>
       </div>
     </div>
-
     <el-collapse-transition>
       <div
         class="NPC-word-list"
@@ -40,7 +39,7 @@
           "
         >
           <AudioLine
-            audioId="SelectYinjieAudio"
+            :audioId="'SelectYinjieAudio'+ indexStr"
             :mp3="curQue.mp3_list[0].id"
             :getCurTime="getCurTime"
             :themeColor="themeColor"
@@ -97,7 +96,7 @@
                   @click="palyAudio(sItem.sIndex)"
                 ></span>
                 <audio
-                  :id="'word' + indexs + indexss + sItem.sIndex"
+                  :id="'word' + indexStr+sItem.sIndex"
                   :src="sItem.mp3_list[0].id"
                 ></audio>
               </template>
@@ -240,7 +239,7 @@ export default {
     WordPhraseDetail,
     AudioLine,
   },
-  props: ["curQue", "themeColor", "currentTreeID", "indexs", "indexss"],
+  props: ["curQue", "themeColor", "currentTreeID", "indexs", "indexss","indexStr"],
   data() {
     //这里存放数据
     return {
@@ -283,7 +282,7 @@ export default {
       let _this = this;
       _this.stopAudio();
       let node = document.getElementById(
-        "word" + _this.indexs + _this.indexss + sIndex
+        "word" + _this.indexStr+sIndex
       );
       let mp3 = node.src;
       let audio = document.getElementsByTagName("audio");