...
|
...
|
@@ -220,18 +220,17 @@ function tranformPayment(data, orderInfo, cartType, skuList, orderComputeData) { |
|
|
if (data.payment_way) {
|
|
|
let payway = data.payment_way;
|
|
|
|
|
|
payway = payway.filter(obj => obj.is_support === 'Y')
|
|
|
.map(way => {
|
|
|
let obj = {};
|
|
|
|
|
|
obj.id = way.payment_id;
|
|
|
obj.paymentType = way.payment_type;
|
|
|
obj.name = way.payment_type_name;
|
|
|
obj.isSupport = way.is_support === 'Y';
|
|
|
obj.isSupportMessage = way.payment_type === 2 ? _.get(way, 'is_support_message', false) : false;
|
|
|
|
|
|
return obj;
|
|
|
});
|
|
|
payway = payway.map(way => {
|
|
|
let obj = {};
|
|
|
|
|
|
obj.id = way.payment_id;
|
|
|
obj.paymentType = way.payment_type;
|
|
|
obj.name = way.payment_type_name;
|
|
|
obj.isSupport = way.is_support === 'Y';
|
|
|
obj.isSupportMessage = way.payment_type === 2 ? _.get(way, 'is_support_message', false) : false;
|
|
|
|
|
|
return obj;
|
|
|
});
|
|
|
|
|
|
payway.some(way => {
|
|
|
let bool = way.paymentType === orderInfo.paymentType;
|
...
|
...
|
|