1
0
Quellcode durchsuchen

后端退款增加遮罩1215

qng vor 3 Jahren
Ursprung
Commit
93eaac3764
1 geänderte Dateien mit 14 neuen und 0 gelöschten Zeilen
  1. 14 0
      kmall-admin/src/main/webapp/js/shop/offilineOrderList.js

+ 14 - 0
kmall-admin/src/main/webapp/js/shop/offilineOrderList.js

@@ -438,11 +438,13 @@ let vm = new Vue({
             params.orderId = rowId;
 
             confirm("确认退款吗?",function () {
+                dialogLoading(true);
                 $.ajax({
                     type: "POST",
                     url: '../order/offilineRefund',
                     data: params,
                     success: function (r) {
+                        dialogLoading(false);
                         if (r.code == 0) {
                             vm.canRefund = true;
                             alert("退款成功")
@@ -736,6 +738,18 @@ let vm = new Vue({
         return content;
     }
 
+    function dialogLoading(flag) {
+        if (flag) {
+            top.layer.load(0, {
+                shade: [0.5, '#fff'],
+                time: 10000,
+                content: '处理中...'
+            });
+        } else {
+            top.layer.closeAll('loading');
+        }
+    }
+
     function wxPay(authCode,id,msg_index){
         $.ajax({
             type: "POST",