|
@@ -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",
|