From 5a97de37ce3c3387bc12721f32efaa6807ab0e25 Mon Sep 17 00:00:00 2001 From: xianyi Date: Fri, 16 Jan 2026 18:03:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=9A=90=E7=A7=81=E5=8D=8F?= =?UTF-8?q?=E8=AE=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/privacy.tsx | 115 +++++++++++++++++++++++++++++++++++++++++++ app/profile.tsx | 39 ++++++++++++++- i18n/locales/en.json | 22 ++++++++- i18n/locales/zh.json | 22 ++++++++- 4 files changed, 193 insertions(+), 5 deletions(-) create mode 100644 app/privacy.tsx diff --git a/app/privacy.tsx b/app/privacy.tsx new file mode 100644 index 0000000..989b1f3 --- /dev/null +++ b/app/privacy.tsx @@ -0,0 +1,115 @@ +import { Stack } from "expo-router"; +import React from "react"; +import { useTranslation } from "react-i18next"; +import { ScrollView, StyleSheet, View } from "react-native"; + +import { ThemedText } from "@/components/themed-text"; +import { useTheme } from "@/context/ThemeContext"; + +export default function PrivacyScreen() { + const { theme } = useTheme(); + const { t } = useTranslation(); + const isDark = theme === "dark"; + + return ( + <> + + + + {t("privacy.page_title")} + + {t("privacy.section1_title")} + + {t("privacy.section1_text")} + + + {t("privacy.section2_title")} + + {t("privacy.section2_text")} + + + {t("privacy.section3_title")} + + {t("privacy.section3_text")} + + + {t("privacy.section4_title")} + + {t("privacy.section4_text")} + + + {t("privacy.section5_title")} + + {t("privacy.section5_text")} + + + {t("privacy.section6_title")} + + {t("privacy.section6_text")} + + + + {t("privacy.last_updated")} + + + + + ); +} + +const styles = StyleSheet.create({ + container: { + flex: 1, + }, + content: { + margin: 16, + padding: 20, + borderRadius: 12, // 稍微增加圆角,更现代 + marginBottom: 40, // 底部留白 + }, + title: { + fontSize: 24, + fontWeight: "bold", + marginBottom: 8, + }, + sectionTitle: { + fontSize: 18, + fontWeight: "700", + marginTop: 24, + marginBottom: 10, + }, + text: { + fontSize: 15, + lineHeight: 22, + opacity: 0.9, + }, + updateText: { + fontSize: 13, + opacity: 0.5, + marginTop: 32, + textAlign: "center", + }, +}); \ No newline at end of file diff --git a/app/profile.tsx b/app/profile.tsx index d38c306..ac304fd 100644 --- a/app/profile.tsx +++ b/app/profile.tsx @@ -1,7 +1,7 @@ import * as AppleAuthentication from "expo-apple-authentication"; import Constants from "expo-constants"; import { Image } from "expo-image"; -import { Stack } from "expo-router"; +import { Stack, useRouter } from "expo-router"; import React from "react"; import { useTranslation } from "react-i18next"; import { @@ -25,6 +25,7 @@ export default function ProfileScreen() { const { theme, toggleTheme, setTheme, isSystemTheme, useSystemTheme } = useTheme(); const { t, i18n } = useTranslation(); + const router = useRouter(); const isDark = theme === "dark"; const [appleAvailable, setAppleAvailable] = React.useState(false); const [user, setUser] = React.useState(null); @@ -277,6 +278,36 @@ export default function ProfileScreen() { + + + router.push("/privacy" as any)} + > + + + {t("profile.privacy")} + + + + {/* 登录 @@ -407,6 +438,12 @@ const styles = StyleSheet.create({ justifyContent: "space-between", paddingVertical: 12, }, + settingItemContent: { + flexDirection: "row", + alignItems: "center", + justifyContent: "space-between", + flex: 1, + }, settingLabel: { flexDirection: "row", alignItems: "center", diff --git a/i18n/locales/en.json b/i18n/locales/en.json index 94a3ace..24b4e36 100644 --- a/i18n/locales/en.json +++ b/i18n/locales/en.json @@ -39,7 +39,25 @@ "profile": { "title": "My Profile", "name": "User Name", - "settings": "Settings" + "settings": "Settings", + "privacy": "Privacy Policy" + }, + "privacy": { + "title": "Privacy Policy", + "page_title": "ScoreNow Privacy Policy", + "section1_title": "1. Information Collection", + "section1_text": "ScoreNow collects information including: account information provided during registration; your preferences for teams and leagues you follow; and device identifiers and network logs when using the live score feature.", + "section2_title": "2. Information Use", + "section2_text": "We use this information to send you match reminders you're interested in, optimize the display order of news and information, and ensure real-time and accurate distribution of match data.", + "section3_title": "3. Third-Party Services", + "section3_text": "To provide accurate match data and analysis, we may collaborate with third-party data providers. We do not share your personal identity information, only anonymized statistical data.", + "section4_title": "4. Permissions", + "section4_text": "We request notification permissions to send goal alerts; storage permissions to cache match images and content, saving your data usage.", + "section5_title": "5. Data Security", + "section5_text": "ScoreNow uses industry-standard encryption technology to protect your data, preventing unauthorized access to your viewing preferences or account history.", + "section6_title": "6. Your Rights", + "section6_text": "You can manage your notification preferences, clear search history, or delete your account at any time in settings.", + "last_updated": "Last updated: January 2026" }, "detail": { "title": "Match Details", @@ -87,7 +105,7 @@ }, "odds_card": { "title": "Match Odds", - "disclaimer": "18+. Please gamble responsibly. Odds are subject to change." + "disclaimer": "" }, "stats_card": { "title": "Statistics", diff --git a/i18n/locales/zh.json b/i18n/locales/zh.json index acaea48..2800ee5 100644 --- a/i18n/locales/zh.json +++ b/i18n/locales/zh.json @@ -39,7 +39,25 @@ "profile": { "title": "我的", "name": "用户名", - "settings": "设置" + "settings": "设置", + "privacy": "隐私协议" + }, + "privacy": { + "title": "隐私协议", + "page_title": "ScoreNow 隐私政策", + "section1_title": "1. 信息收集", + "section1_text": "ScoreNow 收集的信息包括:您注册时提供的账户信息;您关注的球队、联赛等偏好设置;以及在使用即时比分功能时的设备标识符和网络日志。", + "section2_title": "2. 信息使用", + "section2_text": "我们使用这些信息来为您推送您感兴趣的赛事提醒、优化新闻资讯的展示顺序,并确保比赛数据的实时准确分发。", + "section3_title": "3. 第三方服务", + "section3_text": "为提供精准的赛事数据和分析,我们可能与第三方数据供应商合作。我们不会共享您的个人身份信息,仅共享经过匿名化处理的统计数据。", + "section4_title": "4. 权限说明", + "section4_text": "我们会申请通知权限以发送进球提醒;申请存储权限以缓存赛事图片和资讯内容,从而节省您的流量。", + "section5_title": "5. 数据安全", + "section5_text": "ScoreNow 采用行业标准的加密技术保护您的数据,防止您的观赛偏好或账户历史被非法获取。", + "section6_title": "6. 您的权利", + "section6_text": "您可以在设置中随时管理您的通知偏好、清除搜索记录,或注销您的账户。", + "last_updated": "最后更新:2026年1月" }, "detail": { "title": "比赛详情", @@ -87,7 +105,7 @@ }, "odds_card": { "title": "比赛赔率", - "disclaimer": "18+. 请负责任地赌博。赔率可能会变动。" + "disclaimer": "" }, "stats_card": { "title": "统计数据",