|
@@ -1213,6 +1213,8 @@ export default {
|
|
|
&& abily.taskId === this.topChapterId && abily.nodeId === this.chapterId
|
|
|
})
|
|
|
if(ablIndex === -1) {
|
|
|
+ this.studyVideoNum += 1
|
|
|
+ console.log(this.studyVideoNum, "这个资源还没有存===================================");
|
|
|
if(zhiyuan.type === "video") {
|
|
|
this.fileRcd.push({
|
|
|
abilityId: this.pointList[this.activePointIndex].id,
|
|
@@ -1464,7 +1466,8 @@ export default {
|
|
|
) {
|
|
|
if(e.target.id !== this.videoEle) return
|
|
|
// 不能前进
|
|
|
- if(e.target.currentTime - this.currentTime > 1) {
|
|
|
+
|
|
|
+ if (e.target.currentTime - this.currentTime > 1) {
|
|
|
// 判断前一秒和后一秒的视频时间差大于一秒的话,就让进度设置成前一秒的进度
|
|
|
var video = document.getElementById(e.target.id);
|
|
|
video.currentTime = this.currentTime
|