|
@@ -265,20 +265,19 @@ |
|
@@ -265,20 +265,19 @@ |
265
|
var btn = $(this);
|
265
|
var btn = $(this);
|
266
|
var text = btn.text();
|
266
|
var text = btn.text();
|
267
|
if(submit_common('.form_data',form_data)) {
|
267
|
if(submit_common('.form_data',form_data)) {
|
|
|
268
|
+ if(allow_submit) {
|
268
|
allow_submit = false;
|
269
|
allow_submit = false;
|
269
|
var data = {
|
270
|
var data = {
|
270
|
id: "{$orderInfo.id}",
|
271
|
id: "{$orderInfo.id}",
|
271
|
param: form_data.join(',')
|
272
|
param: form_data.join(',')
|
272
|
};
|
273
|
};
|
273
|
- console.log(data);
|
|
|
274
|
- // _common("{:url('submit_form')}",data,[$('.num').html(res.data),$('.mask').show()])
|
|
|
275
|
$.ajax({
|
274
|
$.ajax({
|
276
|
url: "{:url('submit_form_edit')}",
|
275
|
url: "{:url('submit_form_edit')}",
|
277
|
type: "POST",
|
276
|
type: "POST",
|
278
|
data: data,
|
277
|
data: data,
|
279
|
dataType: "JSON",
|
278
|
dataType: "JSON",
|
280
|
beforeSend: function(){
|
279
|
beforeSend: function(){
|
281
|
- btn.text(text+'中...').prop('disabled', true);
|
280
|
+ btn.text(text+'中...');
|
282
|
},
|
281
|
},
|
283
|
success: function (res) {
|
282
|
success: function (res) {
|
284
|
console.log(res);
|
283
|
console.log(res);
|
|
@@ -302,9 +301,6 @@ |
|
@@ -302,9 +301,6 @@ |
302
|
$('.change_text_t').hide();
|
301
|
$('.change_text_t').hide();
|
303
|
}
|
302
|
}
|
304
|
$('.mask').show()
|
303
|
$('.mask').show()
|
305
|
- // setTimeout(function() {
|
|
|
306
|
- // window.location.href = res.url;
|
|
|
307
|
- // },1000);
|
|
|
308
|
} else {
|
304
|
} else {
|
309
|
_error(res.msg);
|
305
|
_error(res.msg);
|
310
|
}
|
306
|
}
|
|
@@ -314,11 +310,11 @@ |
|
@@ -314,11 +310,11 @@ |
314
|
},
|
310
|
},
|
315
|
complete: function(XHR,TS) {
|
311
|
complete: function(XHR,TS) {
|
316
|
allow_submit = true;
|
312
|
allow_submit = true;
|
317
|
- btn.text(text).prop('disabled', false);
|
313
|
+ btn.text(text);
|
318
|
}
|
314
|
}
|
319
|
});
|
315
|
});
|
320
|
}
|
316
|
}
|
321
|
- // $('.mask').show()
|
317
|
+ }
|
322
|
});
|
318
|
});
|
323
|
|
319
|
|
324
|
$('.order_long').click(function() {
|
320
|
$('.order_long').click(function() {
|