Commit acb05240 authored by tangfh's avatar tangfh

+

parent cf6d3f04
......@@ -192,6 +192,7 @@
return;
}
let data = res.data.data;
tab.firstRequest = false;
tab.refreshing = false;
tab.isRequestComplete = true;
this.clearTabData(this.tabIndex);
......@@ -208,6 +209,7 @@
item.addtimeformat = dayjs.unix(item.addtime).format("YYYY-MM-DD HH:mm")
})
this.tabList[this.tabIndex].data = this.tabList[this.tabIndex].data.concat(data.list);
tab.contentStatus = this.tabList[this.tabIndex].data.length == 0 ? constant.CONTENT_STATUS.EMPTY : {}
},
requestFail(res, status) {
if (this.tabList[this.tabIndex].data.length == 0) {
......@@ -215,8 +217,8 @@
}
},
requestComplete() {
this.tabList[this.tabIndex].firstRequest = false;
var tab = this.tabList[this.tabIndex];
tab.firstRequest = false;
tab.refreshing = false;
tab.isRequestComplete = true;
uni.hideLoading()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment