From 27a01840cfe8ff7ca86d8ee0592a32d0b18be2e6 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Tue, 4 Jun 2024 09:26:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E5=8A=A0=E8=BF=9B=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/study/coursenew.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/study/coursenew.vue b/src/views/study/coursenew.vue index 73893027..9b8394c0 100644 --- a/src/views/study/coursenew.vue +++ b/src/views/study/coursenew.vue @@ -1392,7 +1392,8 @@ }); }, progress(val) { - this.sendEventProgress = val + const progressValue = parseFloat(val) * 100; + this.sendEventProgress = Number(progressValue.toFixed(2)); }, saveStudyDuration(duration) { //保存本地存储的学习时长 if (duration > 0) { @@ -1411,7 +1412,9 @@ "aname":this.userInfo.name,//当前人的姓名 "status": 1, //状态 "contentId": this.contentData.id, - "progress": this.sendEventProgress, + } + if(this.resType == 10){ + postData.progress = this.sendEventProgress; } //静默处理 apiStat.sendEvent(postData).then(rs=>{