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)