feat: enhance API error handling and UI improvements
Some checks failed
lotteryfront CI / build (push) Has been cancelled

- Updated `getPublicCurrencies` and `getPlayerAuthCaptcha` functions to include `skipGlobalServerError` option, improving error handling for API requests.
- Refactored the NotFoundPage component to enhance mobile responsiveness and UI consistency, integrating `PlayerMobileViewport`.
- Improved the NetworkStatusBanner and OfflineBanner components by adding player banner height reference for better layout management.
- Updated Wallet components to utilize `PlayerMoneyDisplay` for consistent currency representation and added credit mode handling in various screens.
- Enhanced the WalletScreen and Transfer screens with loading panels and credit guard logic for better user experience during wallet operations.
This commit is contained in:
2026-06-22 10:50:52 +08:00
parent 34b851d7e1
commit ecb032f8cc
43 changed files with 756 additions and 297 deletions

View File

@@ -64,7 +64,9 @@
"captchaLoadFailed": "验证码加载失败,请重试",
"captchaLoading": "加载中…",
"captchaRefresh": "刷新验证码",
"captchaFetch": "点击获取"
"captchaFetch": "点击获取",
"usernameInvalidCharset": "账号只能使用字母、数字、点(.)、下划线和连字符",
"passwordMinLength": "密码至少需要 6 个字符"
},
"errors": {
"noToken": "未发现授权令牌",

View File

@@ -46,7 +46,8 @@
"markRead": "标记已读",
"markAllRead": "全部已读",
"unreadCount_one": "未读 {{count}} 条",
"unreadCount_other": "未读 {{count}} 条"
"unreadCount_other": "未读 {{count}} 条",
"creditEmptyHint": "信用盘无主站划转,暂无待对账通知。"
},
"panel": {
"home": "首页"
@@ -87,7 +88,24 @@
"home": "返回首页",
"hall": "投注大厅",
"results": "开奖结果",
"wallet": "我的钱包"
"wallet": "我的钱包",
"funds": "钱包 / 信用"
},
"calendar": {
"months": {
"1": "1月",
"2": "2月",
"3": "3月",
"4": "4月",
"5": "5月",
"6": "6月",
"7": "7月",
"8": "8月",
"9": "9月",
"10": "10月",
"11": "11月",
"12": "12月"
}
},
"player": {
"fallback": "玩家 #{{id}}"
@@ -263,7 +281,9 @@
"processingProgress": "正在处理注单...",
"noWarnings": "当前预览未发现明显风险。",
"warningsTitle": "赔付池预警",
"warningsDescription": "以下号码本期赔付池占用较高,仍允许下注;若实际占用不足将售罄拒单。"
"warningsDescription": "以下号码本期赔付池占用较高,仍允许下注;若实际占用不足将售罄拒单。",
"periodRebate": "账期回水",
"periodRebateHint": "本单回水计入账期统一结算,不在下注时即时抵扣。"
},
"placeAllFailed": "本次 {{failed}} 条注项均未成功",
"result": {
@@ -282,6 +302,7 @@
"actual": "实扣金额",
"orderNo": "订单号",
"balanceAfter": "剩余余额",
"creditBalanceAfter": "可用信用",
"items": "成功注项明细",
"number": "号码",
"actualDeduct": "实扣",
@@ -393,6 +414,7 @@
"outExceeds": "转出金额不能超过可用余额。",
"pendingTitle": "待对账",
"pendingDescription": "以下划转主站结果未最终确认;若长时间未到账请联系客服。",
"viewPendingReconcile": "查看待对账详情({{count}}",
"pendingStatus": "处理中",
"flowsTitle": "资金流水",
"creditFlowsTitle": "信用流水",
@@ -520,7 +542,20 @@
"backToGroup": "返回订单详情",
"notFound": "注单不存在或无权查看",
"noData": "无数据",
"loadFailed": "加载失败"
"loadFailed": "加载失败",
"failReason": {
"2001": "当期已封盘,无法下注",
"2003": "余额或可用信用不足",
"2004": "号码格式不合法",
"2005": "玩法参数无效",
"2006": "期号无效或不可下注",
"2007": "玩法不存在或已关闭",
"2008": "赔率配置已更新,请重新预览",
"2009": "订单不可重复提交",
"4001": "该号码本期额度已售罄",
"draw_no_longer_open": "期号已封盘或不可下注",
"draw_cancelled": "本期已取消,注单已退本"
}
},
"results": {
"title": "开奖结果",
@@ -587,6 +622,8 @@
"rules": {
"title": "玩法规则",
"subtitle": "2D / 3D / 4D、包号、回水、封盘与售罄说明",
"empty": "暂无玩法规则说明",
"loadFailed": "规则加载失败",
"quick": {
"title": "开奖结构",
"description": "每期开奖 23 组 4 位号码,结算以下注时锁定的赔率快照为准。",