From b7433bdd55991d43962851f6153a04204d1a70df Mon Sep 17 00:00:00 2001 From: shijingjing <1789544664@qq.com> Date: Mon, 13 Feb 2023 16:13:27 +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 --- .../AppLegalLearning/AppLegalLearning.vue | 5 +++ .../components/GeneralLawExam.vue | 31 ++++++++++++++----- .../components/OnlineClass.vue | 15 ++++++++- 3 files changed, 42 insertions(+), 9 deletions(-) diff --git a/src/project/qujing/AppLegalLearning/AppLegalLearning.vue b/src/project/qujing/AppLegalLearning/AppLegalLearning.vue index 5c71117..0137282 100644 --- a/src/project/qujing/AppLegalLearning/AppLegalLearning.vue +++ b/src/project/qujing/AppLegalLearning/AppLegalLearning.vue @@ -29,6 +29,11 @@ export default { } }, onShow() { + if(this.currIndex == 0) { + this.$refs.OnlineClass.getList(); + } else { + this.$refs.GeneralLawExam.getList(); + } }, components: { OnlineClass, diff --git a/src/project/qujing/AppLegalLearning/components/GeneralLawExam.vue b/src/project/qujing/AppLegalLearning/components/GeneralLawExam.vue index 1aa335c..873ad8c 100644 --- a/src/project/qujing/AppLegalLearning/components/GeneralLawExam.vue +++ b/src/project/qujing/AppLegalLearning/components/GeneralLawExam.vue @@ -1,12 +1,15 @@ @@ -26,6 +28,7 @@ export default { return { current: 1, keyword: '', + classList: [], } }, onLoad() { @@ -34,7 +37,17 @@ export default { methods: { getList() { - console.log('在线课堂列表'); + // this.$instance.post(``, null, { + // params: { + // current: this.current, + // size: 10, + // title: this.title + // } + // }).then(res=> { + // if(res?.data) { + // this.classList = res.data.records + // } + // }) }, handleToDetail() { this.$emit('toDetail')