From 5af29af54907eb63f93ee345cde60d0da3027c9d Mon Sep 17 00:00:00 2001 From: wangdl Date: Sat, 6 Jun 2026 19:19:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20#21=20=E8=AE=BE=E7=BD=AE=E9=A1=B5?= =?UTF-8?q?=E8=A1=A5=E5=85=A8=E9=80=9A=E7=9F=A5/=E5=AD=98=E5=82=A8/?= =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E5=88=86=E7=BB=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 通知: 复习提醒 + 导入完成 + 系统通知 - 数据与存储: 存储空间入口 + iCloud - 账号: 个人资料 + 登录设备管理 Co-Authored-By: Claude Opus 4.7 --- .../Features/Profile/SettingsView.swift | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/AIStudyApp/AIStudyApp/Features/Profile/SettingsView.swift b/AIStudyApp/AIStudyApp/Features/Profile/SettingsView.swift index 367aa60..57f377b 100644 --- a/AIStudyApp/AIStudyApp/Features/Profile/SettingsView.swift +++ b/AIStudyApp/AIStudyApp/Features/Profile/SettingsView.swift @@ -56,13 +56,41 @@ struct SettingsView: View { .background(Color.zxFill004).clipShape(RoundedRectangle(cornerRadius: 20)) .overlay(RoundedRectangle(cornerRadius: 20).stroke(Color.zxBorder006, lineWidth: 1)) - sectionHeader("数据") + sectionHeader("通知") VStack(spacing: 0) { + ZXSettingToggleRow(title: "复习提醒", icon: "icon-bell-on", color: Color.zxF05, isOn: $reviewReminder, isCustom: true) + ZXSettingDivider() + ZXSettingToggleRow(title: "导入完成通知", icon: "tray.and.arrow.down", color: Color.zxF05, isOn: $reviewReminder, isCustom: true) + ZXSettingDivider() + ZXSettingToggleRow(title: "系统通知", icon: "gearshape", color: Color.zxF05, isOn: $reviewReminder, isCustom: true) + } + .background(Color.zxFill004).clipShape(RoundedRectangle(cornerRadius: 20)) + .overlay(RoundedRectangle(cornerRadius: 20).stroke(Color.zxBorder006, lineWidth: 1)) + + sectionHeader("数据与存储") + VStack(spacing: 0) { + NavigationLink(value: Route.settings) { + ZXSettingRow(title: "存储空间", value: profileVM.formattedStorage, icon: "externaldrive", color: Color.zxF05, isCustom: true) + }.foregroundColor(.primary) + ZXSettingDivider() ZXSettingToggleRow(title: "iCloud 同步", icon: "icon-cloud", color: Color.zxF05, isOn: $iCloudSync, isCustom: true) } .background(Color.zxFill004).clipShape(RoundedRectangle(cornerRadius: 20)) .overlay(RoundedRectangle(cornerRadius: 20).stroke(Color.zxBorder006, lineWidth: 1)) + sectionHeader("账号") + VStack(spacing: 0) { + NavigationLink(value: Route.editProfile) { + ZXSettingRow(title: "个人资料", value: "", icon: "person", color: Color.zxF05, isCustom: true) + }.foregroundColor(.primary) + ZXSettingDivider() + NavigationLink(value: Route.settings) { + ZXSettingRow(title: "登录设备管理", value: "", icon: "iphone", color: Color.zxF05, isCustom: true) + }.foregroundColor(.primary) + } + .background(Color.zxFill004).clipShape(RoundedRectangle(cornerRadius: 20)) + .overlay(RoundedRectangle(cornerRadius: 20).stroke(Color.zxBorder006, lineWidth: 1)) + VStack(spacing: 0) { NavigationLink(value: Route.feedbackForm) { ZXSettingRow(title: "帮助与反馈", value: "", icon: "icon-help", color: Color.zxF05, isCustom: true)