fix: user unlock
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user