在线课study回滚

This commit is contained in:
zhangsir
2024-05-28 15:01:48 +08:00
parent 2b323bc6f9
commit d463e896a6
3 changed files with 3 additions and 77 deletions

View File

@@ -152,22 +152,6 @@ export default {
showTest:{
type:Boolean,
default:false
},
courseType:{
type: String,
default:0
},
totalContent:{
type: Number,
default:0
},
contentName:{
type: String,
default: ''
},
contentType:{
type: String,
default: ''
}
},
data() {
@@ -528,33 +512,6 @@ export default {
},
submitTest(testScore){ //提交处理
//清空提示
if(this.courseType == 20){
if(testScore<80){
const params = {
studyId: this.studyId, //学习id,
courseId: this.content.courseId, //课程id,
contentId: this.content.id, //内容id,
contentType: this.contentType,
contentName: this.contentName, //内容名称
progress: 1,
status: 2,
contentTotal: this.totalContent
};
apiStudy.studyContent(params)
}else{
const params = {
studyId: this.studyId, //学习id,
courseId: this.content.courseId, //课程id,
contentId: this.content.id, //内容id,
contentType: this.contentType,
contentName: this.contentName, //内容名称
progress: 100,
status: 9,
contentTotal: this.totalContent
};
apiStudy.studyContent(params)
}
}
if(this.timer){
window.clearInterval(this.timer);
}