feat(dealer): 添加提现前实名认证验证功能
- 在提现流程中增加实名认证状态检查 - 未认证用户将被重定向到认证页面 - 认证审核中的用户将收到提示信息 - 集成用户认证状态查询接口 - 添加认证状态判断逻辑和错误处理
This commit is contained in:
@@ -22,6 +22,8 @@ import type {ShopDealerWithdraw} from '@/api/shop/shopDealerWithdraw/model'
|
||||
import {ShopDealerBank} from "@/api/shop/shopDealerBank/model";
|
||||
import {listShopDealerBank} from "@/api/shop/shopDealerBank";
|
||||
import {listCmsWebsiteField} from "@/api/cms/cmsWebsiteField";
|
||||
import {myUserVerify} from "@/api/system/userVerify";
|
||||
import navTo from "@/utils/common";
|
||||
|
||||
interface WithdrawRecordWithDetails extends ShopDealerWithdraw {
|
||||
accountDisplay?: string
|
||||
@@ -241,6 +243,19 @@ const DealerWithdraw: React.FC = () => {
|
||||
return
|
||||
}
|
||||
|
||||
// 验证实名认证
|
||||
const isChecked = await myUserVerify({})
|
||||
if(!isChecked){
|
||||
console.log(isChecked,'isCheckedisCheckedisCheckedisChecked');
|
||||
return navTo(`/user/userVerify/index`,true)
|
||||
}
|
||||
if(isChecked.status === 0){
|
||||
Taro.showToast({
|
||||
title: '实名认证还在审核中...',
|
||||
icon: 'none'
|
||||
})
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
setSubmitting(true)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user