natasha před 1 rokem
rodič
revize
adfd6bb273

+ 10 - 2
src/components/common/AudioLine.vue

@@ -47,12 +47,20 @@
                   : ''
                 : 'none',
             }"
+          >
+            <svg-icon
+              v-if="mp3Source && mp3Source == 'tts'"
+              icon-class="play-fill-ai"
+              className="icon-svg"
+              :style="{ color: colorObj ? colorObj.audioBtnColor : '' }"
+            ></svg-icon
             ><svg-icon
+              v-else
               icon-class="play-fill"
               className="icon-svg"
               :style="{ color: colorObj ? colorObj.audioBtnColor : '' }"
-            ></svg-icon
-          ></a>
+            ></svg-icon>
+          </a>
         </div>
         <span
           class="time-box"

+ 10 - 0
src/icons/svg/play-fill-ai.svg

@@ -0,0 +1,10 @@
+<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
+  <path
+    d="M15.376 12.4158L4.77735 19.4816C4.54759 19.6348 4.23715 19.5727 4.08397 19.3429C4.02922 19.2608 4 19.1643 4 19.0656V4.93408C4 4.65794 4.22386 4.43408 4.5 4.43408C4.59871 4.43408 4.69522 4.4633 4.77735 4.51806L15.376 11.5838C15.6057 11.737 15.6678 12.0474 15.5146 12.2772C15.478 12.3321 15.4309 12.3792 15.376 12.4158Z"
+    fill="currentColor" />
+  <rect x="14" y="16" width="10" height="8" rx="2" fill="currentColor" />
+  <path d="M21 18V22" stroke="white" stroke-linecap="round" />
+  <path
+    d="M16.1992 22L16.6812 20.7879M19.4936 22L18.9772 20.7879M18.9772 20.7879L17.7896 18L16.6812 20.7879M18.9772 20.7879H16.6812"
+    stroke="white" stroke-linecap="round" stroke-linejoin="round" />
+</svg>

+ 1 - 1
src/views/bookShelf/components/InnerTextSearch.vue

@@ -124,7 +124,7 @@
           :mp3="articleInfo.art_sound_url"
           :getCurTime="getCurTime"
           ref="audioLine"
-          :mp3Source="'mp3'"
+          :mp3Source="'tts'"
           :colorObj="colorObj"
         />
         <svg-icon

+ 1 - 1
src/views/bookShelf/components/LexicalType.vue

@@ -208,7 +208,7 @@
           :mp3="articleInfo.art_sound_url"
           :getCurTime="getCurTime"
           ref="audioLine"
-          :mp3Source="'mp3'"
+          :mp3Source="'tts'"
           :colorObj="colorObj"
         />
         <svg-icon

+ 1 - 1
src/views/bookShelf/components/NormalModel.vue

@@ -142,7 +142,7 @@
           :mp3="articleInfo.art_sound_url"
           :getCurTime="getCurTime"
           ref="audioLine"
-          :mp3Source="'mp3'"
+          :mp3Source="'tts'"
           :colorObj="colorObj"
         />
         <svg-icon

+ 1 - 1
src/views/bookShelf/components/NotesModel.vue

@@ -61,7 +61,7 @@
             :mp3="articleInfo.art_sound_url"
             :getCurTime="getCurTime"
             ref="audioLine"
-            :mp3Source="'mp3'"
+            :mp3Source="'tts'"
             :colorObj="colorObj"
           />
           <svg-icon

+ 1 - 1
src/views/bookShelf/components/PhraseModel.vue

@@ -133,7 +133,7 @@
           :mp3="articleInfo.art_sound_url"
           :getCurTime="getCurTime"
           ref="audioLine"
-          :mp3Source="'mp3'"
+          :mp3Source="'tts'"
           :colorObj="colorObj"
         />
         <svg-icon

+ 1 - 1
src/views/bookShelf/components/PracticeModel.vue

@@ -111,7 +111,7 @@
           :mp3="articleInfo.art_sound_url"
           :getCurTime="getCurTime"
           ref="audioLine"
-          :mp3Source="'mp3'"
+          :mp3Source="'tts'"
           type="audioLine"
           :ed="ed"
           :showEd="showEd"

+ 5 - 3
src/views/bookShelf/components/PrintModel.vue

@@ -166,7 +166,7 @@
                                 :class="[
                                   pItem.tokens[9] === '' ? 'marginRight' : '',
                                   (pItem.highIndex &&
-                                    printForm.bold.indexOf(pItem.type) > -1) ||
+                                    printForm.bold.indexOf(pItem.types) > -1) ||
                                   (printForm.bold.indexOf('sentence') > -1 &&
                                     longSentIds.indexOf(pItem.sent_id) > -1)
                                     ? 'fontWeight'
@@ -196,7 +196,7 @@
                                     : '',
                                   (item.wordsList[pIndex + 1].highIndex &&
                                     printForm.bold.indexOf(
-                                      item.wordsList[pIndex + 1].type
+                                      item.wordsList[pIndex + 1].types
                                     ) > -1) ||
                                   (printForm.bold.indexOf('sentence') > -1 &&
                                     longSentIds.indexOf(
@@ -711,7 +711,7 @@ export default {
         ? articleInfo.art_phrase_data
         : [];
       this.wordLit.forEach((item) => {
-        item.type = "newWord";
+        item.types = "newWord";
         item.exp_title = item.word_name;
         let paraStr = "";
         if (item.word_explain && item.word_explain.word_para_list) {
@@ -760,6 +760,7 @@ export default {
                   ) {
                     obj.highIndex = true;
                     obj.type = itema.type;
+                    obj.types = itema.type;
                     obj.word_id = itema.id; // 生词注释短语的id
                     obj.explainNumber = explainNumber;
                     explainNumber++;
@@ -769,6 +770,7 @@ export default {
                     if (indexs === itemi) {
                       obj.highIndex = true;
                       obj.type = itema.type;
+                      obj.types = itema.types ? itema.types : itema.type;
                       obj.word_id = itema.id; // 生词注释短语的id
                     }
                   });

+ 1 - 1
src/views/evaluation/evaluDetail.vue

@@ -42,7 +42,7 @@
                     :mp3="questionDetailList[activeIndex].content.file_url"
                     :getCurTime="getCurTime"
                     ref="audioLine"
-                    :mp3Source="'mp3'"
+                    :mp3Source="'tts'"
                     :colorObj="colorObj"
                   />
                 </div>