feat(admin): 新增后台用户列表与详情操作
This commit is contained in:
@@ -155,3 +155,27 @@ export const offlineSettlementStatusOptions = ['pending', 'settled'].map(value =
|
||||
value,
|
||||
label: offlineSettlementStatusMap[value].label,
|
||||
}))
|
||||
|
||||
export const userStatusMap: Record<string, StatusMeta> = {
|
||||
active: { label: '正常', tone: 'success' },
|
||||
frozen: { label: '已冻结', tone: 'red' },
|
||||
disabled: { label: '已禁用', tone: 'default' },
|
||||
}
|
||||
|
||||
export const realnameStatusMap: Record<string, StatusMeta> = {
|
||||
unverified: { label: '未实名', tone: 'default' },
|
||||
pending: { label: '认证中', tone: 'gold' },
|
||||
verified: { label: '已实名', tone: 'success' },
|
||||
rejected: { label: '认证失败', tone: 'red' },
|
||||
}
|
||||
|
||||
export const riskStatusMap: Record<string, StatusMeta> = {
|
||||
normal: { label: '正常', tone: 'success' },
|
||||
watch: { label: '观察', tone: 'gold' },
|
||||
restricted: { label: '受限', tone: 'orange' },
|
||||
blocked: { label: '已拦截', tone: 'red' },
|
||||
}
|
||||
|
||||
export const userStatusOptions = toOptions(userStatusMap)
|
||||
export const realnameStatusOptions = toOptions(realnameStatusMap)
|
||||
export const riskStatusOptions = toOptions(riskStatusMap)
|
||||
|
||||
Reference in New Issue
Block a user