[接口]新增抽奖接口/api/game/playStart
This commit is contained in:
@@ -108,7 +108,7 @@
|
||||
getData()
|
||||
}
|
||||
|
||||
// 类型展示:0=充值 1=提现 2=购买抽奖次数 3=管理员加点 4=管理员扣点
|
||||
// 类型展示:0=充值 1=提现 2=购买抽奖次数 3=管理员加点 4=管理员扣点 5=抽奖
|
||||
const typeFormatter = (row: Record<string, unknown>) => {
|
||||
const t = row.type
|
||||
if (t === 0) return '充值'
|
||||
@@ -116,18 +116,18 @@
|
||||
if (t === 2) return '购买抽奖次数'
|
||||
if (t === 3) return '管理员加点'
|
||||
if (t === 4) return '管理员扣点'
|
||||
if (t === 5) return '抽奖'
|
||||
return '-'
|
||||
}
|
||||
|
||||
// 类型对应 tag 底色:0 充值 1 提现 2 购买 3 加点 4 扣点
|
||||
const typeTagType = (
|
||||
t: unknown
|
||||
): 'success' | 'warning' | 'danger' | 'info' | 'primary' => {
|
||||
const typeTagType = (t: unknown): 'success' | 'warning' | 'danger' | 'info' | 'primary' => {
|
||||
if (t === 0) return 'success'
|
||||
if (t === 1) return 'warning'
|
||||
if (t === 2) return 'primary'
|
||||
if (t === 3) return 'success'
|
||||
if (t === 4) return 'danger'
|
||||
if (t === 5) return 'info'
|
||||
return 'info'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user