From 1f4acce75a2b484209ec089702b0b5a0c91a48b3 Mon Sep 17 00:00:00 2001 From: Seven Date: Mon, 19 Jan 2026 18:31:45 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=9C=B0=E5=9D=80?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=95=B4=E5=90=88?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E7=BB=84=E4=BB=B6=E8=87=B3=E7=94=A8=E6=88=B7?= =?UTF-8?q?=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/address.vue | 55 +++++++++++++++++++++++++++ src/views/user/index.vue | 16 +++++++- 2 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 src/views/user/components/address.vue diff --git a/src/views/user/components/address.vue b/src/views/user/components/address.vue new file mode 100644 index 0000000..42cef3f --- /dev/null +++ b/src/views/user/components/address.vue @@ -0,0 +1,55 @@ + + + + + diff --git a/src/views/user/index.vue b/src/views/user/index.vue index 68c2c22..8c62c06 100644 --- a/src/views/user/index.vue +++ b/src/views/user/index.vue @@ -5,6 +5,7 @@ import dayjs from 'dayjs'; import { client, safeClient } from '@/service/api'; import type { TableBaseColumns, TableFetchData, TableInst } from '@/components/table'; import Wallet from './components/wallet.vue'; +import Address from './components/address.vue'; const dialog = useDialog(); @@ -49,7 +50,7 @@ const columns: TableBaseColumns = [ { key: 'operations', title: '操作', - width: 120, + width: 200, fixed: 'right', operations: (row: any) => [ { @@ -58,10 +59,23 @@ const columns: TableBaseColumns = [ onClick: () => { dialog.create({ title: '用户钱包', + showIcon: false, style: { width: '1000px' }, content: () => h(Wallet, { userId: row.userId }) }); } + }, + { + contentText: '收货地址', + size: 'small', + onClick: () => { + dialog.create({ + title: '收货地址', + showIcon: false, + style: { width: '1000px' }, + content: () => h(Address, { userId: row.userId }) + }); + } } ] }