natasha il y a 1 an
Parent
commit
b67cfe3b87
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  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++){