From 875c056075ee4e240307e104efe76d87763f02e7 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Tue, 14 Feb 2023 18:01:00 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E5=81=9C=E6=AD=A2=E5=AD=A6=E4=B9=A0?= =?UTF-8?q?=E8=AF=BE=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../qujing/AppLegalLearning/classDetail.vue | 15 ++++++++++ .../qujing/AppLegalLearning/testForm.vue | 28 ++++++++++++------- 2 files changed, 33 insertions(+), 10 deletions(-) diff --git a/src/project/qujing/AppLegalLearning/classDetail.vue b/src/project/qujing/AppLegalLearning/classDetail.vue index bddc048..ababd0c 100644 --- a/src/project/qujing/AppLegalLearning/classDetail.vue +++ b/src/project/qujing/AppLegalLearning/classDetail.vue @@ -123,9 +123,24 @@ export default { this.$u.toast(err.msg) }) }, + stop() { + this.$instance.post(`/app/appcourseinfo/stopLearnById`,null,{ + params: { + id: this.data.id, + recordId: this.data.recordId + } + }).then(res=> { + if(res.code==0) { + console.log(res.msg); + } + }).catch(err=> this.$u.toast(err.msg)) + }, keyboard(e) { console.log(e.detail.height); } + }, + onUnload() { + this.stop() } } diff --git a/src/project/qujing/AppLegalLearning/testForm.vue b/src/project/qujing/AppLegalLearning/testForm.vue index f5966f6..2538c32 100644 --- a/src/project/qujing/AppLegalLearning/testForm.vue +++ b/src/project/qujing/AppLegalLearning/testForm.vue @@ -14,24 +14,24 @@
{{ item.title }}
-
- + + +
+
+ {{ opt.sort }}: {{ opt.content}} +
- {{ opt.sort }}: {{ opt.content}} -
-
- -
-
{{ opt.sort }}: {{ opt.content}}
@@ -91,17 +91,25 @@ export default { if(this.list[this.activeIndex].type==0) { // 单选 } else if(this.list[this.activeIndex].type==1) { // 多选 + this.list[this.activeIndex].items[i].isCheked = !this.list[this.index].items[i].isCheked + this.list[this.activeIndex].items.map((item) => { + if (item.isCheked) { + // this.showTopBtn = true + } + }) } else if(this.list[this.activeIndex].type==2) { // 判断 this.clickIndex = i this.showConfirm = true } }, + // 下一题 nextTopic() { this.activeIndex ++; this.clickIndex = '' this.showAnalysis = false }, + // 确定 confirm() { this.showAnalysis = true; From 48003ffaa30eed66e085e1aeafdc3ddeb2a41862 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Wed, 15 Feb 2023 09:50:44 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E8=80=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../qujing/AppLegalLearning/testForm.vue | 108 +++++++++++++----- 1 file changed, 80 insertions(+), 28 deletions(-) diff --git a/src/project/qujing/AppLegalLearning/testForm.vue b/src/project/qujing/AppLegalLearning/testForm.vue index 2538c32..db104fc 100644 --- a/src/project/qujing/AppLegalLearning/testForm.vue +++ b/src/project/qujing/AppLegalLearning/testForm.vue @@ -12,15 +12,8 @@
-
{{ item.title }}
- - - +
{{ item.title }}{{score}}
+
- {{ opt.sort }}: {{ opt.content}} + {{ opt.sort }}: {{ opt.content}} {{opt.isChecked}}
@@ -52,11 +45,15 @@
下一题
确定
+
提交
+
+
From 03de4e4f7e6a739960027f2b65a9962f130294a2 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Wed, 15 Feb 2023 10:20:16 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E6=8C=89=E9=92=AEbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/qujing/AppLegalLearning/testForm.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/project/qujing/AppLegalLearning/testForm.vue b/src/project/qujing/AppLegalLearning/testForm.vue index db104fc..4eda307 100644 --- a/src/project/qujing/AppLegalLearning/testForm.vue +++ b/src/project/qujing/AppLegalLearning/testForm.vue @@ -109,10 +109,10 @@ export default { }, // 下一题 nextTopic() { - this.activeIndex ++; this.clickIndex = '' this.showAnalysis = false + this.showNext = false }, // 确定 confirm() { @@ -137,12 +137,12 @@ export default { }, // 提交 submit() { - // 分数段 - // switch(this.assessments) { - // case 1: console.log(1); - // break; - // case 2: - // } + // 分数区间 + switch(this.assessments) { + case this.assessments[0].: console.log(1); + break; + case 2: + } // 用时 const endTime = new Date().getTime() this.studyDuration = Math.ceil((endTime - this.nowTime) / 1000 / 60)