diff --git a/src/views/study/coursenew.vue b/src/views/study/coursenew.vue index c0c49fb0..49c7c2bf 100644 --- a/src/views/study/coursenew.vue +++ b/src/views/study/coursenew.vue @@ -1347,24 +1347,22 @@ console.log(rs.message); } }); - // let postData = { - // id: this.appentId, - // studyId: this.studyId, - // courseId: this.courseInfo.id, - // contentId: this.contentData.id, - // studyInfo: this.courseInfo.name + - // "-" + - // this.contentData.contentName, - // duration: duration - // }; - // apiStudy.appendStudyTime(postData).then(rs => { - // if (rs.status == 200) { - // this.appentId = rs.result; - // studyUtil.clearStudyDuration(); //清除本地存储 - // } else { - // console.log(rs.message); - // } - // }); + let postAppendData = { + id: this.appentId, + studyId: this.studyId, + courseId: this.courseInfo.id, + contentId: this.contentData.id, + studyInfo: this.courseInfo.name +"-" +this.contentData.contentName, + duration: duration + }; + apiStudy.appendStudyTime(postAppendData).then(rs => { + if (rs.status == 200) { + this.appentId = rs.result; + studyUtil.clearStudyDuration(); //清除本地存储 + } else { + console.log(rs.message); + } + }); } }, //结束追加学习时长