Commit 9e4aee6e by 梁建民

js

parent 2bd5ac90
...@@ -95,9 +95,10 @@ const actions = { ...@@ -95,9 +95,10 @@ const actions = {
Services.ZiYingIndex(params).then((res) => { Services.ZiYingIndex(params).then((res) => {
Toast.clear();
let data = res.data; let data = res.data;
state.loading = false; state.loading = false;
Toast.clear();
if (data.error_code == 0) { if (data.error_code == 0) {
...@@ -107,7 +108,7 @@ const actions = { ...@@ -107,7 +108,7 @@ const actions = {
totalPage = Math.ceil(data.data.total * 1 / 10); totalPage = Math.ceil(data.data.total * 1 / 10);
} }
if (payload.params.p == totalPage || !totalPage) { if (payload.params.p >= totalPage || !totalPage) {
state.finished = true; state.finished = true;
} }
...@@ -117,15 +118,8 @@ const actions = { ...@@ -117,15 +118,8 @@ const actions = {
}); });
} else if (data.error_code == 3) {
} else { } else {
Toast({
message: data.error_msg,
duration: 3000
});
state.loading = false; state.loading = false;
state.finished = true; state.finished = true;
......
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 sign in to comment