mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-07 18:06:47 +08:00
修改在线课状态
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user