From 63e681051474fff3621d015a5d2a1ed68f7c7e53 Mon Sep 17 00:00:00 2001 From: daihh Date: Wed, 29 Mar 2023 10:34:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=BE=E5=BC=80=E8=BF=BD=E5=9B=9E=E5=AD=A6?= =?UTF-8?q?=E4=B9=A0=E6=97=B6=E9=95=BF=E7=9A=84=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/study/coursenew.vue | 34 ++++++++++++++++------------------ 1 file changed, 16 insertions(+), 18 deletions(-) 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); + } + }); } }, //结束追加学习时长