|
@@ -1185,7 +1185,10 @@ export default {
|
|
|
if(abliy.abilityId === this.pointList[this.activePointIndex].id
|
|
|
&& abliy.nodeId === this.chapterId && abliy.taskId === this.topChapterId) {
|
|
|
console.log("找到了");
|
|
|
- this.studyVideoNum += 1
|
|
|
+ let have = this.resourceInfo.filter(res => {
|
|
|
+ return res.hash === item.hash
|
|
|
+ })
|
|
|
+ this.studyVideoNum += (have ? have.length : 0)
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -1471,12 +1474,12 @@ 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
|
|
|
return
|
|
|
- }
|
|
|
+ } */
|
|
|
var min = parseInt(e.target.currentTime / 60)
|
|
|
let startTimes = parseInt(this.startTimes / 60)
|
|
|
let studyTime = parseInt(this.studyTime / 60)
|