Authored by 梁志锋

Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop

framework @ e9d066dd
1 -Subproject commit 75bbc3b075de19f239532f60c5995d06c5f814e2 1 +Subproject commit e9d066dd88a8e7e37103021c427a205a5cfcdcec
@@ -97,12 +97,6 @@ function orderCompute() { @@ -97,12 +97,6 @@ function orderCompute() {
97 if ($.type(res) !== 'object') { 97 if ($.type(res) !== 'object') {
98 window.location.reload(); 98 window.location.reload();
99 } else { 99 } else {
100 - /*if (res.order_amount) {  
101 - res.order_amount = (+res.order_amount).toFixed(2);  
102 - }  
103 - if (res.discount_amount) {  
104 - res.discount_amount = (+res.discount_amount).toFixed(2);  
105 - }*/  
106 if (res.last_order_amount) { 100 if (res.last_order_amount) {
107 res.last_order_amount = (+res.last_order_amount).toFixed(2); 101 res.last_order_amount = (+res.last_order_amount).toFixed(2);
108 } 102 }
@@ -128,6 +122,10 @@ function submitOrder() { @@ -128,6 +122,10 @@ function submitOrder() {
128 var invoiceText = $invoice.find('[name="invoice-title"]').val() || orderInfo('invoiceText'), 122 var invoiceText = $invoice.find('[name="invoice-title"]').val() || orderInfo('invoiceText'),
129 msg = $('#msg').find('input').val() || orderInfo('msg'); 123 msg = $('#msg').find('input').val() || orderInfo('msg');
130 124
  125 + if (orderInfo('deliveryId') === 2 && !$addressWrap.data('support')) {
  126 + tip.show('当前地址不支持顺丰快递');
  127 + return;
  128 + }
131 if (isSubmiting) { 129 if (isSubmiting) {
132 return false; 130 return false;
133 } 131 }
@@ -346,7 +346,8 @@ class CartModel @@ -346,7 +346,8 @@ class CartModel
346 $result['phoneNum'] = isset($address['mobile']) ? $address['mobile'] : $payReturn['delivery_address']['mobile']; 346 $result['phoneNum'] = isset($address['mobile']) ? $address['mobile'] : $payReturn['delivery_address']['mobile'];
347 $result['area'] = isset($address['area']) ? $address['area'] : $payReturn['delivery_address']['area']; 347 $result['area'] = isset($address['area']) ? $address['area'] : $payReturn['delivery_address']['area'];
348 $result['address'] = isset($address['address']) ? $address['address'] : $payReturn['delivery_address']['address']; 348 $result['address'] = isset($address['address']) ? $address['address'] : $payReturn['delivery_address']['address'];
349 - $result['isSupport'] = ($payReturn['delivery_address']['is_support'] === 'Y'); 349 + $isSupport = isset($address['is_support']) ? $address['is_support'] : $payReturn['delivery_address']['is_support'];
  350 + $result['isSupport'] = $isSupport === 'Y';
350 } 351 }
351 352
352 // 配送方式 353 // 配送方式