瀏覽代碼

单句模式

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++){