diff --git a/src/project/qujing/AppLegalLearning/AppLegalLearning.vue b/src/project/qujing/AppLegalLearning/AppLegalLearning.vue index 9611b56..9621141 100644 --- a/src/project/qujing/AppLegalLearning/AppLegalLearning.vue +++ b/src/project/qujing/AppLegalLearning/AppLegalLearning.vue @@ -5,8 +5,8 @@ (currIndex = i)"> - - + + @@ -19,7 +19,7 @@ export default { customNavigation: true, data() { return { - currIndex: 0, + currIndex: 1, tabs: [ { name: '在线课堂', @@ -28,6 +28,8 @@ export default { name: '普法考试', } ], + screenHeight: 0, + height: 0, } }, onShow() { @@ -37,6 +39,11 @@ export default { this.$refs.GeneralLawExam.getList(); this.$refs.GeneralLawExam.getUserInfo() } + uni.getSystemInfo({ + success: (res)=> { + this.screenHeight = res.screenHeight + } + }); }, components: { OnlineClass, @@ -52,6 +59,11 @@ export default { this.$refs.GeneralLawExam.getUserInfo() } } + }, + screenHeight(v) { + if(v) { + this.height = this.screenHeight - 230 + } } }, methods: { diff --git a/src/project/qujing/AppLegalLearning/classDetail.vue b/src/project/qujing/AppLegalLearning/classDetail.vue index 524a7fc..c720fe5 100644 --- a/src/project/qujing/AppLegalLearning/classDetail.vue +++ b/src/project/qujing/AppLegalLearning/classDetail.vue @@ -1,6 +1,6 @@ - + diff --git a/src/project/qujing/AppLegalLearning/components/GeneralLawExam.vue b/src/project/qujing/AppLegalLearning/components/GeneralLawExam.vue index 06f8751..94533e6 100644 --- a/src/project/qujing/AppLegalLearning/components/GeneralLawExam.vue +++ b/src/project/qujing/AppLegalLearning/components/GeneralLawExam.vue @@ -5,9 +5,9 @@ :show-action="false" @search="getList" @clear="title='',getList()"> - 全部考试 + 全部考试{{height}} - + {{ item.examinationName }} @@ -62,6 +62,9 @@
全部考试
全部考试{{height}}