feat(每日充值活动页面): 调整接口数据使用

This commit is contained in:
hzj 2026-04-30 17:39:29 +08:00
parent fe1c2c7c61
commit 80321e5c78

View File

@ -630,6 +630,9 @@ const task1Completed = computed(() => {
const currentTask1TargetCoins = computed(() => {
return currentLevelInfo.value.spendCoinsTarget || 0
})
const currentTask2TargetAmount = computed(() => {
return currentLevelInfo.value.rechargeTarget || 0
})
const currentTask1RewardCoins = computed(() => {
return currentLevelInfo.value.rewardCoins || taskInfo.value.task1TodayRewardCoins || 0
})
@ -655,7 +658,7 @@ const task1ProgressText = computed(() => {
return isolateLtrText(`${displayedSpendCoins.value}/${currentTask1TargetCoins.value}`)
})
const task2ProgressText = computed(() => {
return isolateLtrText(`$${displayedRechargeAmount.value}/$${taskInfo.value.task2TargetAmount}`)
return isolateLtrText(`$${displayedRechargeAmount.value}/$${currentTask2TargetAmount.value}`)
})
const selectedRewardTop = computed(() => {
return activityRewards.value[selectedRewardLevel.value - 1] || {}