feat(auth): 更新用户认证类型定义并优化提款功能
- 添加 AuthCoinAmount 类型和 AuthWithdrawAccount 接口 - 在 AuthUser 和相关 DTO 中增加余额和提款账户字段 - 将获取用户资料的请求方法从 POST 改为 GET - 实现提款账户信息的默认值设置和状态管理 - 添加 JackpotPoolTicker 组件并在状态栏中显示 - 更新多语言文件中的游戏规则说明 - 实现提款表单的预填充和状态重置功能
This commit is contained in:
@@ -21,9 +21,13 @@ function formatWinAmount(value: string) {
|
||||
|
||||
type MessageBroadcastProps = {
|
||||
className?: string
|
||||
showJackpotPool?: boolean
|
||||
}
|
||||
|
||||
export function MessageBroadcast({ className }: MessageBroadcastProps) {
|
||||
export function MessageBroadcast({
|
||||
className,
|
||||
showJackpotPool = true,
|
||||
}: MessageBroadcastProps) {
|
||||
const { t } = useTranslation()
|
||||
const prefersReducedMotion = useReducedMotion()
|
||||
const jackpotBroadcasts = useGameSessionStore(
|
||||
@@ -165,10 +169,12 @@ export function MessageBroadcast({ className }: MessageBroadcastProps) {
|
||||
</AnimatePresence>
|
||||
</div>
|
||||
</div>
|
||||
<JackpotPoolTicker
|
||||
variant="inline"
|
||||
className="!w-fit max-w-[54%] shrink-0 md:max-w-[calc(var(--design-unit)*320)]"
|
||||
/>
|
||||
{showJackpotPool ? (
|
||||
<JackpotPoolTicker
|
||||
variant="inline"
|
||||
className="!w-fit max-w-[54%] shrink-0 md:max-w-[calc(var(--design-unit)*320)]"
|
||||
/>
|
||||
) : null}
|
||||
</section>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user