diff --git a/pages/study/index.vue b/pages/study/index.vue index f511c21..ab5ddcb 100644 --- a/pages/study/index.vue +++ b/pages/study/index.vue @@ -799,7 +799,6 @@ apiManage.userTaskList(params).then(res => { if(res.code==200){ - console.log(res.data,'res.data') res.data.records.forEach(r=>{ //r.cmtask_imgurl='/upload/static/images/course/courseDefault.png'; if (r.cmtask_imgurl && r.cmtask_imgurl.startsWith('/upload')) { @@ -807,24 +806,27 @@ } // console.log('aaa='+r.cmtask_imgurl); }) - console.log(res,'res') 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') } - console.log('这里将进行取消加载') //检查是否是第一次加载,这里的控制已经移到 初次加载中了 // if (this.isOne && res.data.records.length == 0) { // this.tabIndex = 1; @@ -1076,7 +1078,7 @@ } .footer{ width: 100%; - margin-top: 100rpx; + margin-top: 60rpx; display: flex; .btn{ width: 50%;