import { useState } from 'react';
import {
AlertCircle,
Building2,
Check,
ChevronRight,
CreditCard,
Landmark,
ShieldCheck,
Upload,
UserCheck,
} from 'lucide-react';
import { Button, Input, Select, Textarea } from '@/components/ui';
type AuthStep = 'overview' | 'profile' | 'method' | 'recharge' | 'face' | 'faceScan' | 'success' | 'failed';
type AuthMethod = 'face' | 'recharge';
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({ onCertified }: { onCertified: () => void }) {
return (
);
}
export function ClientEnterpriseAuthPage() {
const [step, setStep] = useState('overview');
const [method, setMethod] = useState('face');
const currentStep = step === 'profile' ? 1 : step === 'method' ? 2 : step === 'recharge' || step === 'face' || step === 'faceScan' ? 3 : step === 'success' || step === 'failed' ? 4 : 1;
if (step === 'overview') {
return (
setStep('success')} />
您还未进行企业认证
- 企业名称:
- 未知
- 认证时间:
- 未知
- 统一社会信用代码:
- 未知
- 通讯地址:
- 未知
- 法定代表人:
- 未知
);
}
return (
企业认证
{step === 'profile' ? (
) : null}
{step === 'method' ? (
) : null}
{step === 'recharge' ? (
认证方式聆界平台充值认证
请使用 企业银行对公账户 向聆界平台账户打款 (小于1元) 至迅联天下平台账户,认证成功后,验证金将自动打入企业的平台账户中。
付款方信息
付款企业XXXXXXX公司
请使用与企业营业执照名称一致的对公账户进行转账,以便系统进行识别,若填报错误企业信息,转账将无效暨审核不通过
为避免充值失败的情况,请在点击 确认并充值 后,根据页面提示的金额进行转账,验证、充值金额有效期:安全充值有效期为7个工作日,验证次数为2次。
) : null}
{step === 'face' ? (
) : null}
{step === 'faceScan' ? (
认证方式企业法人人脸识别认证
企业法人基本信息
- 企业法人姓名
- 张三
- 企业法人身份证号
- 162xxxxxxxxxxxxx
扫码认证
为了验证您的身份,请使用支付宝扫码进行人脸识别,剩余有效时间:59分57秒
二维码
完成扫描操作后,实名将立即成功
) : null}
{step === 'success' ? (
恭喜您,认证成功!
- 企业名称:
- {companyInfo.name}
- 统一社会信用代码:
- {companyInfo.code}
- 法定代表人:
- {companyInfo.legalPerson}
- 认证时间:
- {companyInfo.certifiedAt}
- 通讯地址:
- {companyInfo.address}
) : null}
{step === 'failed' ? (
!
很遗憾,认证失败!
相同方式认证时限倒计时:
2天23小时59分
) : null}
);
}