...
|
...
|
@@ -37,7 +37,7 @@ class cartModel extends global.yoho.BaseModel { |
|
|
|
|
|
// 是否需要重新计算
|
|
|
let needReComputer = orderInfoCookie && !_.isEmpty(orderInfoCookie) &&
|
|
|
(orderInfoCookie.yohoCoin || orderInfoCookie.coupon_code);
|
|
|
(orderInfoCookie.yohoCoin || orderInfoCookie.user_check_coupon === 'Y');
|
|
|
|
|
|
if (needReComputer) {
|
|
|
orderInfoCookie.paymentType = orderInfoCookie.paymentType ? orderInfoCookie.paymentType : '';
|
...
|
...
|
@@ -114,7 +114,8 @@ class cartModel extends global.yoho.BaseModel { |
|
|
coupon: paymentProcess.handleCoupons({
|
|
|
paymentApiCouponData,
|
|
|
validCouponCount: validCouponCount,
|
|
|
orderComputeCouponPay: orderCompute.coupon_pay
|
|
|
orderComputeCouponPay: orderCompute.coupon_pay,
|
|
|
userCheckCoupon: orderInfoCookie.user_check_coupon === 'Y'
|
|
|
}),
|
|
|
giftCards: paymentProcess.handleGiftCards({
|
|
|
validGiftCardCount: validGiftCardCount,
|
...
|
...
|
|