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() {