Authored by ccbikai

删除地址

... ... @@ -34,14 +34,16 @@ function editAddress(data) {
// $addressForm.find('[name="consignee"]').focus();
}
$confim.on('touchend', '.cancel', function(){
$confim.on('touchend', '.cancel', function() {
deleteId = null;
$confim.hide();
}).on('touchend', '.confim', function(){
}).on('touchend', '.confim', function() {
$.ajax({
method: 'POST',
url: '/home/deladdress',
data: {id: deleteId}
data: {
id: deleteId
}
}).then(function(res) {
if ($.type(res) !== 'object') {
res = {};
... ...