fix(withdraw): 优化提现功能的文本提示和样式

- 更新多语言文案,改进提现成功提示信息
- 调整移动端提现模态框的布局间距样式
- 修复移动端提现输入框的字体大小显示问题
- 简化提现提交钩子中的国际化处理逻辑
- 移除冗余的数字格式化和多语言参数配置
This commit is contained in:
JiaJun
2026-06-05 17:48:20 +08:00
parent c7e0fe7fba
commit b6168301fe
6 changed files with 9 additions and 31 deletions

View File

@@ -237,7 +237,7 @@ function InputShell({
onChange={(event) => onChange(event.target.value)}
placeholder={placeholder}
className={cn(
'h-design-30 rounded-[calc(var(--design-unit)*5)] border px-design-8 text-design-12',
'h-design-30 rounded-[calc(var(--design-unit)*5)] border px-design-8 !text-design-10 placeholder:!text-design-10',
uppercase && 'uppercase',
error
? 'border-[#B93F44] bg-[rgba(34,13,16,0.78)] text-[#FCEEEE]'

View File

@@ -6,8 +6,7 @@ import { notify } from '@/lib/notify'
import type { WithdrawCreateRequestDto } from '@/type'
export function useWithdrawSubmit() {
const { i18n, t } = useTranslation()
const locale = i18n.resolvedLanguage ?? i18n.language ?? 'en-US'
const { t } = useTranslation()
return useMutation({
mutationFn: (payload: WithdrawCreateRequestDto) => createWithdraw(payload),
@@ -18,29 +17,8 @@ export function useWithdrawSubmit() {
: t('commonUi.toast.requestFailed'),
)
},
onSuccess: (data) => {
const formatter = new Intl.NumberFormat(locale, {
maximumFractionDigits: 2,
})
notify.success(t('gameDesktop.withdraw.submitSuccess'), {
description: [
t('gameDesktop.withdraw.success.orderNo', {
orderNo: data.order_no,
}),
t('gameDesktop.withdraw.success.actualArrivalCoin', {
amount: formatter.format(data.actual_arrival_coin),
}),
t('gameDesktop.withdraw.success.feeCoin', {
amount: formatter.format(data.fee_coin),
}),
t('gameDesktop.withdraw.success.reviewRequired', {
value: data.risk_review_required
? t('commonUi.dialog.yes')
: t('commonUi.dialog.no'),
}),
].join('\n'),
})
onSuccess: () => {
notify.success(t('gameDesktop.withdraw.submitSuccess'))
},
})
}

View File

@@ -606,7 +606,7 @@ export default {
'Transactions between RM10 and RM99.99 will be charged a minimum withdrawal fee of RM 1.',
cancel: 'Cancel',
confirm: TEXT_CONFIRM,
submitSuccess: 'Withdrawal request submitted',
submitSuccess: 'Withdrawal request submitted successfully',
withdrawal: 'Withdrawal',
fields: {
diamondAmount: 'Withdrawal Diamond Amount',

View File

@@ -611,7 +611,7 @@ export default {
'Transaksi antara RM10 dan RM99.99 akan dikenakan yuran pengeluaran minimum RM 1.',
cancel: 'Batal',
confirm: TEXT_CONFIRM,
submitSuccess: 'Permohonan pengeluaran telah dihantar',
submitSuccess: 'Permohonan pengeluaran berjaya dihantar',
withdrawal: 'Pengeluaran',
fields: {
diamondAmount: 'Jumlah Berlian Pengeluaran',

View File

@@ -588,7 +588,7 @@ export default {
feeNotice: 'RM10 - RM99.99 之间的交易将收取最低RM 1的提现手续费',
cancel: '取消',
confirm: TEXT_CONFIRM,
submitSuccess: '提现申请已提交',
submitSuccess: '申请提现成功',
withdrawal: '提现',
fields: {
diamondAmount: '提现钻石数量',

View File

@@ -55,13 +55,13 @@ function MobileProceduresModal() {
}
>
<SmartImage
className={'w-design-40 mt-design-15 ml-design-10'}
className={'w-design-40 mt-design-20 ml-design-10'}
alt={'diamond'}
src={diamond}
/>
<div
className={
'modal-title-gold-glow mt-design-15 text-design-22 font-bold tracking-[0.06em] text-[#F7DC7A]'
'modal-title-gold-glow mt-design-20 text-design-22 font-bold tracking-[0.06em] text-[#F7DC7A]'
}
>
{currentUser?.coin || 0}