chore(游戏活动页): 增加美元图标
This commit is contained in:
parent
68cb588c35
commit
785ace137d
@ -521,9 +521,11 @@ const getCountdown = () => {
|
|||||||
|
|
||||||
// 格式化奖励的展示信息
|
// 格式化奖励的展示信息
|
||||||
const showDetail = (type, reward) => {
|
const showDetail = (type, reward) => {
|
||||||
let showamount = ['GOLD', 'DIAMOND', 'GIFT', 'FRAGMENTS', 'DOLLARS']
|
let showamount = ['GOLD', 'DIAMOND', 'GIFT', 'FRAGMENTS']
|
||||||
if (showamount.includes(type)) {
|
if (showamount.includes(type)) {
|
||||||
return reward.content
|
return reward.content
|
||||||
|
} else if (type === 'DOLLARS') {
|
||||||
|
return `$${reward.content}`
|
||||||
} else {
|
} else {
|
||||||
return `${reward.quantity}Days`
|
return `${reward.quantity}Days`
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user