Showing
1 changed file
with
1 additions
and
2 deletions
@@ -29,6 +29,7 @@ $confim.on('touchend', '.cancel', function() { | @@ -29,6 +29,7 @@ $confim.on('touchend', '.cancel', function() { | ||
29 | $confim.hide(); | 29 | $confim.hide(); |
30 | }).on('touchend', '.confim', function() { | 30 | }).on('touchend', '.confim', function() { |
31 | loading.showLoadingMask(); | 31 | loading.showLoadingMask(); |
32 | + $confim.hide(); | ||
32 | $.ajax({ | 33 | $.ajax({ |
33 | method: 'POST', | 34 | method: 'POST', |
34 | url: '/home/delAddress', | 35 | url: '/home/delAddress', |
@@ -39,7 +40,6 @@ $confim.on('touchend', '.cancel', function() { | @@ -39,7 +40,6 @@ $confim.on('touchend', '.cancel', function() { | ||
39 | if ($.type(res) !== 'object') { | 40 | if ($.type(res) !== 'object') { |
40 | res = {}; | 41 | res = {}; |
41 | } | 42 | } |
42 | - $confim.hide(); | ||
43 | if (res.code !== 200) { | 43 | if (res.code !== 200) { |
44 | tip.show(res.message || '网络出了点问题~'); | 44 | tip.show(res.message || '网络出了点问题~'); |
45 | loading.hideLoadingMask(); | 45 | loading.hideLoadingMask(); |
@@ -48,7 +48,6 @@ $confim.on('touchend', '.cancel', function() { | @@ -48,7 +48,6 @@ $confim.on('touchend', '.cancel', function() { | ||
48 | } | 48 | } |
49 | }).fail(function() { | 49 | }).fail(function() { |
50 | tip.show('网络出了点问题~'); | 50 | tip.show('网络出了点问题~'); |
51 | - $confim.hide(); | ||
52 | loading.hideLoadingMask(); | 51 | loading.hideLoadingMask(); |
53 | }).always(function() { | 52 | }).always(function() { |
54 | deleteId = null; | 53 | deleteId = null; |
-
Please register or login to post a comment