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/MessagePushPage.ets |   98 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 98 insertions(+), 0 deletions(-)

diff --git a/entry/src/main/ets/pages/account/MessagePushPage.ets b/entry/src/main/ets/pages/account/MessagePushPage.ets
new file mode 100644
index 0000000..d88e397
--- /dev/null
+++ b/entry/src/main/ets/pages/account/MessagePushPage.ets
@@ -0,0 +1,98 @@
+
+class MessageItem {
+  icon: string | Resource = ''
+  title: string = ''
+  desc: string = ''
+  time: string = ''
+  isRead: boolean = false
+}
+
+@Entry
+@Component
+export struct MessagePushPage {
+  @State messagePushFlag: boolean = false
+  @State autoUpdateFlag: boolean = false
+  @State messageList: MessageItem[] = [
+    { icon: $r('app.media.message_note'), title: '璇剧▼鎻愰啋', desc: '鎮ㄦ姤鍚嶇殑銆婂叏鏍堝紑鍙戯細鍓嶅悗绔墦閫氬疄鎴樸��', time: '09-01 12:55', isRead: false },
+    { icon: $r('app.media.message_gift'), title: '绂忚娲鹃�佸畼', desc: '鎮ㄨ幏寰椾簡涓�寮犱环鍊�100鍏冪殑璇剧▼鎶垫墸鍒革紝鎮ㄥ彲浠ヤ粠', time: '09-01 10:55', isRead: true },
+    { icon: $r('app.media.message_pencil'), title: '瀹樻柟閫氱煡', desc: '鏈钩鍙板皢浜�09-01 00 瀵瑰钩鍙拌繘琛岀淮鎶わ紝璇峰悇浣嶇敤鎴�', time: '08-31 10:55', isRead: true }
+  ]
+  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() {
+        List({ space: 10, initialIndex: 0 }){
+          ForEach(this.messageList, (item: MessageItem) => {
+            ListItem() {
+              Row() {
+                Image(item.icon)
+                  .width(40)
+                  .height(40)
+                Column({ space: 10 }) {
+                  Row() {
+                    Text(item.title)
+                      .fontSize(14)
+                      .fontWeight(500)
+                      .fontColor(Color.Black)
+                    Text(item.time)
+                      .fontSize(12)
+                      .fontWeight(500)
+                      .margin({ left: 10 })
+                      .fontColor('#666666')
+                  }
+                  .width('100%')
+
+                  Text(item.desc)
+                    .width('100%')
+                    .fontSize(12)
+                    .maxLines(1)
+                    .fontColor('#666666')
+                    .textOverflow({ overflow: TextOverflow.Ellipsis })
+                }
+                .width(260)
+                .margin({ left: 10 })
+
+                if (!item.isRead) {
+                  Image($r('app.media.message_circle'))
+                    .width(10)
+                    .height(10)
+                }
+              }
+              .width('100%')
+              .height(80)
+              .padding({ left: 16,right: 16, top: 4, bottom: 4 })
+              .borderRadius(10)
+              .backgroundColor(Color.White)
+              .onClick(() => {
+              })
+            }
+          })
+        }
+        .listDirection(Axis.Vertical) // 鎺掑垪鏂瑰悜
+        .scrollBar(BarState.Off)
+        .friction(0.6)
+        .edgeEffect(EdgeEffect.Spring)
+        .width('100%')
+        .divider({strokeWidth: 1,color: '#f0f0f0'})
+      }
+      .padding({ top: 10 })
+      .backgroundColor('#f5f5f7')
+      .width('100%')
+      .height('100%')
+    }
+  }
+}
\ No newline at end of file

--
Gitblit v1.8.0