...
|
...
|
@@ -39,17 +39,19 @@ $confim.on('touchend', '.cancel', function() { |
|
|
if ($.type(res) !== 'object') {
|
|
|
res = {};
|
|
|
}
|
|
|
$confim.hide();
|
|
|
if (res.code !== 200) {
|
|
|
tip.show(res.message || '网络出了点问题~');
|
|
|
loading.hideLoadingMask();
|
|
|
} else {
|
|
|
window.location.reload();
|
|
|
}
|
|
|
}).fail(function() {
|
|
|
tip.show('网络出了点问题~');
|
|
|
}).always(function() {
|
|
|
deleteId = null;
|
|
|
$confim.hide();
|
|
|
loading.hideLoadingMask();
|
|
|
}).always(function() {
|
|
|
deleteId = null;
|
|
|
});
|
|
|
});
|
|
|
|
...
|
...
|
@@ -82,4 +84,3 @@ $submit.on('touchend', function() { |
|
|
}).on('touchend touchcancel', function() {
|
|
|
$(this).removeClass('highlight');
|
|
|
}); |
|
|
|
...
|
...
|
|