From 77a88dba26b376945f56ad0da8f516da3f4e1235 Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Thu, 23 Mar 2023 11:23:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=99=AE=E6=B3=95=E8=80=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../qujing/AppLegalLearning/AppLegalLearning.vue | 2 +- .../AppLegalLearning/components/GeneralLawExam.vue | 10 ++++++---- .../qujing/AppLegalLearning/components/OnlineClass.vue | 4 ---- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/project/qujing/AppLegalLearning/AppLegalLearning.vue b/src/project/qujing/AppLegalLearning/AppLegalLearning.vue index 4912d43..4a86cc2 100644 --- a/src/project/qujing/AppLegalLearning/AppLegalLearning.vue +++ b/src/project/qujing/AppLegalLearning/AppLegalLearning.vue @@ -35,7 +35,7 @@ export default { } }, onShow() { - uni.$once('update',(data)=> { + uni.$on('update',(data)=> { this.currIndex = data.inx }) if(this.currIndex == 0) { diff --git a/src/project/qujing/AppLegalLearning/components/GeneralLawExam.vue b/src/project/qujing/AppLegalLearning/components/GeneralLawExam.vue index bfe219e..9906255 100644 --- a/src/project/qujing/AppLegalLearning/components/GeneralLawExam.vue +++ b/src/project/qujing/AppLegalLearning/components/GeneralLawExam.vue @@ -100,6 +100,7 @@ export default { }).then(res=> { if(res?.data) { this.testList = res.data.records + this.getStudyDuration() } }) }, @@ -110,18 +111,19 @@ export default { } }) }, - handleToTest({id, examination_duration: time, examinationType }) { - console.log(time, examinationType); + handleToTest({id, examinationDuration: time, examinationType }) { + + console.log(time, examinationType,this.studyDuration); if(examinationType == 1) { if(this.studyDuration && this.studyDuration < time) { - uni.showModal({ + return uni.showModal({ title: '考试说明', content: `「考试认证」类考试,需要在线课堂中学习普法知识满足${time}分钟才能参加,考试通过并审核后可获取知法明理证书。`, confirmText: '去学习', confirmColor: '#2D7DFF', success: (res)=> { if (res.confirm) { - this.$emit('toStudy') + uni.$emit('update', { inx: 0 }) } else if (res.cancel) { // 停留 } diff --git a/src/project/qujing/AppLegalLearning/components/OnlineClass.vue b/src/project/qujing/AppLegalLearning/components/OnlineClass.vue index 22b0a73..a799b60 100644 --- a/src/project/qujing/AppLegalLearning/components/OnlineClass.vue +++ b/src/project/qujing/AppLegalLearning/components/OnlineClass.vue @@ -57,10 +57,6 @@ export default { handleToDetail(id) { this.$emit('toDetail',id) }, - // scrolltLower() { - // this.current ++; - // this.getList() - // } }, onReachBottom() {