diff --git a/apps/web/src/components/layout/Sidebar.tsx b/apps/web/src/components/layout/Sidebar.tsx index b421ddcd1..7501650b9 100644 --- a/apps/web/src/components/layout/Sidebar.tsx +++ b/apps/web/src/components/layout/Sidebar.tsx @@ -10,9 +10,6 @@ import { CrownOutlined, UserOutlined, DashboardOutlined, - BarChartOutlined, - MonitorOutlined, - FileTextOutlined, } from '@ant-design/icons'; import { useNavigate, useLocation } from 'react-router-dom'; import type { MenuProps } from 'antd'; @@ -55,39 +52,8 @@ const Sidebar: React.FC = ({ collapsed }) => { { key: '/admin', icon: , - label: 'Admin', - children: [ - { - key: '/admin', - icon: , - label: 'Dashboard', - onClick: () => navigate('/admin'), - }, - { - key: '/admin/users', - icon: , - label: '用户管理', - onClick: () => navigate('/admin/users'), - }, - { - key: '/admin/analytics', - icon: , - label: '数据分析', - onClick: () => navigate('/admin/analytics'), - }, - { - key: '/admin/monitor', - icon: , - label: '系统监控', - onClick: () => navigate('/admin/monitor'), - }, - { - key: '/admin/logs', - icon: , - label: '日志查看', - onClick: () => navigate('/admin/logs'), - }, - ], + label: 'Admin(暂未开放)', + disabled: true, }, { key: '/profile', diff --git a/apps/web/src/pages/subscription/Billing.tsx b/apps/web/src/pages/subscription/Billing.tsx index 51abe3409..411e712df 100644 --- a/apps/web/src/pages/subscription/Billing.tsx +++ b/apps/web/src/pages/subscription/Billing.tsx @@ -1,100 +1,22 @@ -/** - * 账单管理页面 - */ import React from 'react'; -import { Card, Table, Button, Tag, Space } from 'antd'; -import { DownloadOutlined, FileTextOutlined } from '@ant-design/icons'; - -interface Invoice { - id: string; - date: string; - amount: number; - status: 'paid' | 'pending' | 'overdue'; - plan: string; -} +import { Button, Card, Result } from 'antd'; +import { useNavigate } from 'react-router-dom'; const Billing: React.FC = () => { - // 模拟数据 - const invoices: Invoice[] = [ - { - id: 'INV-2024-001', - date: '2024-06-01', - amount: 99, - status: 'paid', - plan: 'Pro', - }, - { - id: 'INV-2024-002', - date: '2024-05-01', - amount: 99, - status: 'paid', - plan: 'Pro', - }, - ]; - - const getStatusTag = (status: string) => { - const config: Record = { - paid: { color: 'success', text: '已支付' }, - pending: { color: 'processing', text: '待支付' }, - overdue: { color: 'error', text: '逾期' }, - }; - const item = config[status] || config.pending; - return {item.text}; - }; - - const columns = [ - { - title: '账单编号', - dataIndex: 'id', - key: 'id', - }, - { - title: '日期', - dataIndex: 'date', - key: 'date', - }, - { - title: '套餐', - dataIndex: 'plan', - key: 'plan', - }, - { - title: '金额', - dataIndex: 'amount', - key: 'amount', - render: (amount: number) => `¥${amount}`, - }, - { - title: '状态', - dataIndex: 'status', - key: 'status', - render: (status: string) => getStatusTag(status), - }, - { - title: '操作', - key: 'action', - render: (_: any) => ( - - - - - ), - }, - ]; + const navigate = useNavigate(); return (
-

账单管理

- navigate('/subscription')}> + 返回订阅说明 + , + ]} />