From 062360ca82435b5a2310e29ffa1c99a9d5257df3 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Fri, 19 Jul 2024 14:22:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E6=9F=A5=E9=97=AE=E9=A2=981?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/study/index.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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%;