import { Descriptions, Card, Row, Col, Button, Space, Typography, Flex, Tag, Divider, Steps, Timeline, Table, Avatar, } from 'antd'; import { ShoppingOutlined, PrinterOutlined, DownloadOutlined, CheckCircleOutlined, ClockCircleOutlined, UserOutlined, } from '@ant-design/icons'; const { Title, Text } = Typography; const Layout = () => { // 订单商品数据 const productColumns = [ { title: '商品名称', dataIndex: 'name', key: 'name', }, { title: '商品编号', dataIndex: 'code', key: 'code', }, { title: '数量', dataIndex: 'quantity', key: 'quantity', }, { title: '单价', dataIndex: 'price', key: 'price', render: (price: number) => `¥${price.toFixed(2)}`, }, { title: '小计', dataIndex: 'total', key: 'total', render: (total: number) => `¥${total.toFixed(2)}`, }, ]; const productData = [ { key: '1', name: 'iPhone 15 Pro Max', code: 'IP15PM-256-BLK', quantity: 2, price: 9999, total: 19998, }, { key: '2', name: 'AirPods Pro 2', code: 'APP2-WHT', quantity: 1, price: 1899, total: 1899, }, { key: '3', name: 'MacBook Pro 16"', code: 'MBP16-M3-SLV', quantity: 1, price: 25999, total: 25999, }, ]; // 物流信息 const logisticsData = [ { time: '2026-01-01 15:30:00', status: '已签收', description: '您的订单已由本人签收,感谢您的购买', }, { time: '2026-01-01 09:20:00', status: '派送中', description: '快递员正在为您派送 [北京市朝阳区] 快递员:李师傅 13800138000', }, { time: '2025-12-31 18:45:00', status: '运输中', description: '您的包裹已到达 [北京分拨中心]', }, { time: '2025-12-30 14:20:00', status: '已发货', description: '您的订单已从 [上海仓库] 发出,物流单号: SF1234567890', }, { time: '2025-12-30 10:00:00', status: '已支付', description: '订单支付成功,等待商家发货', }, ]; return (
{/* 页面头部 */}
<ShoppingOutlined style={{ marginRight: 8 }} /> 订单详情 订单号: OD2026010100001 · 创建时间: 2025-12-30 09:45:32
{/* 订单状态 */} , }, { title: '支付完成', description: '2025-12-30 10:00', icon: , }, { title: '商家发货', description: '2025-12-30 14:20', icon: , }, { title: '运输中', description: '2025-12-31 18:45', icon: , }, { title: '已签收', description: '2026-01-01 15:30', icon: , }, ]} /> {/* 主内容区域 */} {/* 订单基本信息 */} OD2026010100001 }> 已完成 2025-12-30 09:45:32 2025-12-30 10:00:15 2025-12-30 14:20:00 2026-01-01 15:30:00 微信支付 顺丰速运 电子发票 北京科技有限公司 {/* 收货信息 */} 张三 138****8888 北京市朝阳区建国路88号SOHO现代城A座2106室 {/* 商品信息 */} ( 合计 ¥47,896.00 运费 ¥0.00 优惠 -¥500.00 实付金额 ¥47,396.00 )} /> {/* 侧边栏信息 */} {/* 买家信息 */} } />
张三
会员等级: VIP金卡
U202512300001 138****8888 zhangsan@example.com 156 笔 ¥358,960
{/* 物流信息 */} 物流公司: 顺丰速运
快递单号: SF1234567890 ({ color: item.status === '已签收' ? 'green' : 'blue', children: (
{item.status}
{item.description}
{item.time}
), }))} />
{/* 备注信息 */} 买家留言: 请在工作日配送,周末家里没人。如有问题请提前电话联系。 商家备注: 已按照买家要求在工作日配送,客户体验良好。 ); }; export default Layout;