feat: 添加地址管理功能,整合地址组件至用户界面

This commit is contained in:
2026-01-19 18:31:45 +07:00
parent a2ef52be99
commit 1f4acce75a
2 changed files with 70 additions and 1 deletions

View File

@@ -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 })
});
}
}
]
}