feat(withdraw): 添加实名认证验证功能

- 在提现页面集成实名认证状态检查
- 添加 fetchVerifyStatus 函数用于获取认证状态
- 实现认证状态包括未知、已认证、未认证、审核中、已驳回
- 在提交提现前验证用户是否已完成实名认证
- 添加去认证按钮跳转到认证页面
- 优化订单详情和订单列表中的取消订单逻辑
- 修复用户认证页面的表单验证逻辑
- 添加真实姓名和身份证号输入字段到企业认证表单
This commit is contained in:
2026-02-07 15:35:23 +08:00
parent 5581493772
commit 6c83f6c082
4 changed files with 153 additions and 15 deletions

View File

@@ -20,11 +20,13 @@ const OrderDetail = () => {
// 处理支付超时
const handlePaymentExpired = async () => {
if (!order) return;
if (!order.orderId) return;
try {
// 自动取消过期订单
await updateShopOrder({
...order,
// 只传最小字段,避免误取消/误走售后流程
orderId: order.orderId,
orderStatus: 2 // 已取消
});