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;