feat(每日充值活动页面): 调整领取按钮展示的点击判断
This commit is contained in:
parent
a1381ee2a9
commit
48beb4b29f
@ -559,6 +559,9 @@ const currentLevel = computed(() => {
|
||||
const currentLevelInfo = computed(() => {
|
||||
return levelMap.value.get(currentLevel.value) || {}
|
||||
})
|
||||
const currentTask2Claimed = computed(() => {
|
||||
return Boolean(currentLevelInfo.value.task2Claimed)
|
||||
})
|
||||
const currentChestImageName = computed(() => {
|
||||
return `Lv${currentLevel.value}${currentLevelInfo.value.task2Claimed ? '_open' : ''}`
|
||||
})
|
||||
@ -570,17 +573,17 @@ const currentTask2RewardTop = computed(() => {
|
||||
})
|
||||
const canClaimTask2Reward = computed(() => {
|
||||
return (
|
||||
!taskInfo.value.task2Claimed &&
|
||||
!currentTask2Claimed.value &&
|
||||
taskInfo.value.task2Completed &&
|
||||
Boolean(currentTask2RewardTop.value?.rule?.id) &&
|
||||
!claimingTask2Reward.value
|
||||
)
|
||||
})
|
||||
const taskRewardButtonDisabled = computed(() => {
|
||||
return !taskInfo.value.task2Claimed && !canClaimTask2Reward.value
|
||||
return !currentTask2Claimed.value && !canClaimTask2Reward.value
|
||||
})
|
||||
const taskRewardButtonImageName = computed(() => {
|
||||
return taskInfo.value.task2Claimed ? 'receivedBt' : 'receiveBt'
|
||||
return currentTask2Claimed.value ? 'receivedBt' : 'receiveBt'
|
||||
})
|
||||
const chestProgressList = computed(() => {
|
||||
return Array.from({ length: 10 }, (_, index) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user