natasha пре 2 година
родитељ
комит
4c21b22f8b

+ 10 - 11
src/components/Adult/preview/ArticleViewChs/Practicechs.vue

@@ -87,7 +87,7 @@
                     <span class="NNPE-words-box">
                       <template v-if="curQue.pyPosition == 'top'">
                         <span
-                          v-if="config.isShowPY && resObj.dhaspinyinArr[index]"
+                          v-if="config.isShowPY"
                           class="NNPE-pinyin"
                           :class="[
                             pItem.className ? pItem.className : '',
@@ -100,7 +100,7 @@
                       <span
                         class="NNPE-chs"
                         :class="[
-                          pItem.padding && config.isShowPY && resObj.dhaspinyinArr[index] ? 'padding' : '',
+                          pItem.padding && config.isShowPY ? 'padding' : '',
                           sentIndex == index ? 'wordBlank' : '',
                         ]"
                       >
@@ -122,7 +122,7 @@
                       </span>
                       <template v-if="curQue.pyPosition == 'bottom'">
                         <span
-                          v-if="config.isShowPY && resObj.dhaspinyinArr[index]"
+                          v-if="config.isShowPY"
                           class="NNPE-pinyin"
                           :class="[
                             pItem.className ? pItem.className : '',
@@ -136,7 +136,7 @@
                     <span class="NNPE-words-box">
                       <template v-if="curQue.pyPosition == 'top'">
                         <span
-                          v-if="config.isShowPY && resObj.dhaspinyinArr[index]"
+                          v-if="config.isShowPY"
                           :class="[
                             'NNPE-pinyin',
                             sentIndex == index ? 'wordBlank' : '',
@@ -165,7 +165,7 @@
                       </span>
                       <template v-if="curQue.pyPosition == 'bottom'">
                         <span
-                          v-if="config.isShowPY && resObj.dhaspinyinArr[index]"
+                          v-if="config.isShowPY"
                           :class="[
                             'NNPE-pinyin',
                             sentIndex == index ? 'wordBlank' : '',
@@ -188,7 +188,7 @@
                     >
                       <template v-if="curQue.pyPosition == 'top'">
                         <span
-                          v-if="config.isShowPY && resObj.dhaspinyinArr[index]"
+                          v-if="config.isShowPY"
                           :class="[
                             'NNPE-pinyin',
                             sentIndex == index ? 'wordBlank' : '',
@@ -217,7 +217,7 @@
                       </span>
                       <template v-if="curQue.pyPosition == 'bottom'">
                         <span
-                          v-if="config.isShowPY && resObj.dhaspinyinArr[index]"
+                          v-if="config.isShowPY"
                           :class="[
                             'NNPE-pinyin',
                             sentIndex == index ? 'wordBlank' : '',
@@ -234,7 +234,7 @@
                   <template v-else>
                     <template v-if="curQue.pyPosition == 'top'">
                       <span
-                        v-if="config.isShowPY && resObj.dhaspinyinArr[index]"
+                        v-if="config.isShowPY"
                         class="NNPE-pinyin"
                         :class="[
                           pItem.chs != '“' && pItem.padding ? 'padding' : '',
@@ -248,7 +248,7 @@
                     <span
                       class="NNPE-chs"
                       :class="[
-                        pItem.chs != '“' && pItem.padding && config.isShowPY && resObj.dhaspinyinArr[index]
+                        pItem.chs != '“' && pItem.padding && config.isShowPY
                           ? 'padding'
                           : '',
                         sentIndex == index ? 'wordBlank' : '',
@@ -274,7 +274,7 @@
                     </span>
                     <template v-if="curQue.pyPosition == 'bottom'">
                       <span
-                        v-if="config.isShowPY && resObj.dhaspinyinArr[index]"
+                        v-if="config.isShowPY"
                         class="NNPE-pinyin"
                         :class="[
                           pItem.chs != '“' && pItem.padding ? 'padding' : '',
@@ -597,7 +597,6 @@ export default {
           });
           resArr.push(sentArr);
         });
-
         timeArr.push(dItem.timeList);
         dhaspinyinArr.push(dhaspinyin)
       });

+ 2 - 1
src/components/Adult/preview/WordPhrase.vue

@@ -582,8 +582,9 @@ export default {
       }
       .NPC-word-tab-pinyin {
         font-family: "GB-PINYINOK-B";
-        white-space: nowrap;
+        // white-space: nowrap;
         font-size: 12px;
+        word-break: break-word;
         &.NPC-word-tab-pinyin-red {
           color: #e35454;
         }