From a959080a010bd8443d15028fe77254e2193abc94 Mon Sep 17 00:00:00 2001 From: admin <1297598740@qq.com> Date: Mon, 2 Feb 2026 11:03:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=EF=BC=8C=E5=8C=85=E5=90=AB=E9=80=9A=E7=94=A8?= =?UTF-8?q?=E3=80=81=E5=AE=89=E5=85=A8=E3=80=81=E6=95=B0=E6=8D=AE=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=8A=9F=E8=83=BD=EF=BC=8C=E5=B9=B6=E5=BC=95=E5=85=A5?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E7=B1=BB=E5=9E=8B=E5=AE=9A=E4=B9=89=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/Settings/Settings.tsx | 34 +++++++++++++++++++++++++++++++++ src/types/index.ts | 2 ++ 2 files changed, 36 insertions(+) diff --git a/src/pages/Settings/Settings.tsx b/src/pages/Settings/Settings.tsx index cc8483e..c9a8bfa 100644 --- a/src/pages/Settings/Settings.tsx +++ b/src/pages/Settings/Settings.tsx @@ -455,6 +455,40 @@ function Settings() { /> + +
+
+ +

选择接收相关通知的方式

+
+ handleUserSettingChange('notificationChannel', value)} + options={[ + { value: 'sms', label: '仅短信' }, + { value: 'email', label: '仅邮件' }, + { value: 'both', label: '短信和邮件' }, + { value: 'none', label: '不通知' }, + ]} + /> +
+ +
+
+ +

用于接收邮件通知

+
+
+ handleUserSettingChange('email', e.target.value)} + /> +
+
diff --git a/src/types/index.ts b/src/types/index.ts index 04ff6bb..a7627f7 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -78,6 +78,8 @@ export interface UserSettings { defaultExpenseAccount?: Account | null; defaultIncomeAccount?: Account | null; phone?: string; + email?: string; + notificationChannel?: 'sms' | 'email' | 'both' | 'none'; } // Tag Interface