feat(幸运美金第四期): 调整接口数据和倒计时

This commit is contained in:
hzj 2026-04-10 16:55:39 +08:00
parent 281b2cf291
commit a07a7e8444

View File

@ -1849,9 +1849,9 @@ const handleBt = (type) => {
selectedCoin.value = null //
}
// 20261165
// 20264305
const getTargetTime = () => {
const target = new Date(2026, 0, 16, 5, 0, 0) // 01011
const target = new Date(2026, 3, 30, 5, 0, 0) // 01011
return target.getTime()
}
@ -1922,8 +1922,8 @@ const showTarget = (task) => {
let currentValue = timeType ? task.currentValue : task.currentValue / 60
let targetValue = timeType ? task.targetValue : task.targetValue / 60
//
currentValue = Math.floor(currentValue)
targetValue = Math.floor(targetValue)
currentValue = Math.floor(currentValue * 10) / 10
targetValue = Math.floor(targetValue * 10) / 10
let timeUnit = timeType ? t('minutes_short') : t('hours_short')
return t('on_mic_progress', {
@ -1932,46 +1932,46 @@ const showTarget = (task) => {
unit: timeUnit,
})
} else if (task.targetType == 'SEND_GIFT') {
if (task.taskCode == 'SPINS_SEND_GIFT_5') {
return t('Gifts: 5 gifts({currentValue}/{targetValue})', {
if (task.taskCode == 'SP_SEND_GIFT_5') {
return t('Send 5 Ramadan gifts ({currentValue}/{targetValue})', {
currentValue: task.currentValue,
targetValue: task.targetValue,
})
}
} else if (task.targetType == 'SPEND_COINS') {
if (task.taskCode == 'SPINS_SPEND_5000') {
return t('Spend 5000 coins in the game ({currentValue}/{targetValue})', {
} else if (task.targetType == 'SAVE_COINS') {
if (task.taskCode == 'SP_SAVE_50000') {
return t('Win 50,000 coins in total across any games ({currentValue}/{targetValue})', {
currentValue: task.currentValue,
targetValue: task.targetValue,
})
} else if (task.taskCode == 'SPINS_SPEND_10000') {
return t('Spend 10000 coins in the game ({currentValue}/{targetValue})', {
} else if (task.taskCode == 'SP_SAVE_100000') {
return t('Win 100,000 coins in total across any games ({currentValue}/{targetValue})', {
currentValue: task.currentValue,
targetValue: task.targetValue,
})
} else if (task.taskCode == 'SPINS_SPEND_50000') {
return t('Spend 50000 coins in the game ({currentValue}/{targetValue})', {
} else if (task.taskCode == 'SP_SAVE_500000') {
return t('Win 500,000 coins in total across any games ({currentValue}/{targetValue})', {
currentValue: task.currentValue,
targetValue: task.targetValue,
})
}
} else if (task.targetType == 'RECHARGE_AMOUNT') {
if (task.taskCode == 'SPINS_RECHARGE_1') {
if (task.taskCode == 'SP_RECHARGE_1') {
return t('Daily total recharge amount: $1 ({currentValue}/{targetValue})', {
currentValue: task.currentValue,
targetValue: task.targetValue,
})
} else if (task.taskCode == 'SPINS_RECHARGE_10') {
} else if (task.taskCode == 'SP_RECHARGE_10') {
return t('Daily total recharge amount: $10 ({currentValue}/{targetValue})', {
currentValue: task.currentValue,
targetValue: task.targetValue,
})
} else if (task.taskCode == 'SPINS_RECHARGE_50') {
} else if (task.taskCode == 'SP_RECHARGE_50') {
return t('Daily total recharge amount: $50 ({currentValue}/{targetValue})', {
currentValue: task.currentValue,
targetValue: task.targetValue,
})
} else if (task.taskCode == 'SPINS_RECHARGE_100') {
} else if (task.taskCode == 'SP_RECHARGE_100') {
return t('Daily total recharge amount: $100 ({currentValue}/{targetValue})', {
currentValue: task.currentValue,
targetValue: task.targetValue,