Authored by 郭成尧

'addressAddorEditor'

@@ -21,8 +21,7 @@ var $addressForm = $('.edit-address'), @@ -21,8 +21,7 @@ var $addressForm = $('.edit-address'),
21 isSubmiting, 21 isSubmiting,
22 currentPage = 'edit', 22 currentPage = 'edit',
23 newArea = [], 23 newArea = [],
24 - chinaAddressList,  
25 - queryString = window.queryString; 24 + chinaAddressList;
26 25
27 $($editAddressPage, $addressListPage).css('min-height', function() { 26 $($editAddressPage, $addressListPage).css('min-height', function() {
28 return $(window).height() - $('#yoho-header').height(); 27 return $(window).height() - $('#yoho-header').height();
@@ -93,14 +92,16 @@ $addressForm.on('submit', function() { @@ -93,14 +92,16 @@ $addressForm.on('submit', function() {
93 tip.show(res.message || '网络出了点问题~'); 92 tip.show(res.message || '网络出了点问题~');
94 isSubmiting = false; 93 isSubmiting = false;
95 loading.hideLoadingMask(); 94 loading.hideLoadingMask();
96 - } else {  
97 - if (queryString.refer === 'shopping') { 95 + } else if (window.queryString) {
  96 + if (window.queryString.refer === 'shopping') {
98 window.location.href = '/cart/index/selectAddress'; 97 window.location.href = '/cart/index/selectAddress';
99 - } else if (queryString.refer === 'modify') { 98 + } else if (window.queryString.refer === 'modify') {
100 window.location.href = '/home/addressModify'; 99 window.location.href = '/home/addressModify';
101 } else { 100 } else {
102 window.location.href = '/home/address'; 101 window.location.href = '/home/address';
103 } 102 }
  103 + } else {
  104 + window.location.href = '/home/address';
104 } 105 }
105 }).fail(function() { 106 }).fail(function() {
106 tip.show('网络出了点问题~'); 107 tip.show('网络出了点问题~');