From 53b7f55eb783eca1bd9bc970df708956b4b323b4 Mon Sep 17 00:00:00 2001 From: Seven Date: Mon, 19 Jan 2026 18:56:12 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=94=B6=E6=AC=BE?= =?UTF-8?q?=E6=96=B9=E5=BC=8F=E5=92=8C=E6=8F=90=E7=8E=B0=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=95=B4=E5=90=88=E6=94=AF=E4=BB=98?= =?UTF-8?q?=E5=92=8C=E6=8F=90=E7=8E=B0=E7=BB=84=E4=BB=B6=E8=87=B3=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/user/components/payment.vue | 67 +++++++++++ src/views/user/components/withdraw.vue | 154 +++++++++++++++++++++++++ src/views/user/index.vue | 46 +++++++- 3 files changed, 265 insertions(+), 2 deletions(-) create mode 100644 src/views/user/components/payment.vue create mode 100644 src/views/user/components/withdraw.vue diff --git a/src/views/user/components/payment.vue b/src/views/user/components/payment.vue new file mode 100644 index 0000000..0d2beb6 --- /dev/null +++ b/src/views/user/components/payment.vue @@ -0,0 +1,67 @@ + + + + + diff --git a/src/views/user/components/withdraw.vue b/src/views/user/components/withdraw.vue new file mode 100644 index 0000000..99859ad --- /dev/null +++ b/src/views/user/components/withdraw.vue @@ -0,0 +1,154 @@ + + + + + diff --git a/src/views/user/index.vue b/src/views/user/index.vue index 8c62c06..3c39054 100644 --- a/src/views/user/index.vue +++ b/src/views/user/index.vue @@ -3,9 +3,11 @@ import { h, useTemplateRef } from 'vue'; import { useDialog } from 'naive-ui'; import dayjs from 'dayjs'; import { client, safeClient } from '@/service/api'; -import type { TableBaseColumns, TableFetchData, TableInst } from '@/components/table'; +import type { TableBaseColumns, TableFetchData, TableFilterColumns, TableInst } from '@/components/table'; import Wallet from './components/wallet.vue'; import Address from './components/address.vue'; +import Payment from './components/payment.vue'; +import Withdraw from './components/withdraw.vue'; const dialog = useDialog(); @@ -50,7 +52,7 @@ const columns: TableBaseColumns = [ { key: 'operations', title: '操作', - width: 200, + width: 300, fixed: 'right', operations: (row: any) => [ { @@ -76,10 +78,49 @@ const columns: TableBaseColumns = [ content: () => h(Address, { userId: row.userId }) }); } + }, + { + contentText: '收款方式', + size: 'small', + onClick: () => { + dialog.create({ + title: '收款方式', + showIcon: false, + style: { width: '1000px' }, + content: () => h(Payment, { userId: row.userId }) + }); + } + }, + { + contentText: '提现订单', + size: 'small', + onClick: () => { + dialog.create({ + title: '提现订单', + showIcon: false, + style: { width: '1000px' }, + content: () => h(Withdraw, { userId: row.userId }) + }); + } } ] } ]; + +const filterColumns: TableFilterColumns = [ + { + key: 'uid', + title: 'UID' + }, + { + key: 'username', + title: '手机号' + }, + { + key: 'name', + title: '姓名' + } +];