feat(幸运美金第四期): 调整接口数据和倒计时
This commit is contained in:
parent
281b2cf291
commit
a07a7e8444
@ -1849,9 +1849,9 @@ const handleBt = (type) => {
|
|||||||
selectedCoin.value = null // 清除选择币种
|
selectedCoin.value = null // 清除选择币种
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取目标时间(2026年1月16日上午5点,北京时间)
|
// 获取目标时间(2026年4月30日上午5点,北京时间)
|
||||||
const getTargetTime = () => {
|
const getTargetTime = () => {
|
||||||
const target = new Date(2026, 0, 16, 5, 0, 0) // 月份从0开始,10代表11月
|
const target = new Date(2026, 3, 30, 5, 0, 0) // 月份从0开始,10代表11月
|
||||||
return target.getTime()
|
return target.getTime()
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1922,8 +1922,8 @@ const showTarget = (task) => {
|
|||||||
let currentValue = timeType ? task.currentValue : task.currentValue / 60
|
let currentValue = timeType ? task.currentValue : task.currentValue / 60
|
||||||
let targetValue = timeType ? task.targetValue : task.targetValue / 60
|
let targetValue = timeType ? task.targetValue : task.targetValue / 60
|
||||||
// 直接去除小数部分(向下取整)
|
// 直接去除小数部分(向下取整)
|
||||||
currentValue = Math.floor(currentValue)
|
currentValue = Math.floor(currentValue * 10) / 10
|
||||||
targetValue = Math.floor(targetValue)
|
targetValue = Math.floor(targetValue * 10) / 10
|
||||||
let timeUnit = timeType ? t('minutes_short') : t('hours_short')
|
let timeUnit = timeType ? t('minutes_short') : t('hours_short')
|
||||||
|
|
||||||
return t('on_mic_progress', {
|
return t('on_mic_progress', {
|
||||||
@ -1932,46 +1932,46 @@ const showTarget = (task) => {
|
|||||||
unit: timeUnit,
|
unit: timeUnit,
|
||||||
})
|
})
|
||||||
} else if (task.targetType == 'SEND_GIFT') {
|
} else if (task.targetType == 'SEND_GIFT') {
|
||||||
if (task.taskCode == 'SPINS_SEND_GIFT_5') {
|
if (task.taskCode == 'SP_SEND_GIFT_5') {
|
||||||
return t('Gifts: 5 gifts({currentValue}/{targetValue})', {
|
return t('Send 5 Ramadan gifts ({currentValue}/{targetValue})', {
|
||||||
currentValue: task.currentValue,
|
currentValue: task.currentValue,
|
||||||
targetValue: task.targetValue,
|
targetValue: task.targetValue,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else if (task.targetType == 'SPEND_COINS') {
|
} else if (task.targetType == 'SAVE_COINS') {
|
||||||
if (task.taskCode == 'SPINS_SPEND_5000') {
|
if (task.taskCode == 'SP_SAVE_50000') {
|
||||||
return t('Spend 5000 coins in the game ({currentValue}/{targetValue})', {
|
return t('Win 50,000 coins in total across any games ({currentValue}/{targetValue})', {
|
||||||
currentValue: task.currentValue,
|
currentValue: task.currentValue,
|
||||||
targetValue: task.targetValue,
|
targetValue: task.targetValue,
|
||||||
})
|
})
|
||||||
} else if (task.taskCode == 'SPINS_SPEND_10000') {
|
} else if (task.taskCode == 'SP_SAVE_100000') {
|
||||||
return t('Spend 10000 coins in the game ({currentValue}/{targetValue})', {
|
return t('Win 100,000 coins in total across any games ({currentValue}/{targetValue})', {
|
||||||
currentValue: task.currentValue,
|
currentValue: task.currentValue,
|
||||||
targetValue: task.targetValue,
|
targetValue: task.targetValue,
|
||||||
})
|
})
|
||||||
} else if (task.taskCode == 'SPINS_SPEND_50000') {
|
} else if (task.taskCode == 'SP_SAVE_500000') {
|
||||||
return t('Spend 50000 coins in the game ({currentValue}/{targetValue})', {
|
return t('Win 500,000 coins in total across any games ({currentValue}/{targetValue})', {
|
||||||
currentValue: task.currentValue,
|
currentValue: task.currentValue,
|
||||||
targetValue: task.targetValue,
|
targetValue: task.targetValue,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
} else if (task.targetType == 'RECHARGE_AMOUNT') {
|
} 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})', {
|
return t('Daily total recharge amount: $1 ({currentValue}/{targetValue})', {
|
||||||
currentValue: task.currentValue,
|
currentValue: task.currentValue,
|
||||||
targetValue: task.targetValue,
|
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})', {
|
return t('Daily total recharge amount: $10 ({currentValue}/{targetValue})', {
|
||||||
currentValue: task.currentValue,
|
currentValue: task.currentValue,
|
||||||
targetValue: task.targetValue,
|
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})', {
|
return t('Daily total recharge amount: $50 ({currentValue}/{targetValue})', {
|
||||||
currentValue: task.currentValue,
|
currentValue: task.currentValue,
|
||||||
targetValue: task.targetValue,
|
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})', {
|
return t('Daily total recharge amount: $100 ({currentValue}/{targetValue})', {
|
||||||
currentValue: task.currentValue,
|
currentValue: task.currentValue,
|
||||||
targetValue: task.targetValue,
|
targetValue: task.targetValue,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user