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] =?UTF-8?q?=E5=81=9C=E6=AD=A2=E5=AD=A6=E4=B9=A0=E8=AF=BE?= =?UTF-8?q?=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 @@