import * as React from 'react'; import { StackScreenProps } from '@react-navigation/stack'; import { StackActions } from '@react-navigation/native'; import { RefreshControl } from 'react-native'; import { Div, Button, Image, Text, Avatar } from 'react-native-magnus'; import { ScrollView } from 'react-native-gesture-handler'; import { useTranslation } from 'react-i18next'; import { useRequest } from 'ahooks'; import { connect } from '../utils/SystemUtils'; import { addAsyncStorage, removeAsyncStorage, } from '../utils/AsyncStorageUtils'; const img1 = require('../assets/images/autoimg1.png'); const img2 = require('../assets/images/autoimg2.png'); export default function AuditResultScreen({ navigation }: StackScreenProps) { const { t } = useTranslation(); const { data, refresh, loading } = useRequest('/rider/my'); const { status, jobNumber } = data || {}; React.useEffect(() => { if (status === 'PENDING') { addAsyncStorage('riderIsApply', 'true'); } }, [status]); return (
} > {status === 'PENDING' && (
{t('nin-de-shen-qing-yi-ti-jiao-cheng-gong')} {t('qing-nai-xin-deng-dai')}...
)} {status === 'DENY' && ( <>
{t('failresult')} {t('failresult2')}
)} {status === 'PASS' && ( <>
{t('gong-xi-nin-de-shen-qing-yi-tong-guo')} {t('nin-de-gong-hao-wei')}:{jobNumber}
)}
); }