|
|
@@ -35,7 +35,7 @@
|
|
|
</div>
|
|
|
|
|
|
<div>
|
|
|
- <el-card id="portal-course-card-main" ref="portalCourseCardBodyMain">
|
|
|
+ <el-card id="portal-course-card-main" ref="portalCourseCardBodyMain" :style="{height: courseRowHeight + 'px'}">
|
|
|
<div class="portal-card-title">
|
|
|
<div class="portal-card-title-main">精选课程</div>
|
|
|
<ElButton plain type="primary" @click="toCourse">查看全部课程</ElButton>
|
|
|
@@ -199,6 +199,7 @@ export default {
|
|
|
} else if (document.body.clientWidth < 992) {
|
|
|
this.cardRowLength = 2;
|
|
|
}
|
|
|
+ this.courseRowHeight = 640;
|
|
|
} else if (scrollTop < 5) {
|
|
|
this.extending = false;
|
|
|
if (document.body.clientWidth >= 1200) {
|
|
|
@@ -208,11 +209,11 @@ export default {
|
|
|
} else if (document.body.clientWidth < 992) {
|
|
|
this.cardRowLength = 1;
|
|
|
}
|
|
|
+ this.courseRowHeight = 360;
|
|
|
}
|
|
|
- this.courseRowHeight = this.$refs.portalCourseCardBodyMain.$el.clientHeight;
|
|
|
this.testRowHeight = this.$refs.portalTestCardBodyMain.$el.clientHeight;
|
|
|
},
|
|
|
- changeTestPane(tab, event) {
|
|
|
+ changeTestPane() {
|
|
|
const that = this;
|
|
|
this.$nextTick(() => {
|
|
|
that.handleResize();
|