Authored by 毕凯

删除地址逻辑优化

... ... @@ -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;
});
});
... ... @@ -73,7 +75,7 @@ $action.on('touchend', '.del', function() {
$submit.on('touchend', function() {
if (security.hasDangerInput(false)) {
return false;
return false;
}
$addressForm.submit();
return false;
... ... @@ -82,4 +84,3 @@ $submit.on('touchend', function() {
}).on('touchend touchcancel', function() {
$(this).removeClass('highlight');
});
... ...