From 44e72bfd7137001bbc43bbfcc2ec023c3c9c51b5 Mon Sep 17 00:00:00 2001 From: liaozetao <1107136310@qq.com> Date: Tue, 2 Jan 2024 18:20:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A7=86=E5=9B=BE=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/users/GiftManageView.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/views/users/GiftManageView.vue b/src/views/users/GiftManageView.vue index 2a26bd8..54f94a2 100644 --- a/src/views/users/GiftManageView.vue +++ b/src/views/users/GiftManageView.vue @@ -328,7 +328,7 @@
- + 注:如果上面已经上传svga素材,此处不要再上传 @@ -957,6 +957,7 @@ export default { } }); $('#picUploadBtn').on('click', function () { + showLoading(); $.ajaxFileUpload({ fileElementId: 'picUploadFile', //需要上传的文件域的ID,即的ID。 url: '/admin/gift/upload', //后台方法的路径 @@ -974,9 +975,11 @@ export default { $("#picImgInfo").html('未上传成功'); } console.log(json.path); + hideLoading(); } else { $("#tipMsg").text(json.msg); $("#tipModal").modal('show'); + hideLoading(); } }, error: function (data, status, e) { //提交失败自动执行的处理函数。 @@ -985,6 +988,7 @@ export default { }); }) $('#vggUploadBtn').on('click', function () { + showLoading(); $.ajaxFileUpload({ url: '/admin/gift/upload',//后台请求地址 type: 'post',//请求方式 当要提交自定义参数时,这个参数要设置成post @@ -1002,14 +1006,17 @@ export default { $("#vggImgInfo").html('未上传成功'); } console.log(json.path); + hideLoading(); } else { $("#tipMsg").text(json.msg); $("#tipModal").modal('show'); + hideLoading(); } } }); }) $('#svgaUploadBtn').on('click', function () { + showLoading(); $.ajaxFileUpload({ url: '/admin/gift/upload',//后台请求地址 type: 'post',//请求方式 当要提交自定义参数时,这个参数要设置成post @@ -1026,9 +1033,11 @@ export default { $("#svgaImgInfo").html('未上传成功'); } console.log(json.path); + hideLoading(); } else { $("#tipMsg").text(json.msg); $("#tipModal").modal('show'); + hideLoading(); } } });