feat(每日充值活动页面): 宝箱激活状态根据当前等级来
This commit is contained in:
parent
de4fd8ca5e
commit
69ed55bdaf
@ -790,15 +790,7 @@ const selectRewardChest = (level) => {
|
|||||||
|
|
||||||
const isChestConditionReached = (level) => {
|
const isChestConditionReached = (level) => {
|
||||||
const chestLevel = Number(level)
|
const chestLevel = Number(level)
|
||||||
if (chestLevel < currentLevel.value) {
|
return chestLevel > 0 && chestLevel <= currentLevel.value
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
if (chestLevel === currentLevel.value) {
|
|
||||||
return task1Completed.value && task2Completed.value
|
|
||||||
}
|
|
||||||
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const getChestImageName = (chest) => {
|
const getChestImageName = (chest) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user