Sfoglia il codice sorgente

去掉课文监听isplaying参数

natasha 1 mese fa
parent
commit
7fad893194

+ 0 - 8
src/views/book/courseware/preview/components/article/NormalModelChs.vue

@@ -187,7 +187,6 @@
                                   v-for="(wItem, wIndex) in pItem.leg"
                                   :key="'ci' + wIndex + pIndex + index"
                                   :class="[
-                                    isPlaying &&
                                     pItem.chstimeList &&
                                     pItem.chstimeList[wIndex] &&
                                     curTime >= pItem.chstimeList[wIndex].wordBg &&
@@ -197,7 +196,6 @@
                                   ]"
                                   :style="{
                                     color:
-                                      isPlaying &&
                                       pItem.chstimeList &&
                                       pItem.chstimeList[wIndex] &&
                                       curTime >= pItem.chstimeList[wIndex].wordBg &&
@@ -293,7 +291,6 @@
                               class="NNPE-chs"
                               style="text-align: left"
                               :class="[
-                                isPlaying &&
                                 item.timeList &&
                                 item.timeList[pItem.sentIndex] &&
                                 curTime >= item.timeList[pItem.sentIndex].bg &&
@@ -322,7 +319,6 @@
                                   attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
                                 width: item.wordsList[pIndex + 1].chs.trim() === '' ? '6px' : '',
                                 backgroundColor:
-                                  isPlaying &&
                                   item.timeList &&
                                   item.timeList[pItem.sentIndex] &&
                                   curTime >= item.timeList[pItem.sentIndex].bg &&
@@ -437,7 +433,6 @@
                               class="NNPE-chs"
                               style="text-align: left"
                               :class="[
-                                isPlaying &&
                                 item.timeList &&
                                 item.timeList[pItem.sentIndex] &&
                                 curTime >= item.timeList[pItem.sentIndex].bg &&
@@ -466,7 +461,6 @@
                                   attrib && attrib.font_size ? attrib.font_size.replace('pt', '') * 1.4 + 'pt' : '28px',
                                 width: item.wordsList[pIndex + 2].chs.trim() === '' ? '6px' : '',
                                 backgroundColor:
-                                  isPlaying &&
                                   item.timeList &&
                                   item.timeList[pItem.sentIndex] &&
                                   curTime >= item.timeList[pItem.sentIndex].bg &&
@@ -596,7 +590,6 @@
                               <span
                                 :key="'ci' + wIndex + pIndex + index"
                                 :class="[
-                                  isPlaying &&
                                   pItem.chstimeList &&
                                   pItem.chstimeList[wIndex] &&
                                   curTime >= pItem.chstimeList[wIndex].wordBg &&
@@ -620,7 +613,6 @@
                                       : '28px',
                                   width: pItem.chs[wIndex].trim() === '' ? '6px' : '',
                                   color:
-                                    isPlaying &&
                                     pItem.chstimeList &&
                                     pItem.chstimeList[wIndex] &&
                                     curTime >= pItem.chstimeList[wIndex].wordBg &&