Commit acb05240 authored by tangfh's avatar tangfh

+

parent cf6d3f04
...@@ -192,6 +192,7 @@ ...@@ -192,6 +192,7 @@
return; return;
} }
let data = res.data.data; let data = res.data.data;
tab.firstRequest = false;
tab.refreshing = false; tab.refreshing = false;
tab.isRequestComplete = true; tab.isRequestComplete = true;
this.clearTabData(this.tabIndex); this.clearTabData(this.tabIndex);
...@@ -208,6 +209,7 @@ ...@@ -208,6 +209,7 @@
item.addtimeformat = dayjs.unix(item.addtime).format("YYYY-MM-DD HH:mm") 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); 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) { requestFail(res, status) {
if (this.tabList[this.tabIndex].data.length == 0) { if (this.tabList[this.tabIndex].data.length == 0) {
...@@ -215,8 +217,8 @@ ...@@ -215,8 +217,8 @@
} }
}, },
requestComplete() { requestComplete() {
this.tabList[this.tabIndex].firstRequest = false;
var tab = this.tabList[this.tabIndex]; var tab = this.tabList[this.tabIndex];
tab.firstRequest = false;
tab.refreshing = false; tab.refreshing = false;
tab.isRequestComplete = true; tab.isRequestComplete = true;
uni.hideLoading() 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