Browse Source

fix(jobs): 为 Offer 对比与竞争力排名页空 onPress 接入 Alert 兜底

- offer-compare.tsx:添加Offer / 导出对比报告 / 接受Offer / AI建议按钮 4 处接 Alert
- rank.tsx:查看我的详细分析 / 提升建议 action 2 处接 Alert
master
doublex001 2 months ago
parent
commit
7d5f2a0628
  1. 20
      app/jobs/offer-compare.tsx
  2. 5
      app/jobs/rank.tsx

20
app/jobs/offer-compare.tsx

@ -3,6 +3,7 @@ import { LinearGradient } from 'expo-linear-gradient';
import { useRouter } from 'expo-router'; import { useRouter } from 'expo-router';
import { import {
ActivityIndicator, ActivityIndicator,
Alert,
Pressable, Pressable,
ScrollView, ScrollView,
StyleSheet, StyleSheet,
@ -212,7 +213,10 @@ function AISuggestionCard({ summary, detail, reportAction }: { summary: string;
</View> </View>
<Text style={styles.aiSummary}>{summary}</Text> <Text style={styles.aiSummary}>{summary}</Text>
<Text style={styles.aiDetail}>{detail}</Text> <Text style={styles.aiDetail}>{detail}</Text>
<Pressable style={styles.aiReportBtn} onPress={() => {}}> <Pressable
style={styles.aiReportBtn}
onPress={() => Alert.alert('AI智能建议', '完整建议报告功能开发中,敬请期待')}
>
<Text style={styles.aiReportText}>{reportAction}</Text> <Text style={styles.aiReportText}>{reportAction}</Text>
<Ionicons name="chevron-forward" size={14} color={colors.white} /> <Ionicons name="chevron-forward" size={14} color={colors.white} />
</Pressable> </Pressable>
@ -270,7 +274,9 @@ export default function OfferCompareScreen() {
{offers.map((offer) => ( {offers.map((offer) => (
<OfferCard key={offer.id} offer={offer} selected={offer.selected} /> <OfferCard key={offer.id} offer={offer} selected={offer.selected} />
))} ))}
<AddOfferCard onPress={() => {}} /> <AddOfferCard
onPress={() => Alert.alert('添加Offer', 'Offer添加功能开发中,敬请期待')}
/>
</ScrollView> </ScrollView>
{/* 综合评分对比 */} {/* 综合评分对比 */}
@ -296,10 +302,16 @@ export default function OfferCompareScreen() {
{/* 底部操作栏 */} {/* 底部操作栏 */}
<View style={styles.actionBar}> <View style={styles.actionBar}>
<Pressable style={styles.exportBtn} onPress={() => {}}> <Pressable
style={styles.exportBtn}
onPress={() => Alert.alert('导出对比报告', '报告导出功能开发中,敬请期待')}
>
<Text style={styles.exportText}>{actions?.exportLabel ?? '导出对比报告'}</Text> <Text style={styles.exportText}>{actions?.exportLabel ?? '导出对比报告'}</Text>
</Pressable> </Pressable>
<Pressable style={styles.acceptBtn} onPress={() => {}}> <Pressable
style={styles.acceptBtn}
onPress={() => Alert.alert('接受Offer', 'Offer确认功能开发中,敬请期待')}
>
<Text style={styles.acceptText}>{actions?.acceptLabel ?? '接受Offer'}</Text> <Text style={styles.acceptText}>{actions?.acceptLabel ?? '接受Offer'}</Text>
</Pressable> </Pressable>
</View> </View>

5
app/jobs/rank.tsx

@ -2,6 +2,7 @@ import { Ionicons } from '@expo/vector-icons';
import { useLocalSearchParams, useRouter } from 'expo-router'; import { useLocalSearchParams, useRouter } from 'expo-router';
import { import {
ActivityIndicator, ActivityIndicator,
Alert,
Pressable, Pressable,
ScrollView, ScrollView,
StyleSheet, StyleSheet,
@ -52,7 +53,7 @@ function RankSummary({ rank }: { rank: RankData }) {
<Pressable <Pressable
style={styles.detailLink} style={styles.detailLink}
onPress={() => {}} onPress={() => Alert.alert('详细分析', '详细竞争力分析报告功能开发中,敬请期待')}
hitSlop={6} hitSlop={6}
> >
<Text style={styles.detailLinkText}>查看我的详细分析</Text> <Text style={styles.detailLinkText}>查看我的详细分析</Text>
@ -349,7 +350,7 @@ export default function RankScreen() {
title={tip.title} title={tip.title}
description={tip.description} description={tip.description}
type="action" type="action"
onAction={() => {}} onAction={() => Alert.alert('提升建议', '该提升项功能开发中,敬请期待')}
/> />
) : ( ) : (
<TipItem <TipItem

Loading…
Cancel
Save