Commit f16e5cd5 authored by tangfh's avatar tangfh

+

parent 1abecd3c
...@@ -104,12 +104,12 @@ ...@@ -104,12 +104,12 @@
isNeedShowLoading: false isNeedShowLoading: false
}; };
util.request(url, param, option, { util.request(url, param, option, {
success: this.requestCallback, success: this.requestSuccess,
fail: this.requestFail, fail: this.requestFail,
complete: this.requestComplete complete: this.requestComplete
}); });
}, },
requestCallback(res) { requestSuccess(res) {
if (res.data.code > 0) { if (res.data.code > 0) {
this.contentStatus == this.items.length == 0 ? constant.CONTENT_STATUS.ERROR : null; this.contentStatus == this.items.length == 0 ? constant.CONTENT_STATUS.ERROR : null;
return; return;
......
...@@ -179,12 +179,12 @@ ...@@ -179,12 +179,12 @@
isNeedShowLoading: false isNeedShowLoading: false
}; };
util.request(url, param, option, { util.request(url, param, option, {
success: this.requestCallback, success: this.requestSuccess,
fail: this.requestFail, fail: this.requestFail,
complete: this.requestComplete complete: this.requestComplete
}); });
}, },
requestCallback(res) { requestSuccess(res) {
var tab = this.tabList[this.tabIndex]; var tab = this.tabList[this.tabIndex];
if (res.statusCode != 200) { if (res.statusCode != 200) {
tab.refreshing = false; tab.refreshing = false;
......
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