修复:解决隐私政策查看问题;解决积分支付bug;

This commit is contained in:
2025-12-04 15:16:30 +08:00
parent 871eecb889
commit a7360e6459
6 changed files with 21 additions and 11 deletions

View File

@@ -313,10 +313,10 @@ const calculateFinalPrice = () => {
const couponAmount = 0
// 计算最大可用积分
const orderAmountAfterDiscount = totalAmount.value - promotionDiscounted.value - vipDiscounted.value
const orderAmountAfterDiscount = totalAmount.value - promotionDiscounted.value - vipDiscounted.value - couponAmount
pointsUsableMax.value = Math.min(
props?.userInfo?.jf || 0,
Math.floor(orderAmountAfterDiscount - couponAmount)
Math.floor(props.allowPointPay ? orderAmountAfterDiscount : 0)
)
pointsDiscounted.value = pointsUsableMax.value
@@ -331,7 +331,7 @@ const calculateFinalPrice = () => {
0,
totalAmount.value - couponAmount - pointsDiscounted.value - promotionDiscounted.value - vipDiscounted.value
)
finalAmount.value = result
finalAmount.value = parseFloat(result.toPrecision(12))
}
/**