natasha преди 1 година
родител
ревизия
b67cfe3b87
променени са 1 файла, в които са добавени 8 реда и са изтрити 0 реда
  1. 8 0
      src/views/bookShelf/components/PracticeModel.vue

+ 8 - 0
src/views/bookShelf/components/PracticeModel.vue

@@ -370,6 +370,14 @@ export default {
             } else {
                 this.curTime = curTime * 1000;
             }
+        } else if(this.singleModel&&this.playSentIndex>-1&&!this.repeatAfter){
+            let time = curTime * 1000;
+            if (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);
+            } else {
+                this.curTime = curTime * 1000;
+            }
         }else{
             this.curTime = curTime * 1000;  
             for(let i=0; i<this.resArr.timeList.length;i++){