添加遮罩层
This commit is contained in:
@@ -1034,6 +1034,7 @@ export default {
|
|||||||
});
|
});
|
||||||
})
|
})
|
||||||
$('#viewFileUploadBtn').on('click', function () {
|
$('#viewFileUploadBtn').on('click', function () {
|
||||||
|
showLoading();
|
||||||
$.ajaxFileUpload({
|
$.ajaxFileUpload({
|
||||||
url: '/admin/gift/upload',//后台请求地址
|
url: '/admin/gift/upload',//后台请求地址
|
||||||
type: 'post',//请求方式 当要提交自定义参数时,这个参数要设置成post
|
type: 'post',//请求方式 当要提交自定义参数时,这个参数要设置成post
|
||||||
@@ -1051,9 +1052,11 @@ export default {
|
|||||||
$("#viewFileInfo").html('未上传成功');
|
$("#viewFileInfo").html('未上传成功');
|
||||||
}
|
}
|
||||||
console.log(json.path);
|
console.log(json.path);
|
||||||
|
hideLoading();
|
||||||
} else {
|
} else {
|
||||||
$("#tipMsg").text(json.msg);
|
$("#tipMsg").text(json.msg);
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
|
hideLoading();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user