Authored by 郭成尧

orderComputeData-undefined

@@ -336,10 +336,10 @@ function coupon(count, orderInfo, orderComputeData) { @@ -336,10 +336,10 @@ function coupon(count, orderInfo, orderComputeData) {
336 count: count 336 count: count
337 }; 337 };
338 338
339 - if (  
340 - orderComputeData.coupon_amount ||  
341 - (orderComputeData.coupon_amount === 0 && orderComputeData.shipping_cost === 0)  
342 - ) { 339 + let couponAmount = _.get(orderComputeData, 'coupon_amount', false);
  340 + let shippingCost = _.get(orderComputeData, 'shipping_cost', false); // shipping_cost 是普通运费
  341 +
  342 + if (couponAmount || (couponAmount === 0 && shippingCost === 0)) {
343 coupons.couponName = orderInfo.couponName; 343 coupons.couponName = orderInfo.couponName;
344 } 344 }
345 345