修改在线课状态

This commit is contained in:
zhangsir
2024-05-27 17:40:17 +08:00
parent 90ba6172c6
commit 21af412d88

View File

@@ -426,6 +426,7 @@
export default {
data(){
return{
trueFalse: true,
loading:false,//加载中
courseId:'',//当前课程的id
studyId: '',//当前学习的id
@@ -1524,6 +1525,20 @@
}
},
onPlayerPlaying(e){
if(e.detail.currentTime > 2 && this.trueFalse){
let params ={
studyId: this.studyId,//学习id,
courseId: this.courseId,//课程id,
contentId: this.curContent.id,//内容id,
contentType: this.curContent.contentType,
contentName: this.curContent.contentName,//内容名称
progress: 1,
status: 2,
contentTotal:this.totalContent
}
apiCourseStudy.studyContent(params)
this.trueFalse = false
}
//console.log("当前播放11",itme);
//console.log("当前播放11"+itme);
let intTime=parseInt(e.detail.currentTime);