diff --git a/app/(enterprise)/job-management.tsx b/app/(enterprise)/job-management.tsx index 4327d81..273a229 100644 --- a/app/(enterprise)/job-management.tsx +++ b/app/(enterprise)/job-management.tsx @@ -3,6 +3,7 @@ import { useRouter } from 'expo-router'; import { useMemo, useState } from 'react'; import { ActivityIndicator, + Alert, Pressable, ScrollView, StyleSheet, @@ -117,11 +118,11 @@ function SearchFilterBar() { placeholderTextColor={colors.textHint} /> - {}}> + Alert.alert('筛选', '岗位筛选功能开发中,敬请期待')}> 筛选 - {}}> + Alert.alert('排序', '岗位排序功能开发中,敬请期待')}> 最新发布 @@ -178,15 +179,15 @@ function JobCard({ job }: { job: JobManagementJob }) { - {}}> + Alert.alert('提示', '功能开发中,敬请期待')}> 编辑 - {}}> + Alert.alert('提示', '功能开发中,敬请期待')}> 刷新 - {}}> + Alert.alert('提示', '功能开发中,敬请期待')}> 下架 diff --git a/app/(tabs)/profile.tsx b/app/(tabs)/profile.tsx index 2553bb1..9ba759f 100644 --- a/app/(tabs)/profile.tsx +++ b/app/(tabs)/profile.tsx @@ -3,6 +3,7 @@ import { LinearGradient } from 'expo-linear-gradient'; import { useRouter } from 'expo-router'; import { ActivityIndicator, + Alert, Pressable, ScrollView, StyleSheet, @@ -271,7 +272,7 @@ export default function ProfileScreen() { 八大维度评分 - {}} hitSlop={6}> + Alert.alert('评分申诉', '评分申诉功能开发中,敬请期待')} hitSlop={6}> 评分申诉 @@ -285,7 +286,7 @@ export default function ProfileScreen() { 求职偏好 - {}} hitSlop={6}> + router.push('/job-preference')} hitSlop={6}> 编辑 @@ -298,7 +299,7 @@ export default function ProfileScreen() { {}} + onPress={() => router.push('/job-preference')} > {label} {isStatus ? ( diff --git a/app/chat/[id].tsx b/app/chat/[id].tsx index 4d13449..9907a33 100644 --- a/app/chat/[id].tsx +++ b/app/chat/[id].tsx @@ -3,6 +3,7 @@ import { useLocalSearchParams, useRouter } from 'expo-router'; import { useCallback, useMemo, useRef, useState } from 'react'; import { ActivityIndicator, + Alert, KeyboardAvoidingView, Platform, Pressable, @@ -148,7 +149,7 @@ function InterviewCard({ card }: { card: ChatCard }) { ))} - {}}> + Alert.alert('提示', '功能开发中,敬请期待')}> {card.actionText} @@ -166,7 +167,7 @@ function SalaryCard({ card }: { card: ChatCard }) { {card.subtitle && ( {card.subtitle} )} - {}}> + Alert.alert('提示', '功能开发中,敬请期待')}> {card.actionText} @@ -266,13 +267,13 @@ function InputBar({ return ( - {}}> + Alert.alert('提示', '功能开发中,敬请期待')}> - {}}> + Alert.alert('提示', '功能开发中,敬请期待')}> - {}}> + Alert.alert('提示', '功能开发中,敬请期待')}> @@ -288,7 +289,7 @@ function InputBar({ maxLength={500} editable={!sending} /> - {}}> + Alert.alert('提示', '功能开发中,敬请期待')}> diff --git a/app/jobs/[id].tsx b/app/jobs/[id].tsx index 16ead8f..1400a07 100644 --- a/app/jobs/[id].tsx +++ b/app/jobs/[id].tsx @@ -3,6 +3,7 @@ import { useLocalSearchParams, useRouter } from 'expo-router'; import { useState } from 'react'; import { ActivityIndicator, + Alert, Pressable, ScrollView, StyleSheet, @@ -112,7 +113,7 @@ function Header({ onBack }: { onBack: () => void }) { 岗位详情 - {}} hitSlop={8}> + Alert.alert('分享', '分享功能开发中,敬请期待')} hitSlop={8}> @@ -216,7 +217,7 @@ export default function JobDetailScreen() { {/* 2. 岗位综合评分 */} - {}} /> + Alert.alert('评分说明', '评分规则说明开发中,敬请期待')} /> @@ -231,14 +232,14 @@ export default function JobDetailScreen() { {overallScore.rank} - {}} hitSlop={6}> + router.push('/jobs/compare')} hitSlop={6}> 加入对比 {/* 3. 真实薪资区间 */} - {}} /> + Alert.alert('薪资详情', '完整薪资数据开发中,敬请期待')} /> {salaryData.ranges.map((range, index) => ( - {}}> + Alert.alert('发布评论', '评论发布功能开发中,敬请期待')}> 发布 diff --git a/app/login.tsx b/app/login.tsx index 966e12d..f424b33 100644 --- a/app/login.tsx +++ b/app/login.tsx @@ -3,6 +3,7 @@ import { LinearGradient } from 'expo-linear-gradient'; import { useRouter } from 'expo-router'; import { useEffect, useRef, useState } from 'react'; import { + Alert, Pressable, ScrollView, StyleSheet, @@ -147,10 +148,10 @@ export default function LoginScreen() { 其他登录方式 - {}} hitSlop={8}> + Alert.alert('提示', '该功能开发中,敬请期待')} hitSlop={8}> - {}} hitSlop={8}> + Alert.alert('提示', '该功能开发中,敬请期待')} hitSlop={8}> diff --git a/app/personal-data-export.tsx b/app/personal-data-export.tsx index ea839f5..898af8b 100644 --- a/app/personal-data-export.tsx +++ b/app/personal-data-export.tsx @@ -2,6 +2,7 @@ import { Ionicons } from '@expo/vector-icons'; import { useRouter } from 'expo-router'; import { useMemo, useState } from 'react'; import { + Alert, ActivityIndicator, Pressable, ScrollView, @@ -346,11 +347,11 @@ export default function PersonalDataExportScreen() { const isLast = index === exportData.recentExports.length - 1; return ( - {}} /> + Alert.alert('下载', '导出文件下载功能开发中,敬请期待')} /> ); })} - {}}> + Alert.alert('提示', '历史导出功能开发中,敬请期待')}> 查看更多历史导出 diff --git a/app/settings.tsx b/app/settings.tsx index ba5cd81..aa84553 100644 --- a/app/settings.tsx +++ b/app/settings.tsx @@ -1,8 +1,9 @@ import { Ionicons } from '@expo/vector-icons'; import { useRouter } from 'expo-router'; -import { Pressable, ScrollView, StyleSheet, Text, View } from 'react-native'; +import { Alert, Pressable, ScrollView, StyleSheet, Text, View } from 'react-native'; import { SafeAreaView } from 'react-native-safe-area-context'; import { colors } from '../src/theme'; +import { useAuth } from '../src/context/AuthContext'; /* ===================== 设置项结构 ===================== */ @@ -90,6 +91,21 @@ function Header({ onBack }: { onBack: () => void }) { export default function SettingsScreen() { const router = useRouter(); + const { logout } = useAuth(); + + const handleLogout = () => { + Alert.alert('确认退出登录', '退出后需要重新登录', [ + { text: '取消', style: 'cancel' }, + { + text: '退出', + style: 'destructive', + onPress: () => { + logout(); + router.replace('/login'); + }, + }, + ]); + }; const handlePress = (item: SettingsItem) => { if (item.route) { @@ -134,7 +150,7 @@ export default function SettingsScreen() { ))} {/* 退出登录 */} - {}}> + 退出登录 diff --git a/app/settings/account-cancel.tsx b/app/settings/account-cancel.tsx index 818894e..9b731fc 100644 --- a/app/settings/account-cancel.tsx +++ b/app/settings/account-cancel.tsx @@ -2,6 +2,7 @@ import { useState } from 'react'; import { Ionicons } from '@expo/vector-icons'; import { useRouter } from 'expo-router'; import { + Alert, ActivityIndicator, Pressable, ScrollView, @@ -128,7 +129,7 @@ export default function AccountCancelScreen() { {item.label} {item.actionText ? ( - {}}> + Alert.alert('提示', '该待办处理功能开发中,敬请期待')}> {item.actionText} ) : null} diff --git a/app/settings/privacy.tsx b/app/settings/privacy.tsx index d626cad..6c5e7a6 100644 --- a/app/settings/privacy.tsx +++ b/app/settings/privacy.tsx @@ -1,6 +1,6 @@ import { Ionicons } from '@expo/vector-icons'; import { useRouter } from 'expo-router'; -import { Pressable, ScrollView, StyleSheet, Switch, Text, View } from 'react-native'; +import { Alert, Pressable, ScrollView, StyleSheet, Switch, Text, View } from 'react-native'; import { SafeAreaView } from 'react-native-safe-area-context'; import { usePrivacyCenter } from '../../src/hooks'; import { ErrorState, LoadingState } from '../../src/components/StateView'; @@ -41,7 +41,7 @@ function PrivacyLevelCard({ level }: { level: PrivacyLevelInfo }) { {level.description} - {}}> + Alert.alert('隐私报告', '隐私报告功能开发中,敬请期待')}> 查看隐私报告 diff --git a/app/tools/salary-calculator.tsx b/app/tools/salary-calculator.tsx index f17b25a..bc884fe 100644 --- a/app/tools/salary-calculator.tsx +++ b/app/tools/salary-calculator.tsx @@ -3,6 +3,7 @@ import { LinearGradient } from 'expo-linear-gradient'; import { useRouter } from 'expo-router'; import { useState } from 'react'; import { + Alert, Pressable, ScrollView, StyleSheet, @@ -232,7 +233,7 @@ export default function SalaryCalculatorScreen() { return ( -
router.back()} onHistory={() => {}} /> +
router.back()} onHistory={() => Alert.alert('历史记录', '计算历史功能开发中,敬请期待')} /> {/* 输入卡片 */} @@ -243,7 +244,7 @@ export default function SalaryCalculatorScreen() { suffix="元" onChange={(v) => update('monthlyGross', Math.max(0, v))} /> - {}} /> + Alert.alert('选择城市', '城市选择功能开发中,敬请期待')} /> - {}}> + Alert.alert('保存计算记录', '保存功能开发中,敬请期待')}> 保存计算记录