mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 03:46:44 +08:00
课程列表无数据时,下拉内容有问题,会闪的问题
This commit is contained in:
@@ -111,7 +111,7 @@
|
||||
<div class="pagination-div">
|
||||
<span class="pag-text" @click="loadMore()" v-if="moreState == 1 && courseList.length>=course.pageSize">加载更多</span>
|
||||
<span class="pag-text-msg" v-else-if="moreState == 2">数据加载中</span>
|
||||
<span class="notcoures" v-else-if="moreState == 3">
|
||||
<span class="notcoures" v-else-if="moreState == 3 && courseList.length==0">
|
||||
<img :src="`${webBaseUrl}/images/nocouresimg.png`" alt="">
|
||||
<h5>暂无课程,请优先学习其它课程吧~</h5>
|
||||
</span>
|
||||
@@ -465,6 +465,7 @@ export default {
|
||||
this.searchData();
|
||||
},
|
||||
handleScroll() {
|
||||
if(this.courseList.length>6){
|
||||
|
||||
let innerHeight = document.querySelector("#couser-list-content").clientHeight;
|
||||
let outerHeight = document.documentElement.clientHeight;
|
||||
@@ -486,6 +487,8 @@ export default {
|
||||
}
|
||||
//}
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
toNeedCourse() {
|
||||
// 需要先切换标签
|
||||
|
||||
Reference in New Issue
Block a user