Commit c2c637f9 by 杨树贤

优化前端js

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