From 0fbfdadf6a41334cf772d22b2d1733ebac43fe9d Mon Sep 17 00:00:00 2001 From: Developer Date: Thu, 19 Mar 2026 17:05:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=B7=BB=E5=8A=A0=E6=89=93=E5=BC=80B?= =?UTF-8?q?=E7=AB=99=E6=89=AB=E7=A0=81=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/LoginModal.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/components/LoginModal.tsx b/components/LoginModal.tsx index 2520e73..001b075 100644 --- a/components/LoginModal.tsx +++ b/components/LoginModal.tsx @@ -9,6 +9,7 @@ import { ActivityIndicator, Animated, Alert, + Linking, } from "react-native"; import * as FileSystem from "expo-file-system/legacy"; import * as MediaLibrary from "expo-media-library"; @@ -108,7 +109,13 @@ export function LoginModal({ visible, onClose }: Props) { const dest = `${FileSystem.cacheDirectory}bilibili_qr.png`; const { uri } = await FileSystem.downloadAsync(qrUrl, dest); await MediaLibrary.saveToLibraryAsync(uri); - Alert.alert("已保存", "二维码已存入相册"); + Alert.alert("已保存", "二维码已存入相册,请用哔哩哔哩扫码登录", [ + { text: "关闭", style: "cancel" }, + { + text: "打开哔哩哔哩扫一扫", + onPress: () => Linking.openURL("bilibili://scan"), + }, + ]); } catch { Alert.alert("失败", "保存失败,请重试"); } finally {