实人认证
This commit is contained in:
@ -2,7 +2,7 @@ import { BaseEventOrig, Button, ButtonProps, Image, InputProps } from '@tarojs/c
|
||||
import Taro, { UploadTask } from '@tarojs/taro';
|
||||
|
||||
import { Dialog } from '@taroify/core';
|
||||
import { useCallback, useEffect, useRef, useState } from 'react';
|
||||
import { useCallback, useEffect, useState } from 'react';
|
||||
|
||||
import BlFormInput from '@/components/bl-form-input';
|
||||
import BlFormItem from '@/components/bl-form-item';
|
||||
@ -15,6 +15,8 @@ import { CollectEventName, ReportEventId } from '@/constants/event';
|
||||
import { ProductType } from '@/constants/product';
|
||||
import useCachedJobId from '@/hooks/use-cached-job';
|
||||
import useUserInfo from '@/hooks/use-user-info';
|
||||
import store from '@/store';
|
||||
import { clearCachedJobId } from '@/store/actions';
|
||||
import { ICertificationRequest } from '@/types/company';
|
||||
import { isValidIdCard, isValidPhone, logWithPrefix } from '@/utils/common';
|
||||
import { postCertification, getPhone } from '@/utils/company';
|
||||
@ -28,8 +30,7 @@ import { dispatchUpdateUser, requestUserInfo } from '@/utils/user';
|
||||
import { uploadVideo } from '@/utils/video';
|
||||
|
||||
import './index.less';
|
||||
import { clearCachedJobId } from '@/store/actions';
|
||||
import store from '@/store';
|
||||
|
||||
|
||||
const PREFIX = 'page-certification';
|
||||
const log = logWithPrefix(PREFIX);
|
||||
@ -110,7 +111,6 @@ export default function Certification() {
|
||||
const [open, setOpen] = useState(false);
|
||||
const [showBuy, setShowBuy] = useState(false);
|
||||
const cachedJobId = useCachedJobId();
|
||||
const createdJobIdRef = useRef('');
|
||||
|
||||
const handleClickIdCardLeft = useCallback(async () => {
|
||||
reportEvent(ReportEventId.CLICK_UPLOAD_ID_CARD, { type: 'left' });
|
||||
|
||||
Reference in New Issue
Block a user