natasha 1 år sedan
förälder
incheckning
92b383393a

+ 5 - 0
src/components/common/AudioLine.vue

@@ -325,6 +325,11 @@ export default {
         this.isClick = true;
       }
     },
+    StopAudio() {
+      let audioId = this.audioId;
+      this.$refs[audioId].pause();
+      this.audio.playing = false;
+    },
     oncanplaythrough() {
       let _this = this;
       // setTimeout(() => {

+ 7 - 6
src/views/bookShelf/components/PracticeModel.vue

@@ -648,11 +648,12 @@ export default {
           time >= this.resArr.timeList[this.playSentIndex].e ||
           time <= this.resArr.timeList[this.playSentIndex].s
         ) {
-          this.curTime = this.resArr.timeList[this.playSentIndex].s;
-          this.$refs.audioLine.onTimeupdateTime(
-            this.resArr.timeList[this.playSentIndex].s / 1000,
-            true
-          );
+          // this.curTime = this.resArr.timeList[this.playSentIndex].s;
+          // this.$refs.audioLine.onTimeupdateTime(
+          //   this.resArr.timeList[this.playSentIndex].s / 1000,
+          //   true
+          // );
+          this.$refs.audioLine.StopAudio();
         } else {
           this.curTime = curTime * 1000;
         }
@@ -762,7 +763,7 @@ export default {
       if (flag) {
         this.showEd = false;
         if (!this.microphoneStatus) {
-          this.microphone();
+          // this.microphone();
         }
       }
     },