mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-10 03:16:45 +08:00
解决问题
This commit is contained in:
@@ -398,7 +398,7 @@
|
||||
learkeyword: '',
|
||||
formatDate,
|
||||
keyword: '',
|
||||
couresList: '',
|
||||
couresList: [],
|
||||
switch: '',
|
||||
hisswitch: '',
|
||||
classType: '',
|
||||
@@ -807,25 +807,20 @@
|
||||
// console.log('aaa='+r.cmtask_imgurl);
|
||||
})
|
||||
this.taskCount = parseInt(res.data.total);
|
||||
console.log(this.taskCount,'this.taskCount')
|
||||
this.couresList.push(...res.data.records);
|
||||
// if(Object.keys(this.detailData).length&&this.detailData.growName.includes(this.loadkeyword)&&(this.boeStatus===''||this.detailData.studyStatus==this.boeStatus)){
|
||||
// this.couresList.unshift(this.detailData)
|
||||
// }
|
||||
console.log(this.couresList,'this.couresList')
|
||||
if (this.taskCount > this.taskPageIndex * this.taskPageSize) {
|
||||
this.taskHasMore = true;
|
||||
this.loadStatus='more';
|
||||
console.log('1')
|
||||
} else {
|
||||
this.taskHasMore = false;
|
||||
this.loadStatus='noMore';
|
||||
console.log('2')
|
||||
}
|
||||
if(this.couresList.length == 0){
|
||||
this.taskHasMore = false;
|
||||
this.loadStatus='noMore';
|
||||
console.log('3')
|
||||
}
|
||||
//检查是否是第一次加载,这里的控制已经移到 初次加载中了
|
||||
// if (this.isOne && res.data.records.length == 0) {
|
||||
|
||||
Reference in New Issue
Block a user