소스 검색

英文翻译

natasha 2 년 전
부모
커밋
b6ed0e44ec

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 683 - 311
src/components/Adult/preview/ArticleViewChs/NormalModelChs.vue


+ 12 - 4
src/components/Adult/preview/ArticleViewChs/PhraseModelChs.vue

@@ -348,7 +348,9 @@
                                     
                                     ]"
                                     @click.stop="viewNotes($event, pItem.chs)"
-                                    >{{ pItem.chs[wIndex] }}</span
+                                    >{{ NumberList.indexOf(pItem.pinyin) == -1
+                                        ? pItem.chs[wIndex]
+                                        : "" }}</span
                                 >
                                 </template>
                             </span>
@@ -389,7 +391,9 @@
                                 ]"
                                 @click.stop="viewNotes($event, item.sentArr[pIndex + 1].chs)"
                                 >
-                                {{ 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'">
@@ -438,7 +442,9 @@
                                 ]"
                                 @click.stop="viewNotes($event, item.sentArr[pIndex + 2].chs)"
                                 >
-                                {{ 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'">
@@ -491,7 +497,9 @@
                                     
                                 ]"
                                 @click.stop="viewNotes($event, pItem.chs)"
-                                >{{ pItem.chs[wIndex] }}</span
+                                >{{ NumberList.indexOf(pItem.pinyin) == -1
+                                        ? pItem.chs[wIndex]
+                                        : "" }}</span
                                 >
                             </template>
                             </span>

+ 34 - 4
src/components/Adult/preview/ArticleViewChs/Practicechs.vue

@@ -125,7 +125,9 @@
                                 : '',
                               sentIndex == index ? 'wordBlank' : '',
                             ]"
-                            >{{ pItem.chs[wIndex] }}</span
+                            >{{ NumberList.indexOf(pItem.pinyin) == -1
+                                        ? pItem.chs[wIndex]
+                                        : "" }}</span
                           >
                         </template>
                       </span>
@@ -169,7 +171,9 @@
                             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'">
@@ -221,7 +225,9 @@
                             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'">
@@ -277,7 +283,9 @@
                               : '',
                             sentIndex == index ? 'wordBlank' : '',
                           ]"
-                          >{{ pItem.chs[wIndex] }}</span
+                          >{{ NumberList.indexOf(pItem.pinyin) == -1
+                                        ? pItem.chs[wIndex]
+                                        : "" }}</span
                         >
                       </template>
                     </span>
@@ -419,6 +427,28 @@ export default {
       curTime: 0, //单位s
       chsFhList: [",", "。", "”", ":", "》", "《", "?", "!", ";"],
       enFhList: [",", ".", ";", "?", "!", ":", ">", "<"],
+      NumberList: [
+        "①",
+        "②",
+        "③",
+        "④",
+        "⑤",
+        "⑥",
+        "⑦",
+        "⑧",
+        "⑨",
+        "⑩",
+        "⑪",
+        "⑫",
+        "⑬",
+        "⑭",
+        "⑮",
+        "⑯",
+        "⑰",
+        "⑱",
+        "⑲",
+        "⑳",
+      ],
       stopAudio: false,
       sentIndex: 0,
       isRepeat: false,

+ 26 - 13
src/components/Adult/preview/ArticleViewChs/WordModelChs.vue

@@ -90,7 +90,9 @@
                                 ? 'wordActive'
                                 : '',
                             ]"
-                            >{{ pItem.chs }}</span
+                            >{{ NumberList.indexOf(pItem.pinyin) == -1
+                                        ? pItem.chs
+                                        : "" }}</span
                             >
                             <span
                             v-if="
@@ -119,7 +121,9 @@
                                 ? 'active'
                                 : '',
                             ]"
-                            >{{ item.wordsList[pIndex + 1].chs }}</span
+                            >{{ NumberList.indexOf(item.wordsList[pIndex + 1].pinyin) == -1
+                                        ? item.wordsList[pIndex + 1].chs
+                                        : "" }}</span
                             >
                             <span
                             v-if="
@@ -173,7 +177,9 @@
                                 ? 'wordActive'
                                 : '',
                             ]"
-                            >{{ item.wordsList[pIndex + 2].chs }}</span
+                            >{{ NumberList.indexOf(item.wordsList[pIndex + 2].pinyin) == -1
+                                        ? item.wordsList[pIndex + 2].chs
+                                        : "" }}</span
                             >
                             <span
                             v-if="
@@ -212,7 +218,9 @@
                                 : '',
                             pItem.chs != '“' && pItem.padding && config.isShowPY ? 'padding' : '',
                             ]"
-                            >{{ pItem.chs }}</span
+                            >{{ NumberList.indexOf(pItem.pinyin) == -1
+                                        ? pItem.chs
+                                        : "" }}</span
                         >
                         <span
                             v-if="curQue.pyPosition == 'bottom' && config.isShowPY && item.dhaspinyin"
@@ -279,9 +287,7 @@
                             v-if="
                             item.sentArr[pIndex + 1] &&
                             item.sentArr[pIndex + 1].chs &&
-                            (chsFhList.indexOf(item.sentArr[pIndex + 1].chs) > -1||
-                                NumberList.indexOf(item.sentArr[pIndex + 1].chs) >
-                                -1)
+                            (chsFhList.indexOf(item.sentArr[pIndex + 1].chs) > -1)
                             "
                         >
                             <span class="NNPE-words-box">
@@ -311,7 +317,9 @@
                                     :class="[
                                     
                                     ]"
-                                    >{{ pItem.chs[wIndex] }}</span
+                                    >{{ NumberList.indexOf(pItem.pinyin) == -1
+                                        ? pItem.chs[wIndex]
+                                        : "" }}</span
                                 >
                                 </template>
                             </span>
@@ -349,7 +357,9 @@
                                     
                                 ]"
                                 >
-                                {{ 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'">
@@ -395,7 +405,9 @@
                                     
                                 ]"
                                 >
-                                {{ 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'">
@@ -444,7 +456,9 @@
                                 :class="[
                                     
                                 ]"
-                                >{{ pItem.chs[wIndex] }}</span
+                                >{{ NumberList.indexOf(pItem.pinyin) == -1
+                                        ? pItem.chs[wIndex]
+                                        : "" }}</span
                                 >
                             </template>
                             </span>
@@ -707,7 +721,7 @@ export default {
                 ? wItem.chs.length
                 : sentArr[wIndex - 1].endIndex + wItem.chs.length;
             // this.judgePad(sItem, wItem, wIndex);
-            this.mergeWordSymbols(wItem);
+            this.mergeWordSymbol(wItem);
             let obj = {
               paraIndex: dIndex, //段落索引
               sentIndex: sIndex, //在段落中句子索引
@@ -873,7 +887,6 @@ export default {
         } else {
           writeModel[hz] = [answer];
         }
-        console.log(this.curQue.Bookanswer);
       }
     },
   },

이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.