Ver Fonte

对话文章注释

natasha há 2 anos atrás
pai
commit
f9f7157796

+ 0 - 4
src/components/Adult/preview/DialogueArticleViewChs/AnswerModel.vue

@@ -204,10 +204,6 @@
                               curTime <= item.timeList[pItem.sentIndex].ed
                                 ? 'active'
                                 : '',
-                              pItem.paraIndex == paraIndex &&
-                              pItem.sentIndex == sentIndex
-                                ? 'overActive'
-                                : '',
                               pItem.chstimeList &&
                               pItem.chstimeList[pItem.leg - 1] &&
                               curTime >=

+ 13 - 10
src/components/Adult/preview/DialogueArticleViewChs/NormalModelChs.vue

@@ -116,7 +116,7 @@
                         v-if="
                           item.wordsList[pIndex + 1] &&
                           item.wordsList[pIndex + 1].chs &&
-                          chsFhList.indexOf(item.wordsList[pIndex + 1].chs) > -1
+                          chsFhList.indexOf(item.wordsList[pIndex + 1].chs) > -1 || item.wordsList[pIndex + 1].chs== '#'
                         "
                       >
                         <span class="NNPE-words-box">
@@ -127,6 +127,7 @@
                               pItem.className ? pItem.className : '',
                               noFont.indexOf(pItem.pinyin) > -1 ? 'noFont' : '',
                             ]"
+                            @click.stop="viewNotes($event, pItem.pinyin)"
                             >{{ pItem.pinyin }}</span
                           >
                           <span class="NNPE-chs">
@@ -143,7 +144,7 @@
                                     ? 'wordActive'
                                     : '',
                                 ]"
-                                >{{ pItem.chs[wIndex] }}</span
+                                >{{ NumberList.indexOf(pItem.pinyin)==-1 ? pItem.chs[wIndex] : '' }}</span
                               >
                             </template>
                           </span>
@@ -156,6 +157,7 @@
                               pItem.className ? pItem.className : '',
                               noFont.indexOf(pItem.pinyin) > -1 ? 'noFont' : '',
                             ]"
+                            @click.stop="viewNotes($event, pItem.pinyin)"
                             >{{ pItem.pinyin }}</span
                           >
                         </span>
@@ -170,6 +172,7 @@
                                 ? 'noFont'
                                 : '',
                             ]"
+                            @click.stop="viewNotes($event, item.wordsList[pIndex + 1].pinyin)"
                             style="text-align: left"
                             >{{ item.wordsList[pIndex + 1].pinyin }}</span
                           >
@@ -187,7 +190,7 @@
                                 ? 'wordActive'
                                 : '',
                             ]"
-                            >{{ item.wordsList[pIndex + 1].chs }}</span
+                            >{{ NumberList.indexOf(item.wordsList[pIndex + 1].pinyin)==-1 ? item.wordsList[pIndex + 1].chs : '' }}</span
                           >
                           <span
                             v-if="
@@ -201,6 +204,7 @@
                                 ? 'noFont'
                                 : '',
                             ]"
+                            @click.stop="viewNotes($event, item.wordsList[pIndex + 1].pinyin)"
                             style="text-align: left"
                             >{{ item.wordsList[pIndex + 1].pinyin }}</span
                           >
@@ -224,6 +228,7 @@
                                 ? 'noFont'
                                 : '',
                             ]"
+                            @click.stop="viewNotes($event, item.wordsList[pIndex + 2].pinyin)"
                             style="text-align: left"
                             >{{ item.wordsList[pIndex + 2].pinyin }}</span
                           >
@@ -238,10 +243,6 @@
                               curTime <= item.timeList[pItem.sentIndex].ed
                                 ? 'active'
                                 : '',
-                              pItem.paraIndex == paraIndex &&
-                              pItem.sentIndex == sentIndex
-                                ? 'overActive'
-                                : '',
                               pItem.chstimeList &&
                               pItem.chstimeList[pItem.leg - 1] &&
                               curTime >=
@@ -251,7 +252,7 @@
                                 ? 'wordActive'
                                 : '',
                             ]"
-                            >{{ item.wordsList[pIndex + 2].chs }}</span
+                            >{{ NumberList.indexOf(item.wordsList[pIndex + 2].pinyin)==-1 ? item.wordsList[pIndex + 2].chs : '' }}</span
                           >
                           <span
                             v-if="
@@ -265,6 +266,7 @@
                                 ? 'noFont'
                                 : '',
                             ]"
+                            @click.stop="viewNotes($event, item.wordsList[pIndex + 2].pinyin)"
                             style="text-align: left"
                             >{{ item.wordsList[pIndex + 2].pinyin }}</span
                           >
@@ -303,7 +305,7 @@
                                   ? 'wordActive'
                                   : '',
                               ]"
-                              >{{ pItem.chs[wIndex] }}</span
+                              >{{ NumberList.indexOf(pItem.pinyin)==-1 ? pItem.chs[wIndex] : '' }}</span
                             >
                           </template>
                         </span>
@@ -317,6 +319,7 @@
                             pItem.className ? pItem.className : '',
                             noFont.indexOf(pItem.pinyin) > -1 ? 'noFont' : '',
                           ]"
+                          @click.stop="viewNotes($event, pItem.pinyin)"
                           >{{ pItem.pinyin }}</span
                         >
                       </template>
@@ -632,7 +635,7 @@ export default {
     },
     //词和标点合一起
     mergeWordSymbol(wItem) {
-      if (this.chsFhList.indexOf(wItem.chs) > -1) {
+      if (this.chsFhList.indexOf(wItem.chs) > -1||this.NumberList.indexOf(wItem.pinyin)>-1) {
         wItem.isShow = false;
       } else {
         wItem.isShow = true;

+ 13 - 17
src/components/Adult/preview/DialogueArticleViewChs/PhraseModelChs.vue

@@ -92,7 +92,7 @@
                         v-if="
                           item.wordsList[pIndex + 1] &&
                           item.wordsList[pIndex + 1].chs &&
-                          chsFhList.indexOf(item.wordsList[pIndex + 1].chs) > -1
+                          chsFhList.indexOf(item.wordsList[pIndex + 1].chs) > -1|| item.wordsList[pIndex + 1].chs== '#'
                         "
                       >
                         <span class="NNPE-words-box">
@@ -103,6 +103,7 @@
                               pItem.className ? pItem.className : '',
                               noFont.indexOf(item.pinyin) > -1 ? 'noFont' : '',
                             ]"
+                            @click.stop="viewNotes($event, pItem.pinyin)"
                             >{{ pItem.pinyin }}</span
                           >
                           <span
@@ -112,7 +113,7 @@
                                 ? 'newActive'
                                 : '',
                             ]"
-                            >{{ pItem.chs }}</span
+                            >{{ NumberList.indexOf(pItem.pinyin)==-1 ? pItem.chs : '' }}</span
                           >
                           <span
                             v-if="
@@ -123,6 +124,7 @@
                               pItem.className ? pItem.className : '',
                               noFont.indexOf(item.pinyin) > -1 ? 'noFont' : '',
                             ]"
+                            @click.stop="viewNotes($event, pItem.pinyin)"
                             >{{ pItem.pinyin }}</span
                           >
                         </span>
@@ -138,10 +140,11 @@
                                 ? 'noFont'
                                 : '',
                             ]"
+                            @click.stop="viewNotes($event, item.wordsList[pIndex + 1].pinyin)"
                             >{{ item.wordsList[pIndex + 1].pinyin }}</span
                           >
                           <span class="NNPE-chs" style="text-align: left">{{
-                            item.wordsList[pIndex + 1].chs
+                            NumberList.indexOf(item.wordsList[pIndex + 1].pinyin)==-1 ? item.wordsList[pIndex + 1].chs : ''
                           }}</span>
                           <span
                             v-if="
@@ -155,6 +158,7 @@
                                 ? 'noFont'
                                 : '',
                             ]"
+                            @click.stop="viewNotes($event, item.wordsList[pIndex + 1].pinyin)"
                             style="text-align: left"
                             >{{ item.wordsList[pIndex + 1].pinyin }}</span
                           >
@@ -178,6 +182,7 @@
                                 ? 'noFont'
                                 : '',
                             ]"
+                            @click.stop="viewNotes($event, item.wordsList[pIndex + 2].pinyin)"
                             style="text-align: left"
                             >{{ item.wordsList[pIndex + 2].pinyin }}</span
                           >
@@ -185,17 +190,6 @@
                             class="NNPE-chs"
                             style="text-align: left"
                             :class="[
-                              isPlaying &&
-                              item.timeList &&
-                              item.timeList[pItem.sentIndex] &&
-                              curTime >= item.timeList[pItem.sentIndex].bg &&
-                              curTime <= item.timeList[pItem.sentIndex].ed
-                                ? 'active'
-                                : '',
-                              pItem.paraIndex == paraIndex &&
-                              pItem.sentIndex == sentIndex
-                                ? 'overActive'
-                                : '',
                               pItem.chstimeList &&
                               pItem.chstimeList[pItem.leg - 1] &&
                               curTime >=
@@ -205,7 +199,7 @@
                                 ? 'wordActive'
                                 : '',
                             ]"
-                            >{{ item.wordsList[pIndex + 2].chs }}</span
+                            >{{ NumberList.indexOf(item.wordsList[pIndex + 2].pinyin)==-1 ? item.wordsList[pIndex + 2].chs : '' }}</span
                           >
                           <span
                             v-if="
@@ -219,6 +213,7 @@
                                 ? 'noFont'
                                 : '',
                             ]"
+                            @click.stop="viewNotes($event, item.wordsList[pIndex + 2].pinyin)"
                             style="text-align: left"
                             >{{ item.wordsList[pIndex + 2].pinyin }}</span
                           >
@@ -245,7 +240,7 @@
                               : '',
                             pItem.chs != '“' && pItem.padding ? 'padding' : '',
                           ]"
-                          >{{ pItem.chs }}</span
+                          >{{ NumberList.indexOf(pItem.pinyin)==-1 ? pItem.chs : '' }}</span
                         >
                         <span
                           v-if="
@@ -257,6 +252,7 @@
                             pItem.className ? pItem.className : '',
                             noFont.indexOf(pItem.pinyin) > -1 ? 'noFont' : '',
                           ]"
+                          @click.stop="viewNotes($event, pItem.pinyin)"
                           >{{ pItem.pinyin }}</span
                         >
                       </template>
@@ -556,7 +552,7 @@ export default {
     },
     //词和标点合一起
     mergeWordSymbol(wItem) {
-      if (this.chsFhList.indexOf(wItem.chs) > -1) {
+      if (this.chsFhList.indexOf(wItem.chs) > -1||this.NumberList.indexOf(wItem.pinyin)>-1) {
         wItem.isShow = false;
       } else {
         wItem.isShow = true;

+ 5 - 5
src/components/Adult/preview/DialogueArticleViewChs/Practicechs.vue

@@ -143,7 +143,7 @@
                           v-if="
                             item.sentArr[pIndex + 1] &&
                             item.sentArr[pIndex + 1].chs &&
-                            chsFhList.indexOf(item.sentArr[pIndex + 1].chs) > -1
+                            chsFhList.indexOf(item.sentArr[pIndex + 1].chs) > -1 || item.sentArr[pIndex + 1].chs== '#'
                           "
                         >
                           <span class="NNPE-words-box">
@@ -186,7 +186,7 @@
                                       : '',
                                     sentIndex == index ? 'wordBlank' : '',
                                   ]"
-                                  >{{ pItem.chs[wIndex] }}</span
+                                  >{{ NumberList.indexOf(pItem.pinyin)==-1 ? pItem.chs[wIndex] : '' }}</span
                                 >
                               </template>
                             </span>
@@ -237,7 +237,7 @@
                                   sentIndex == index ? 'wordBlank' : '',
                                 ]"
                               >
-                                {{ item.sentArr[pIndex + 1].chs }}</span
+                                {{ NumberList.indexOf(item.sentArr[pIndex + 1].pinyin)==-1 ? item.sentArr[pIndex + 1].chs : '' }}</span
                               >
                             </span>
                             <template v-if="curQue.pyPosition == 'bottom'">
@@ -297,7 +297,7 @@
                                   sentIndex == index ? 'wordBlank' : '',
                                 ]"
                               >
-                                {{ item.sentArr[pIndex + 2].chs }}</span
+                                {{ NumberList.indexOf(item.sentArr[pIndex + 2].pinyin)==-1 ? item.sentArr[pIndex + 2].chs : '' }}</span
                               >
                             </span>
                             <template v-if="curQue.pyPosition == 'bottom'">
@@ -784,7 +784,7 @@ export default {
     },
     //词和标点合一起
     mergeWordSymbol(wItem) {
-      if (this.chsFhList.indexOf(wItem.chs) > -1) {
+      if (this.chsFhList.indexOf(wItem.chs) > -1||this.NumberList.indexOf(wItem.pinyin)>-1) {
         wItem.isShow = false;
       } else {
         wItem.isShow = true;

+ 13 - 13
src/components/Adult/preview/DialogueArticleViewChs/WordModelChs.vue

@@ -87,7 +87,7 @@
                         v-if="
                           item.wordsList[pIndex + 1] &&
                           item.wordsList[pIndex + 1].chs &&
-                          chsFhList.indexOf(item.wordsList[pIndex + 1].chs) > -1
+                          chsFhList.indexOf(item.wordsList[pIndex + 1].chs) > -1 || item.wordsList[pIndex + 1].chs== '#'
                         "
                       >
                         <span class="NNPE-words-box">
@@ -98,6 +98,7 @@
                               pItem.className ? pItem.className : '',
                               noFont.indexOf(item.pinyin) > -1 ? 'noFont' : '',
                             ]"
+                            @click.stop="viewNotes($event, pItem.pinyin)"
                             >{{ pItem.pinyin }}</span
                           >
                           <span
@@ -110,7 +111,7 @@
                                 ? 'wordActive'
                                 : '',
                             ]"
-                            >{{ pItem.chs }}</span
+                            >{{ NumberList.indexOf(pItem.pinyin)==-1 ? pItem.chs : '' }}</span
                           >
                           <span
                             v-if="
@@ -121,6 +122,7 @@
                               pItem.className ? pItem.className : '',
                               noFont.indexOf(item.pinyin) > -1 ? 'noFont' : '',
                             ]"
+                            @click.stop="viewNotes($event, pItem.pinyin)"
                             >{{ pItem.pinyin }}</span
                           >
                         </span>
@@ -135,11 +137,12 @@
                                 ? 'noFont'
                                 : '',
                             ]"
+                            @click.stop="viewNotes($event, item.wordsList[pIndex + 1].pinyin)"
                             style="text-align: left"
                             >{{ item.wordsList[pIndex + 1].pinyin }}</span
                           >
                           <span class="NNPE-chs" style="text-align: left">{{
-                            item.wordsList[pIndex + 1].chs
+                            NumberList.indexOf(item.wordsList[pIndex + 1].pinyin)==-1 ? item.wordsList[pIndex + 1].chs : ''
                           }}</span>
                           <span
                             v-if="
@@ -153,6 +156,7 @@
                                 ? 'noFont'
                                 : '',
                             ]"
+                            @click.stop="viewNotes($event, item.wordsList[pIndex + 1].pinyin)"
                             style="text-align: left"
                             >{{ item.wordsList[pIndex + 1].pinyin }}</span
                           >
@@ -176,6 +180,7 @@
                                 ? 'noFont'
                                 : '',
                             ]"
+                            @click.stop="viewNotes($event, item.wordsList[pIndex + 2].pinyin)"
                             style="text-align: left"
                             >{{ item.wordsList[pIndex + 2].pinyin }}</span
                           >
@@ -183,13 +188,6 @@
                             class="NNPE-chs"
                             style="text-align: left"
                             :class="[
-                              isPlaying &&
-                              item.timeList &&
-                              item.timeList[pItem.sentIndex] &&
-                              curTime >= item.timeList[pItem.sentIndex].bg &&
-                              curTime <= item.timeList[pItem.sentIndex].ed
-                                ? 'active'
-                                : '',
                               pItem.paraIndex == paraIndex &&
                               pItem.sentIndex == sentIndex
                                 ? 'overActive'
@@ -203,7 +201,7 @@
                                 ? 'wordActive'
                                 : '',
                             ]"
-                            >{{ item.wordsList[pIndex + 2].chs }}</span
+                            >{{ NumberList.indexOf(item.wordsList[pIndex + 2].pinyin)==-1 ? item.wordsList[pIndex + 2].chs : '' }}</span
                           >
                           <span
                             v-if="
@@ -217,6 +215,7 @@
                                 ? 'noFont'
                                 : '',
                             ]"
+                            @click.stop="viewNotes($event, item.wordsList[pIndex + 2].pinyin)"
                             style="text-align: left"
                             >{{ item.wordsList[pIndex + 2].pinyin }}</span
                           >
@@ -245,7 +244,7 @@
                               ? 'wordActive'
                               : '',
                           ]"
-                          >{{ pItem.chs }}</span
+                          >{{ NumberList.indexOf(pItem.pinyin)==-1 ? pItem.chs : '' }}</span
                         >
                         <span
                           v-if="
@@ -257,6 +256,7 @@
                             pItem.className ? pItem.className : '',
                             noFont.indexOf(item.pinyin) > -1 ? 'noFont' : '',
                           ]"
+                          @click.stop="viewNotes($event, pItem.pinyin)"
                           >{{ pItem.pinyin }}</span
                         >
                       </template>
@@ -565,7 +565,7 @@ export default {
     },
     //词和标点合一起
     mergeWordSymbol(wItem) {
-      if (this.chsFhList.indexOf(wItem.chs) > -1) {
+      if (this.chsFhList.indexOf(wItem.chs) > -1 ||this.NumberList.indexOf(wItem.pinyin)>-1) {
         wItem.isShow = false;
       } else {
         wItem.isShow = true;

+ 1 - 0
src/components/Adult/preview/DialogueArticleViewChs/index.vue

@@ -278,6 +278,7 @@ export default {
   created() {
     let data = JSON.parse(getToken());
     this.tokenData = data;
+    console.log('2022-10-19')
   },
   //生命周期 - 挂载完成(可以访问DOM元素)
   mounted() {