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