浏览代码

文章普通模式练习

guanchunjie 3 年之前
父节点
当前提交
83ebd45100
共有 1 个文件被更改,包括 12 次插入10 次删除
  1. 12 10
      src/components/Adult/preview/ArticleViewChs/NormalModelChs.vue

+ 12 - 10
src/components/Adult/preview/ArticleViewChs/NormalModelChs.vue

@@ -119,11 +119,12 @@
                             pItem.sentIndex == sentIndex
                               ? 'overActive'
                               : '',
-                            curTime >= item.timeList &&
+                            item.timeList &&
                             item.timeList[pItem.sentIndex] &&
-                            item.timeList[pItem.sentIndex].wordsResultList[
-                              pItem.wordIndex
-                            ].wordBg &&
+                            curTime >=
+                              item.timeList[pItem.sentIndex].wordsResultList[
+                                pItem.wordIndex
+                              ].wordBg &&
                             curTime <= item.timeList[pItem.sentIndex].ed
                               ? 'wordActive'
                               : '',
@@ -169,11 +170,12 @@
                           pItem.sentIndex == sentIndex
                             ? 'overActive'
                             : '',
-                          curTime >= item.timeList &&
+                          item.timeList &&
                           item.timeList[pItem.sentIndex] &&
-                          item.timeList[pItem.sentIndex].wordsResultList[
-                            pItem.wordIndex
-                          ].wordBg &&
+                          curTime >=
+                            item.timeList[pItem.sentIndex].wordsResultList[
+                              pItem.wordIndex
+                            ].wordBg &&
                           curTime <= item.timeList[pItem.sentIndex].ed
                             ? 'wordActive'
                             : '',
@@ -216,7 +218,7 @@ import { timeStrToSen } from "@/utils/index";
 import AudioLine from "../AudioLine.vue";
 export default {
   name: "NormalModelChs",
-  props: ["curQue","noFont"],
+  props: ["curQue", "noFont"],
   components: {
     AudioLine,
   },
@@ -227,7 +229,7 @@ export default {
       chsFhList: [",", "。", "“", ":", "》", "《", "?", "!", ";"],
       enFhList: [",", ".", ";", "?", "!", ":", ">", "<"],
       newWords: ["鱼", "辩礼义"],
-      
+
       oldHz: "",
       hz: "",
       top: 0,