From 7f2343d38fa048f6ce179ea0ab2c1a04f41a213c Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期四, 09 十月 2025 18:05:11 +0800
Subject: [PATCH] 功能完善

---
 entry/src/main/ets/pages/account/SettingPage.ets |   70 +++++++++++++++++++++++++++++++++++
 1 files changed, 70 insertions(+), 0 deletions(-)

diff --git a/entry/src/main/ets/pages/account/SettingPage.ets b/entry/src/main/ets/pages/account/SettingPage.ets
new file mode 100644
index 0000000..4812ebe
--- /dev/null
+++ b/entry/src/main/ets/pages/account/SettingPage.ets
@@ -0,0 +1,70 @@
+@Entry
+@Component
+export struct SettingPage {
+  @State messagePushFlag: boolean = false
+  @State autoUpdateFlag: boolean = false
+  build() {
+    Column() {
+      Row() {
+        Image($r('app.media.left_icon'))
+          .width(20)
+          .height(20)
+        Text('闅愮璁剧疆')
+          .fontSize(18)
+          .fontWeight(700)
+        Row()
+      }
+      .width('100%')
+      .padding(10)
+      .justifyContent(FlexAlign.SpaceBetween)
+
+      Divider()
+
+      Column() {
+        Row() {
+          Column({ space: 10 }) {
+            Text('鏄惁寮�鍚秷鎭帹閫�')
+              .fontColor(Color.Black)
+              .width('100%')
+            Text(`鎮ㄥ凡缁�${this.messagePushFlag?'寮�鍚�':'鍏抽棴'}娑堟伅鎺ㄩ�乣)
+              .fontSize(12)
+              .fontColor('#666666')
+              .width('100%')
+          }
+          .layoutWeight(1)
+          Toggle({ type: ToggleType.Switch, isOn: this.messagePushFlag })
+            .selectedColor('#007DFF')
+            .switchPointColor('#FFFFFF')
+            .onChange(() => {
+              this.messagePushFlag = !this.messagePushFlag
+            })
+        }
+        Divider().margin({ top: 20, bottom: 20 })
+          .color('#ededed')
+
+        Row() {
+          Column({ space: 10 }) {
+            Text('鏄惁寮�鍚嚜鍔ㄦ洿鏂�')
+              .fontColor(Color.Black)
+              .width('100%')
+            Text(`鎮ㄥ凡缁�${this.autoUpdateFlag?'寮�鍚�':'鍏抽棴'}鑷姩鏇存柊`)
+              .fontSize(12)
+              .fontColor('#666666')
+              .width('100%')
+          }
+          .layoutWeight(1)
+          Toggle({ type: ToggleType.Switch, isOn: this.autoUpdateFlag })
+            .selectedColor('#007DFF')
+            .switchPointColor('#FFFFFF')
+            .onChange(() => {
+              this.autoUpdateFlag = !this.autoUpdateFlag
+            })
+        }
+      }
+      .padding(16)
+      .width('100%')
+      .height('100%')
+
+    }
+  }
+}
\ No newline at end of file

--
Gitblit v1.8.0