...
|
...
|
@@ -21,8 +21,7 @@ var $addressForm = $('.edit-address'), |
|
|
isSubmiting,
|
|
|
currentPage = 'edit',
|
|
|
newArea = [],
|
|
|
chinaAddressList,
|
|
|
queryString = window.queryString;
|
|
|
chinaAddressList;
|
|
|
|
|
|
$($editAddressPage, $addressListPage).css('min-height', function() {
|
|
|
return $(window).height() - $('#yoho-header').height();
|
...
|
...
|
@@ -93,14 +92,16 @@ $addressForm.on('submit', function() { |
|
|
tip.show(res.message || '网络出了点问题~');
|
|
|
isSubmiting = false;
|
|
|
loading.hideLoadingMask();
|
|
|
} else {
|
|
|
if (queryString.refer === 'shopping') {
|
|
|
} else if (window.queryString) {
|
|
|
if (window.queryString.refer === 'shopping') {
|
|
|
window.location.href = '/cart/index/selectAddress';
|
|
|
} else if (queryString.refer === 'modify') {
|
|
|
} else if (window.queryString.refer === 'modify') {
|
|
|
window.location.href = '/home/addressModify';
|
|
|
} else {
|
|
|
window.location.href = '/home/address';
|
|
|
}
|
|
|
} else {
|
|
|
window.location.href = '/home/address';
|
|
|
}
|
|
|
}).fail(function() {
|
|
|
tip.show('网络出了点问题~');
|
...
|
...
|
|