修改bug上的SZX-324和SZX315问题

This commit is contained in:
daihh
2023-07-18 10:35:00 +08:00
parent c0148bd724
commit 80abbd5855
2 changed files with 30 additions and 18 deletions

View File

@@ -262,8 +262,6 @@
//document.cookie = "mytest=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
},
onLoad() {
this.loadBoeData(true);
let $this = this;
uni.getSystemInfo({
success: (res) => {
@@ -281,12 +279,18 @@
})
},
mounted() {
window.addEventListener('click',this.reSetList);
apiManage.getTaskNum().then(res => {
if(res.code==200){
this.value=res.data.todoTaskCounts;
}
});
window.addEventListener('click',this.reSetList);
apiManage.getTaskNum().then(res => {
if(res.code==200){
this.value=res.data.todoTaskCounts;
if(this.value>0){
this.loadBoeData(true);
}else{
this.tabIndex = 1;//切换到我报名的
this.getLearning(true);
}
}
});
},
onPullDownRefresh() {
this.onReachBottom();
@@ -536,13 +540,10 @@
this.taskHasMore = false;
this.loadStatus='noMore';
}
//下面的isOne没有看太明白后续要去掉
if (this.isOne) {
//this.value = this.taskCount;
}
if (this.isOne && res.data.records.length == 0) {
this.tabIndex = 1;
}
//检查是否是第一次加载,这里的控制已经移到 初次加载中了
//if (this.isOne && res.data.records.length == 0) {
//this.tabIndex = 1;
//}
this.isOne = false;
}else{
uni.showToast({