fix: #21 设置页补全通知/存储/账号分组

- 通知: 复习提醒 + 导入完成 + 系统通知
- 数据与存储: 存储空间入口 + iCloud
- 账号: 个人资料 + 登录设备管理

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
wangdl 2026-06-06 19:19:31 +08:00
parent 695518b276
commit 5af29af549

View File

@ -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)