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')