fix: user unlock

This commit is contained in:
zzc
2026-03-13 04:24:36 +08:00
parent dde13eae14
commit 33242cbc31
8 changed files with 116 additions and 2 deletions

View File

@@ -44,6 +44,11 @@
{{ getSceneName(row.scene) }}
</template>
</el-table-column>
<el-table-column align="center" label="解锁类型" show-overflow-tooltip>
<template #default="{ row }">
{{ getUnlockTypeName(row.unlockType) }}
</template>
</el-table-column>
<el-table-column align="center" label="使用次数" prop="useCount" show-overflow-tooltip />
<el-table-column align="center" label="是否启用" show-overflow-tooltip>
<template #default="{ row }">
@@ -187,6 +192,16 @@
const found = this.sceneList.find((item) => item.scene === scene)
return found ? found.sceneName : scene
},
getUnlockTypeName(type) {
const map = {
sing3: '连续签到3天',
sing5: '连续签到5天',
sing7: '连续签到7天',
ad: '观看广告',
vip: '开通vip',
}
return map[type] || type
},
},
}
</script>