diff --git a/src/app/(main)/withdraws/page.tsx b/src/app/(main)/withdraws/page.tsx index fd248e4..2844323 100644 --- a/src/app/(main)/withdraws/page.tsx +++ b/src/app/(main)/withdraws/page.tsx @@ -105,19 +105,6 @@ const SORT_OPTIONS = [ { value: 'created_at', label: '申请时间' }, { value: 'amount_cents', label: '提现金额' }, ]; -// 提现类型:coin_cash=福利页提现(金币兑换现金) / invite_cash=邀请提现(邀请奖励金) -const SOURCE_LABEL: Record = { - coin_cash: '福利页提现', - invite_cash: '邀请提现', -}; -const SOURCE_COLOR: Record = { - coin_cash: 'blue', - invite_cash: 'purple', -}; -const SOURCE_OPTIONS = [ - { value: 'coin_cash', label: '福利页提现' }, - { value: 'invite_cash', label: '邀请提现' }, -]; const DATE_FIELD_OPTIONS = [ { value: 'created_at', label: '申请时间' }, { value: 'updated_at', label: '更新时间' }, @@ -201,11 +188,9 @@ export default function WithdrawsPage() { const [sortBy, setSortBy] = useState<'created_at' | 'amount_cents'>('created_at'); const [sortOrder, setSortOrder] = useState<'asc' | 'desc'>('desc'); const [quickFilter, setQuickFilter] = useState(undefined); - const [source, setSource] = useState(undefined); const filters: Record = {}; if (activeStatus !== 'all') filters.status = activeStatus; - if (source) filters.source = source; if (keyword.trim()) filters.keyword = keyword.trim(); if (dateRange?.[0]) filters.date_from = dateRange[0].startOf('day').toISOString(); if (dateRange?.[1]) filters.date_to = dateRange[1].endOf('day').toISOString(); @@ -230,7 +215,6 @@ export default function WithdrawsPage() { setSortBy('created_at'); setSortOrder('desc'); setQuickFilter(undefined); - setSource(undefined); }; const applyQuickFilter = (value?: string) => { @@ -520,12 +504,6 @@ export default function WithdrawsPage() { width: 120, render: (v: number) => {yuan(v)}, }, - { - title: '提现类型', - dataIndex: 'source', - width: 110, - render: (v: string) => {SOURCE_LABEL[v] || v}, - }, { title: '累计提现', dataIndex: 'cumulative_success_cents', @@ -839,14 +817,6 @@ export default function WithdrawsPage() { }} onSearch={(value) => setKeyword(value.trim())} /> - `共 ${t} 条`, onChange: onPageChange, }} - scroll={{ x: 1460 }} + scroll={{ x: 1350 }} onRow={(record) => ({ onClick: () => openDetail(record), style: { cursor: 'pointer' }, @@ -1004,11 +974,6 @@ export default function WithdrawsPage() { {yuan(detail.order.amount_cents)} - - - {SOURCE_LABEL[detail.order.source] || detail.order.source} - - {detail.order.user_name || '-'}