...
|
...
|
@@ -97,7 +97,7 @@ function tranformPayment(data, orderInfo, cartType, skuList, orderComputeData) { |
|
|
if (data.hasOwnProperty('delivery_address') && !_.isEmpty(data.delivery_address)) {
|
|
|
let cookieAddress = orderInfo.address;
|
|
|
let addressData = data.delivery_address;
|
|
|
let isSupport = cookieAddress ? cookieAddress.is_support : addressData.is_support;
|
|
|
let isSupport = cookieAddress ? cookieAddress.is_support : '';
|
|
|
|
|
|
result.name = cookieAddress ? cookieAddress.consignee : addressData.consignee;
|
|
|
result.phoneNum = cookieAddress ? cookieAddress.mobile : addressData.mobile;
|
...
|
...
|
@@ -107,8 +107,7 @@ function tranformPayment(data, orderInfo, cartType, skuList, orderComputeData) { |
|
|
cookieAddress.address_info : [addressData.area, addressData.address].join(' ');
|
|
|
|
|
|
result.addressId = crypto.encryption(null, result.addressId + '');
|
|
|
isSunfengSupport = isSupport === 'Y';
|
|
|
|
|
|
isSunfengSupport = isSupport === 'N';
|
|
|
}
|
|
|
|
|
|
// delivery_way 配送信息
|
...
|
...
|
@@ -120,7 +119,7 @@ function tranformPayment(data, orderInfo, cartType, skuList, orderComputeData) { |
|
|
let defaultKey = 0;
|
|
|
|
|
|
deliveryWay.forEach((way, index) => {
|
|
|
if (way.delivery_way_name === '顺丰速运' && !isSunfengSupport) {
|
|
|
if (way.delivery_way_name === '顺丰速运' && isSunfengSupport) {
|
|
|
return;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -138,6 +137,8 @@ function tranformPayment(data, orderInfo, cartType, skuList, orderComputeData) { |
|
|
id: way.delivery_way_id,
|
|
|
name: way.delivery_way_name,
|
|
|
cost: way.delivery_way_cost,
|
|
|
is_support_message: (way.is_support === 'N' && way.is_support_message !== '') ?
|
|
|
way.is_support_message : ''
|
|
|
}, obj)
|
|
|
);
|
|
|
});
|
...
|
...
|
|