Просмотр исходного кода

文章和对话文章 音频 拼音

natasha 2 лет назад
Родитель
Сommit
68fd2ded3b

+ 5 - 1
src/components/Adult/preview/ArticleViewChs/NormalModelChs.vue

@@ -1,7 +1,11 @@
 <!--  -->
 <template>
   <div class="NNPE-ArticleView" v-if="curQue">
-    <div class="aduioLine-box aduioLine-practice">
+    <div class="aduioLine-box aduioLine-practice" v-if="
+            curQue.mp3_list &&
+            curQue.mp3_list.length > 0 &&
+            curQue.mp3_list[0].id
+          ">
       <div class="aduioLine-content">
         <template
           v-if="

+ 6 - 1
src/components/Adult/preview/ArticleViewChs/PhraseModelChs.vue

@@ -1,7 +1,11 @@
 <!--  -->
 <template>
   <div class="NNPE-ArticleView" v-if="curQue">
-    <div class="aduioLine-box aduioLine-practice">
+    <div class="aduioLine-box aduioLine-practice" v-if="
+            curQue.mp3_list &&
+            curQue.mp3_list.length > 0 &&
+            curQue.mp3_list[0].id
+          ">
       <div class="aduioLine-content">
         <template
           v-if="
@@ -323,6 +327,7 @@ export default {
       let curQue = JSON.parse(JSON.stringify(this.curQue));
       let dhaspinyin = false; // 每段是否有拼音
       curQue.detail.forEach((dItem, dIndex) => {
+        dhaspinyin = false
         let paraArr = [
           {
             pinyin: "",

+ 21 - 13
src/components/Adult/preview/ArticleViewChs/Practicechs.vue

@@ -2,7 +2,11 @@
 <template>
   <div class="NNPE-ArticleView" v-if="curQue">
     <a class="ArticleView-full" @click="fullScreen">全屏模式</a>
-    <div class="aduioLine-box aduioLine-practice">
+    <div class="aduioLine-box aduioLine-practice" v-if="
+            curQue.mp3_list &&
+            curQue.mp3_list.length > 0 &&
+            curQue.mp3_list[0].id
+          ">
       <div
         class="aduioLine-content"
         v-if="
@@ -83,7 +87,7 @@
                     <span class="NNPE-words-box">
                       <template v-if="curQue.pyPosition == 'top'">
                         <span
-                          v-if="config.isShowPY"
+                          v-if="config.isShowPY && resObj.dhaspinyinArr[index]"
                           class="NNPE-pinyin"
                           :class="[
                             pItem.className ? pItem.className : '',
@@ -96,7 +100,7 @@
                       <span
                         class="NNPE-chs"
                         :class="[
-                          pItem.padding && config.isShowPY ? 'padding' : '',
+                          pItem.padding && config.isShowPY && resObj.dhaspinyinArr[index] ? 'padding' : '',
                           sentIndex == index ? 'wordBlank' : '',
                         ]"
                       >
@@ -118,7 +122,7 @@
                       </span>
                       <template v-if="curQue.pyPosition == 'bottom'">
                         <span
-                          v-if="config.isShowPY"
+                          v-if="config.isShowPY && resObj.dhaspinyinArr[index]"
                           class="NNPE-pinyin"
                           :class="[
                             pItem.className ? pItem.className : '',
@@ -132,7 +136,7 @@
                     <span class="NNPE-words-box">
                       <template v-if="curQue.pyPosition == 'top'">
                         <span
-                          v-if="config.isShowPY"
+                          v-if="config.isShowPY && resObj.dhaspinyinArr[index]"
                           :class="[
                             'NNPE-pinyin',
                             sentIndex == index ? 'wordBlank' : '',
@@ -161,7 +165,7 @@
                       </span>
                       <template v-if="curQue.pyPosition == 'bottom'">
                         <span
-                          v-if="config.isShowPY"
+                          v-if="config.isShowPY && resObj.dhaspinyinArr[index]"
                           :class="[
                             'NNPE-pinyin',
                             sentIndex == index ? 'wordBlank' : '',
@@ -184,7 +188,7 @@
                     >
                       <template v-if="curQue.pyPosition == 'top'">
                         <span
-                          v-if="config.isShowPY"
+                          v-if="config.isShowPY && resObj.dhaspinyinArr[index]"
                           :class="[
                             'NNPE-pinyin',
                             sentIndex == index ? 'wordBlank' : '',
@@ -213,7 +217,7 @@
                       </span>
                       <template v-if="curQue.pyPosition == 'bottom'">
                         <span
-                          v-if="config.isShowPY"
+                          v-if="config.isShowPY && resObj.dhaspinyinArr[index]"
                           :class="[
                             'NNPE-pinyin',
                             sentIndex == index ? 'wordBlank' : '',
@@ -230,7 +234,7 @@
                   <template v-else>
                     <template v-if="curQue.pyPosition == 'top'">
                       <span
-                        v-if="config.isShowPY"
+                        v-if="config.isShowPY && resObj.dhaspinyinArr[index]"
                         class="NNPE-pinyin"
                         :class="[
                           pItem.chs != '“' && pItem.padding ? 'padding' : '',
@@ -244,7 +248,7 @@
                     <span
                       class="NNPE-chs"
                       :class="[
-                        pItem.chs != '“' && pItem.padding && config.isShowPY
+                        pItem.chs != '“' && pItem.padding && config.isShowPY && resObj.dhaspinyinArr[index]
                           ? 'padding'
                           : '',
                         sentIndex == index ? 'wordBlank' : '',
@@ -270,7 +274,7 @@
                     </span>
                     <template v-if="curQue.pyPosition == 'bottom'">
                       <span
-                        v-if="config.isShowPY"
+                        v-if="config.isShowPY && resObj.dhaspinyinArr[index]"
                         class="NNPE-pinyin"
                         :class="[
                           pItem.chs != '“' && pItem.padding ? 'padding' : '',
@@ -555,7 +559,10 @@ export default {
         timeArr = [];
       let curQue = JSON.parse(JSON.stringify(this.curQue));
       let wordTimeList = curQue.wordTime;
+      let dhaspinyin = false; // 每段是否有拼音
+      let dhaspinyinArr = []
       curQue.detail.forEach((dItem, dIndex) => {
+        dhaspinyin = false;
         dItem.wordsList.forEach((sItem, sIndex) => {
           let sentArr = [];
 
@@ -586,11 +593,13 @@ export default {
               timeList: [],
             };
             sentArr.push(obj);
+            if(wItem.pinyin) dhaspinyin=true
           });
           resArr.push(sentArr);
         });
 
         timeArr.push(dItem.timeList);
+        dhaspinyinArr.push(dhaspinyin)
       });
       if (wordTimeList && wordTimeList.length > 0) {
         this.mergeWordTime(resArr, wordTimeList);
@@ -603,8 +612,7 @@ export default {
           }
         });
       });
-      this.resObj = { sentList: resArr, timeList: timeList };
-      console.log(this.resObj);
+      this.resObj = { sentList: resArr, timeList: timeList,dhaspinyinArr:dhaspinyinArr };
     },
     mergeWordTime(resArr, wordTimeList) {
       resArr.forEach((item, index) => {

+ 6 - 1
src/components/Adult/preview/ArticleViewChs/WordModelChs.vue

@@ -1,7 +1,11 @@
 <!--  -->
 <template>
   <div class="NNPE-ArticleView" v-if="curQue">
-    <div class="aduioLine-box aduioLine-practice">
+    <div class="aduioLine-box aduioLine-practice" v-if="
+            curQue.mp3_list &&
+            curQue.mp3_list.length > 0 &&
+            curQue.mp3_list[0].id
+          ">
       <div class="aduioLine-content">
         <template
           v-if="
@@ -351,6 +355,7 @@ export default {
       let curQue = JSON.parse(JSON.stringify(this.curQue));
       let dhaspinyin = false; // 每段是否有拼音
       curQue.detail.forEach((dItem, dIndex) => {
+        dhaspinyin = false
         let paraArr = [
           {
             pinyin: "",

+ 17 - 9
src/components/Adult/preview/DialogueArticleViewChs/NormalModelChs.vue

@@ -1,7 +1,11 @@
 <!--  -->
 <template>
   <div class="NNPE-ArticleView" v-if="curQue">
-    <div class="aduioLine-box aduioLine-practice">
+    <div class="aduioLine-box aduioLine-practice" v-if="
+            curQue.mp3_list &&
+            curQue.mp3_list.length > 0 &&
+            curQue.mp3_list[0].id
+          ">
       <div class="aduioLine-content">
         <template
           v-if="
@@ -117,7 +121,7 @@
                       >
                         <span class="NNPE-words-box">
                           <span
-                            v-if="curQue.pyPosition == 'top' && config.isShowPY"
+                            v-if="curQue.pyPosition == 'top' && config.isShowPY && item.dhaspinyin"
                             class="NNPE-pinyin"
                             :class="[
                               pItem.className ? pItem.className : '',
@@ -145,7 +149,7 @@
                           </span>
                           <span
                             v-if="
-                              curQue.pyPosition == 'bottom' && config.isShowPY
+                              curQue.pyPosition == 'bottom' && config.isShowPY && item.dhaspinyin
                             "
                             class="NNPE-pinyin"
                             :class="[
@@ -157,7 +161,7 @@
                         </span>
                         <span class="NNPE-words-box">
                           <span
-                            v-if="curQue.pyPosition == 'top' && config.isShowPY"
+                            v-if="curQue.pyPosition == 'top' && config.isShowPY && item.dhaspinyin"
                             class="NNPE-pinyin"
                             :class="[
                               noFont.indexOf(
@@ -187,7 +191,7 @@
                           >
                           <span
                             v-if="
-                              curQue.pyPosition == 'bottom' && config.isShowPY
+                              curQue.pyPosition == 'bottom' && config.isShowPY && item.dhaspinyin
                             "
                             class="NNPE-pinyin"
                             :class="[
@@ -211,7 +215,7 @@
                           "
                         >
                           <span
-                            v-if="curQue.pyPosition == 'top' && config.isShowPY"
+                            v-if="curQue.pyPosition == 'top' && config.isShowPY && item.dhaspinyin"
                             :class="[
                               'NNPE-pinyin',
                               noFont.indexOf(
@@ -251,7 +255,7 @@
                           >
                           <span
                             v-if="
-                              curQue.pyPosition == 'bottom' && config.isShowPY
+                              curQue.pyPosition == 'bottom' && config.isShowPY && item.dhaspinyin
                             "
                             :class="[
                               'NNPE-pinyin',
@@ -268,7 +272,7 @@
                       </template>
                       <template v-else>
                         <span
-                          v-if="curQue.pyPosition == 'top' && config.isShowPY"
+                          v-if="curQue.pyPosition == 'top' && config.isShowPY && item.dhaspinyin"
                           class="NNPE-pinyin"
                           :class="[
                             pItem.chs != '“' && pItem.padding ? 'padding' : '',
@@ -305,7 +309,7 @@
                         </span>
                         <span
                           v-if="
-                            curQue.pyPosition == 'bottom' && config.isShowPY
+                            curQue.pyPosition == 'bottom' && config.isShowPY && item.dhaspinyin
                           "
                           class="NNPE-pinyin"
                           :class="[
@@ -531,7 +535,9 @@ export default {
       let curQue = JSON.parse(JSON.stringify(this.curQue));
       let wordTimeList = curQue.wordTime;
       let asIndex = 0;
+      let dhaspinyin = false; // 每段是否有拼音
       curQue.detail.forEach((dItem, dIndex) => {
+        dhaspinyin = false
         let roleDetail = this.getRole(dItem);
         let remarkDetail = dItem.remark;
         if (remarkDetail && (remarkDetail.chs || remarkDetail.en)) {
@@ -579,6 +585,7 @@ export default {
             if (wIndex == sItem.length - 1) {
               asIndex++;
             }
+            if(wItem.pinyin) dhaspinyin=true
           });
         });
 
@@ -600,6 +607,7 @@ export default {
           timeList: timeList,
           roleDetail: roleDetail,
           remarkDetail: remarkDetail,
+          dhaspinyin:dhaspinyin
         };
         resArr.push(paraObj);
       });

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

@@ -1,7 +1,11 @@
 <!--  -->
 <template>
   <div class="NNPE-ArticleView" v-if="curQue">
-    <div class="aduioLine-box aduioLine-practice">
+    <div class="aduioLine-box aduioLine-practice" v-if="
+            curQue.mp3_list &&
+            curQue.mp3_list.length > 0 &&
+            curQue.mp3_list[0].id
+          ">
       <div class="aduioLine-content">
         <template
           v-if="
@@ -93,7 +97,7 @@
                       >
                         <span class="NNPE-words-box">
                           <span
-                            v-if="curQue.pyPosition == 'top' && config.isShowPY"
+                            v-if="curQue.pyPosition == 'top' && config.isShowPY && item.dhaspinyin"
                             class="NNPE-pinyin"
                             :class="[
                               pItem.className ? pItem.className : '',
@@ -112,7 +116,7 @@
                           >
                           <span
                             v-if="
-                              curQue.pyPosition == 'bottom' && config.isShowPY
+                              curQue.pyPosition == 'bottom' && config.isShowPY && item.dhaspinyin
                             "
                             class="NNPE-pinyin"
                             :class="[
@@ -124,7 +128,7 @@
                         </span>
                         <span class="NNPE-words-box">
                           <span
-                            v-if="curQue.pyPosition == 'top' && config.isShowPY"
+                            v-if="curQue.pyPosition == 'top' && config.isShowPY && item.dhaspinyin"
                             class="NNPE-pinyin"
                             style="text-align: left"
                             :class="[
@@ -141,7 +145,7 @@
                           }}</span>
                           <span
                             v-if="
-                              curQue.pyPosition == 'bottom' && config.isShowPY
+                              curQue.pyPosition == 'bottom' && config.isShowPY && item.dhaspinyin
                             "
                             class="NNPE-pinyin"
                             :class="[
@@ -165,7 +169,7 @@
                           "
                         >
                           <span
-                            v-if="curQue.pyPosition == 'top' && config.isShowPY"
+                            v-if="curQue.pyPosition == 'top' && config.isShowPY && item.dhaspinyin"
                             :class="[
                               'NNPE-pinyin',
                               noFont.indexOf(
@@ -205,7 +209,7 @@
                           >
                           <span
                             v-if="
-                              curQue.pyPosition == 'bottom' && config.isShowPY
+                              curQue.pyPosition == 'bottom' && config.isShowPY && item.dhaspinyin
                             "
                             :class="[
                               'NNPE-pinyin',
@@ -222,7 +226,7 @@
                       </template>
                       <template v-else>
                         <span
-                          v-if="curQue.pyPosition == 'top' && config.isShowPY"
+                          v-if="curQue.pyPosition == 'top' && config.isShowPY && item.dhaspinyin"
                           class="NNPE-pinyin"
                           :class="[
                             pItem.chs != '“' && pItem.padding ? 'padding' : '',
@@ -245,7 +249,7 @@
                         >
                         <span
                           v-if="
-                            curQue.pyPosition == 'bottom' && config.isShowPY
+                            curQue.pyPosition == 'bottom' && config.isShowPY && item.dhaspinyin
                           "
                           class="NNPE-pinyin"
                           :class="[
@@ -500,7 +504,9 @@ export default {
       let resArr = [];
       let leg = this.curQue.detail.length;
       let curQue = JSON.parse(JSON.stringify(this.curQue));
+      let dhaspinyin = false; // 每段是否有拼音
       curQue.detail.forEach((dItem, dIndex) => {
+        dhaspinyin = false
         let roleDetail = this.getRole(dItem);
         let remarkDetail = dItem.remark;
         if (remarkDetail && (remarkDetail.chs || remarkDetail.en)) {
@@ -523,6 +529,7 @@ export default {
               isNewWord: this.newWords.indexOf(wItem.chs) > -1 ? true : false,
             };
             paraArr.push(obj);
+            if(wItem.pinyin) dhaspinyin=true
           });
         });
         let enwords =
@@ -534,11 +541,11 @@ export default {
           enwords: enwords,
           roleDetail: roleDetail,
           remarkDetail: remarkDetail,
+          dhaspinyin:dhaspinyin
         };
         resArr.push(paraObj);
       });
       this.resArr = resArr;
-      console.log(this.resArr);
 
       // 循环文章图片
       if (curQue.img_list) {

+ 19 - 11
src/components/Adult/preview/DialogueArticleViewChs/Practicechs.vue

@@ -2,7 +2,11 @@
 <template>
   <div class="NNPE-ArticleView" v-if="curQue">
     <a class="ArticleView-full" @click="fullScreen">全屏模式</a>
-    <div class="aduioLine-box aduioLine-practice">
+    <div class="aduioLine-box aduioLine-practice" v-if="
+            curQue.mp3_list &&
+            curQue.mp3_list.length > 0 &&
+            curQue.mp3_list[0].id
+          ">
       <div class="aduioLine-content">
         <template
           v-if="
@@ -145,7 +149,7 @@
                           <span class="NNPE-words-box">
                             <template v-if="curQue.pyPosition == 'top'">
                               <span
-                                v-if="config.isShowPY"
+                                v-if="config.isShowPY && item.dhaspinyin"
                                 class="NNPE-pinyin"
                                 :class="[
                                   pItem.className ? pItem.className : '',
@@ -160,7 +164,7 @@
                             <span
                               class="NNPE-chs"
                               :class="[
-                                pItem.padding && config.isShowPY
+                                pItem.padding && config.isShowPY && item.dhaspinyin
                                   ? 'padding'
                                   : '',
                                 sentIndex == index ? 'wordBlank' : '',
@@ -188,7 +192,7 @@
                             </span>
                             <template v-if="curQue.pyPosition == 'bottom'">
                               <span
-                                v-if="config.isShowPY"
+                                v-if="config.isShowPY && item.dhaspinyin"
                                 class="NNPE-pinyin"
                                 :class="[
                                   pItem.className ? pItem.className : '',
@@ -204,7 +208,7 @@
                           <span class="NNPE-words-box">
                             <template v-if="curQue.pyPosition == 'top'">
                               <span
-                                v-if="config.isShowPY"
+                                v-if="config.isShowPY && item.dhaspinyin"
                                 :class="[
                                   'NNPE-pinyin',
                                   sentIndex == index ? 'wordBlank' : '',
@@ -238,7 +242,7 @@
                             </span>
                             <template v-if="curQue.pyPosition == 'bottom'">
                               <span
-                                v-if="config.isShowPY"
+                                v-if="config.isShowPY && item.dhaspinyin"
                                 :class="[
                                   'NNPE-pinyin',
                                   sentIndex == index ? 'wordBlank' : '',
@@ -264,7 +268,7 @@
                           >
                             <template v-if="curQue.pyPosition == 'top'">
                               <span
-                                v-if="config.isShowPY"
+                                v-if="config.isShowPY && item.dhaspinyin"
                                 :class="[
                                   'NNPE-pinyin',
                                   sentIndex == index ? 'wordBlank' : '',
@@ -298,7 +302,7 @@
                             </span>
                             <template v-if="curQue.pyPosition == 'bottom'">
                               <span
-                                v-if="config.isShowPY"
+                                v-if="config.isShowPY && item.dhaspinyin"
                                 :class="[
                                   'NNPE-pinyin',
                                   sentIndex == index ? 'wordBlank' : '',
@@ -320,7 +324,7 @@
                               v-if="NumberList.indexOf(pItem.pinyin) < 0"
                             >
                               <span
-                                v-if="config.isShowPY"
+                                v-if="config.isShowPY && item.dhaspinyin"
                                 class="NNPE-pinyin"
                                 :class="[
                                   pItem.chs != '“' && pItem.padding
@@ -342,7 +346,7 @@
                             :class="[
                               pItem.chs != '“' &&
                               pItem.padding &&
-                              config.isShowPY
+                              config.isShowPY && item.dhaspinyin
                                 ? 'padding'
                                 : '',
                               sentIndex == index ? 'wordBlank' : '',
@@ -372,7 +376,7 @@
                               v-if="NumberList.indexOf(pItem.pinyin) < 0"
                             >
                               <span
-                                v-if="config.isShowPY"
+                                v-if="config.isShowPY && item.dhaspinyin"
                                 class="NNPE-pinyin"
                                 :class="[
                                   pItem.chs != '“' && pItem.padding
@@ -698,7 +702,9 @@ export default {
         sentArrTotal = [];
       let curQue = JSON.parse(JSON.stringify(this.curQue));
       let wordTimeList = curQue.wordTime;
+      let dhaspinyin = false; // 每段是否有拼音
       curQue.detail.forEach((dItem, dIndex) => {
+        dhaspinyin = false;
         let roleDetail = this.getRole(dItem);
 
         dItem.wordsList.forEach((sItem, sIndex) => {
@@ -730,11 +736,13 @@ export default {
               timeList: [],
             };
             sentArr.push(obj);
+            if(wItem.pinyin) dhaspinyin=true
           });
           let objs = {
             roleDetail: roleDetail,
             sentArr: sentArr,
             enwords: dItem.sentencesEn && dItem.sentencesEn[sIndex],
+            dhaspinyin:dhaspinyin
           };
           sentArrTotal.push(sentArr);
           resArr.push(objs);

+ 17 - 11
src/components/Adult/preview/DialogueArticleViewChs/WordModelChs.vue

@@ -1,7 +1,11 @@
 <!--  -->
 <template>
   <div class="NNPE-ArticleView" ref="ArticleView" v-if="curQue">
-    <div class="aduioLine-box aduioLine-practice">
+    <div class="aduioLine-box aduioLine-practice" v-if="
+            curQue.mp3_list &&
+            curQue.mp3_list.length > 0 &&
+            curQue.mp3_list[0].id
+          ">
       <div class="aduioLine-content">
         <template
           v-if="
@@ -88,7 +92,7 @@
                       >
                         <span class="NNPE-words-box">
                           <span
-                            v-if="curQue.pyPosition == 'top' && config.isShowPY"
+                            v-if="curQue.pyPosition == 'top' && config.isShowPY && item.dhaspinyin"
                             class="NNPE-pinyin"
                             :class="[
                               pItem.className ? pItem.className : '',
@@ -110,7 +114,7 @@
                           >
                           <span
                             v-if="
-                              curQue.pyPosition == 'bottom' && config.isShowPY
+                              curQue.pyPosition == 'bottom' && config.isShowPY && item.dhaspinyin
                             "
                             class="NNPE-pinyin"
                             :class="[
@@ -122,7 +126,7 @@
                         </span>
                         <span class="NNPE-words-box">
                           <span
-                            v-if="curQue.pyPosition == 'top' && config.isShowPY"
+                            v-if="curQue.pyPosition == 'top' && config.isShowPY && item.dhaspinyin"
                             class="NNPE-pinyin"
                             :class="[
                               noFont.indexOf(
@@ -139,7 +143,7 @@
                           }}</span>
                           <span
                             v-if="
-                              curQue.pyPosition == 'bottom' && config.isShowPY
+                              curQue.pyPosition == 'bottom' && config.isShowPY && item.dhaspinyin
                             "
                             class="NNPE-pinyin"
                             :class="[
@@ -163,7 +167,7 @@
                           "
                         >
                           <span
-                            v-if="curQue.pyPosition == 'top' && config.isShowPY"
+                            v-if="curQue.pyPosition == 'top' && config.isShowPY && item.dhaspinyin"
                             :class="[
                               'NNPE-pinyin',
                               noFont.indexOf(
@@ -203,7 +207,7 @@
                           >
                           <span
                             v-if="
-                              curQue.pyPosition == 'bottom' && config.isShowPY
+                              curQue.pyPosition == 'bottom' && config.isShowPY && item.dhaspinyin
                             "
                             :class="[
                               'NNPE-pinyin',
@@ -220,7 +224,7 @@
                       </template>
                       <template v-else>
                         <span
-                          v-if="curQue.pyPosition == 'top' && config.isShowPY"
+                          v-if="curQue.pyPosition == 'top' && config.isShowPY && item.dhaspinyin"
                           class="NNPE-pinyin"
                           :class="[
                             pItem.chs != '“' && pItem.padding ? 'padding' : '',
@@ -245,7 +249,7 @@
                         >
                         <span
                           v-if="
-                            curQue.pyPosition == 'bottom' && config.isShowPY
+                            curQue.pyPosition == 'bottom' && config.isShowPY && item.dhaspinyin
                           "
                           class="NNPE-pinyin"
                           :class="[
@@ -503,7 +507,9 @@ export default {
       let resArr = [];
       let leg = this.curQue.detail.length;
       let curQue = JSON.parse(JSON.stringify(this.curQue));
+      let dhaspinyin = false; // 每段是否有拼音
       curQue.detail.forEach((dItem, dIndex) => {
+        dhaspinyin = false
         let roleDetail = this.getRole(dItem);
         let remarkDetail = dItem.remark;
         if (remarkDetail && (remarkDetail.chs || remarkDetail.en)) {
@@ -526,6 +532,7 @@ export default {
               isNewWord: this.newWords.indexOf(wItem.chs) > -1 ? true : false,
             };
             paraArr.push(obj);
+            if(wItem.pinyin) dhaspinyin=true
           });
         });
 
@@ -544,12 +551,11 @@ export default {
           timeList: timeList,
           roleDetail: roleDetail,
           remarkDetail: remarkDetail,
+          dhaspinyin:dhaspinyin
         };
         resArr.push(paraObj);
       });
       this.resArr = resArr;
-      console.log("取词模式");
-      console.log(this.resArr);
       // 循环文章图片
       if (curQue.img_list) {
         curQue.img_list.forEach((item) => {