feat: 优化注单与钱包流水分页加载体验
- 注单列表与钱包流水支持 10 条分页、滚动触底自动加载和手动加载更多 - 新增钱包流水无更多数据提示与分页末页计算工具 - 精简钱包首页快捷入口与页面标题眉标展示 - 将下注表格草稿合计文案调整为投注金额并同步多语言翻译
This commit is contained in:
@@ -38,6 +38,11 @@ export type WalletLogsData = {
|
||||
pending_reconcile: WalletPendingTransfer[];
|
||||
};
|
||||
|
||||
export function getWalletLogsLastPage(logs: Pick<WalletLogsData, "total" | "per_page"> | null): number {
|
||||
if (!logs || logs.per_page <= 0) return 1;
|
||||
return Math.max(1, Math.ceil(logs.total / logs.per_page));
|
||||
}
|
||||
|
||||
export type GetWalletLogsParams = {
|
||||
page?: number;
|
||||
/** 每页条数(PRD 示例 `size`) */
|
||||
|
||||
Reference in New Issue
Block a user