import { useState } from 'react'; import { AlertCircle, Check, ChevronRight, Landmark, ShieldCheck, Upload, UserCheck, } from 'lucide-react'; import { Button, Input, Select, Textarea } from '@/components/ui'; type AuthStep = 'overview' | 'profile' | 'method' | 'recharge' | 'face' | 'faceScan' | 'pending' | 'success' | 'failed'; type AuthMethod = 'face' | 'recharge'; type CertificationStatus = 'uncertified' | 'pending' | 'approved' | 'rejected'; const companyInfo = { name: '上海闪联九玖信息通信技术有限公司', code: 'XXXXXXXXXX', legalPerson: '张三', certifiedAt: '2022年07月09日 13:12:01', address: '上海XXX区XX路XX号', }; function UploadPanel() { return (
点击上传
); } function EnterpriseStepper({ current }: { current: number }) { const steps = ['填写资料', '选择认证方式', '校验认证信息', '认证完成']; return (
{steps.map((label, index) => { const step = index + 1; const complete = step < current; const active = step === current; return (
{complete ? : step} {label} {index < steps.length - 1 ? : null}
); })}
); } function AuthHeader({ status }: { status: CertificationStatus }) { const statusText: Record = { uncertified: '未认证', pending: '审核中', approved: '已通过', rejected: '未通过', }; return (

企业认证

{statusText[status]}
); } export function ClientEnterpriseAuthPage() { const [step, setStep] = useState('overview'); const [method, setMethod] = useState('face'); const [status, setStatus] = useState('uncertified'); const currentStep = step === 'profile' ? 1 : step === 'method' ? 2 : step === 'recharge' || step === 'face' || step === 'faceScan' ? 3 : step === 'pending' || step === 'success' || step === 'failed' ? 4 : 1; if (step === 'overview') { const overviewCopy = status === 'approved' ? '企业认证已审核通过,可正常使用发送、签名报备等能力。' : status === 'pending' ? '企业认证资料已提交,平台运营将在 1 个工作日内完成审核。' : status === 'rejected' ? '企业认证未通过,请根据驳回原因修改资料后重新提交。' : '您还未进行企业认证'; return (
{overviewCopy} {status === 'approved' ? null : ( )}
企业名称:
{status === 'approved' ? companyInfo.name : '待认证'}
认证时间:
{status === 'approved' ? companyInfo.certifiedAt : '待审核完成'}
统一社会信用代码:
{status === 'approved' ? companyInfo.code : '待认证'}
通讯地址:
{status === 'approved' ? companyInfo.address : '待认证'}
法定代表人:
{status === 'approved' ? companyInfo.legalPerson : '待认证'}
); } return (

企业认证

{step === 'profile' ? (

请上传电子版营业执照,JPG或PNG格式,大小不超过5M

* 通讯地址