去掉无用的模板文件

封装ajax提示方法
This commit is contained in:
2021-03-20 05:06:27 +08:00
parent bd9c315d7e
commit c564147f20
68 changed files with 664 additions and 21421 deletions
+4 -4
View File
@@ -367,11 +367,11 @@ $(function () {
}
});
var data = (data == '') ? '' : data;
var load = layer.load(2);
$.post('{{url("wechat/mp/menuedit")}}', {data: data}, function (res) {
layer.close(load);
var loading = showLoading();
$.post('{{url()}}', {data: data}, function (res) {
layer.close(loading);
if (res.status) {
layer.msg(res.data, {time: 1000}, function () {});
layer.msg(res.data, {time: 1000});
} else {
layer.alert(res.data);
}