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

@@ -28,7 +28,11 @@
</el-table-column>
<el-table-column align="center" label="排序" prop="sort" show-overflow-tooltip />
<el-table-column align="center" label="类型" prop="type" show-overflow-tooltip />
<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="挂饰" width="100">
<template slot-scope="scope">
<el-tooltip class="item" :content="scope.row.id" effect="dark" placement="top">
@@ -177,6 +181,16 @@
this.$baseMessage('更新失败', 'error')
}
},
getUnlockTypeName(type) {
const map = {
sing3: '连续签到3天',
sing5: '连续签到5天',
sing7: '连续签到7天',
ad: '观看广告',
vip: '开通vip',
}
return map[type] || type
},
async handleMoveUp(row) {
try {
const { msg } = await doMoveUp(row.id)