删除了多余文件,完善了/mypoints-history
This commit is contained in:
@@ -539,9 +539,10 @@ const shouldShowPaymentMethod = (method) => {
|
||||
// 当用户积分足够支付时显示积分支付选项
|
||||
return totalPointsPrice > 0 && userBalance.value.points >= totalPointsPrice
|
||||
case 'mixed':
|
||||
// 当用户积分不够但积分+融豆换算足够时显示混合支付选项
|
||||
// 当用户积分不够但积分+融豆换算足够时显示混合支付选项,且用户积分必须大于等于10000
|
||||
const pointsNotEnough = totalPointsPrice > 0 && userBalance.value.points < totalPointsPrice
|
||||
return pointsNotEnough && isPaymentMethodAvailable('mixed')
|
||||
const hasEnoughPoints = userBalance.value.points >= 10000
|
||||
return pointsNotEnough && hasEnoughPoints && isPaymentMethodAvailable('mixed')
|
||||
default:
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user