Commit 1af06a4e authored by youjie's avatar youjie

no message

parent 45979dd3
...@@ -228,8 +228,10 @@ ...@@ -228,8 +228,10 @@
}); });
}, },
async getData() { async getData() {
uni.showLoading()
let res = await GetOrderPage(data.msg); let res = await GetOrderPage(data.msg);
if (res) { if (res) {
uni.hideLoading()
if (data.timer) data.timer = null; if (data.timer) data.timer = null;
if (data.msg.pageIndex === 1) { if (data.msg.pageIndex === 1) {
data.orderList = res.Data.PageData; data.orderList = res.Data.PageData;
......
...@@ -237,10 +237,10 @@ ...@@ -237,10 +237,10 @@
}); });
}, },
async getData() { async getData() {
data.loading = true uni.showLoading()
let res = await GetMyCenterInfo({}); let res = await GetMyCenterInfo({});
data.loading = false
if (res) { if (res) {
uni.hideLoading()
data.pageData = res.Data; data.pageData = res.Data;
} }
}, },
......
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