Commit c317403e by 杨树贤

提示优化

parent 451fe41f
...@@ -19,15 +19,17 @@ ...@@ -19,15 +19,17 @@
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 () {
admin.removeLoading(); admin.removeLoading();
parent.layer.msg('网络错误', {icon: 5}); layer.msg('网络错误', {icon: 5});
} }
}); });
return false; return 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 sign in to comment