Commit c2c637f9 by 杨树贤

优化前端js

parent 981e45a4
...@@ -19,10 +19,12 @@ ...@@ -19,10 +19,12 @@
success: function (res) { success: function (res) {
admin.removeLoading(); admin.removeLoading();
if (res.err_code === 0) { if (res.err_code === 0) {
admin.closeThisDialog(); layer.msg(res.err_msg, {icon: 6});
parent.layer.msg(res.err_msg, {icon: 6}); setTimeout(function () {
admin.closeThisDialog();
},1000);
} else { } else {
parent.layer.msg(res.err_msg, {icon: 5}); layer.msg(res.err_msg, {icon: 5});
} }
}, },
error: function () { error: function () {
......
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