import { SectionHeader } from '@/components/ui/section-header'; import { Ionicons } from '@expo/vector-icons'; import React, { useCallback, useState } from 'react'; import { Pressable, ScrollView, Text, View } from 'react-native'; import { SafeAreaView } from 'react-native-safe-area-context'; import { UploadComponent } from '../credit/upload'; type AnalysisMode = 'fast' | 'deep'; type AnalysisRecord = { id: string; customerName: string; time: string; status: '解析中' | '已完成' | '解析失败'; progress?: number; score?: string; }; const ANALYSIS_RECORDS: AnalysisRecord[] = [ { id: '1', customerName: '张德发', time: '今天 10:42', status: '已完成', score: 'B+' }, { id: '2', customerName: '钱进', time: '今天 10:05', status: '解析中', progress: 72 }, { id: '3', customerName: '李美华', time: '昨天 15:20', status: '已完成', score: 'A' }, { id: '4', customerName: '赵丽', time: '3天前', status: '解析失败' }, ]; export default function AnalyticsScreen() { const [analysisMode, setAnalysisMode] = useState('fast'); const onUploadCredit = useCallback(() => { }, []); return ( 征信分析 先选择客户,再上传征信文件,系统会自动生成评分和建议动作 选择客户 ({ opacity: pressed ? 0.9 : 1, })} > 张德发(138****8888) {ANALYSIS_RECORDS.map((record) => ( ({ opacity: pressed ? 0.93 : 1, })} > {record.customerName} {record.time} {record.status === '解析中' && record.progress != null ? ( 正在解析征信数据... {record.progress}% ) : record.status === '已完成' ? ( 征信评分 {record.score} ) : ( 解析失败,请重新上传文件后重试 )} ))} ); }