排查问题1

This commit is contained in:
zhangsir
2024-07-19 14:22:06 +08:00
parent 9fbfa463a7
commit 062360ca82

View File

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