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

diff --git a/entry/src/main/ets/pages/account/LearningRecordPage.ets b/entry/src/main/ets/pages/account/LearningRecordPage.ets
new file mode 100644
index 0000000..ed49d4c
--- /dev/null
+++ b/entry/src/main/ets/pages/account/LearningRecordPage.ets
@@ -0,0 +1,98 @@
+import { McLineChart, Options } from '@mcui/mccharts'
+
+@Entry
+@Component
+export struct LearningRecordPage {
+  @State maxData: number[] = [0, 0, 0, 5, 0, 5, 0]
+  // 鍒濆鍖栨暟鎹�
+  @State seriesOption: Options = new Options({
+    xAxis:{
+      data:['09-01','09-02','09-03','09-04','09-05','09-06','09-07']
+    },
+    yAxis:{
+      name:'鍒嗛挓'
+    },
+    series:[
+      {
+        name:'瀛︿範鏃堕暱',
+        data: this.maxData
+      }
+    ]
+  })
+
+  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({ space: 20 }) {
+        Row() {
+          Column({ space: 12 }) {
+            Text('鎬诲涔犳椂闀�')
+              .fontColor('#666666')
+              .fontSize(14)
+            Text() {
+              Span('10')
+                .fontSize(20)
+                .fontWeight(700)
+                .fontColor('#1761f4')
+              Span(' 鍒嗛挓')
+                .fontSize(12)
+            }
+          }
+          Column({ space: 12 }) {
+            Text('浠婃棩瀛︿範鏃堕暱')
+              .fontColor('#666666')
+              .fontSize(14)
+            Text() {
+              Span('0')
+                .fontSize(20)
+                .fontWeight(700)
+                .fontColor('#1761f4')
+              Span(' 鍒嗛挓')
+                .fontSize(12)
+            }
+          }
+        }
+        .width('100%')
+        .justifyContent(FlexAlign.SpaceEvenly)
+        .padding(20)
+        .borderRadius(10)
+        .shadow({ radius: 10, color: '#dcdcdc' })
+
+        Text('杩戜竴鍛ㄥ涔犳椂闀跨粺璁�')
+          .fontSize(14)
+          .fontColor(Color.Black)
+          .fontWeight(500)
+          .width('100%')
+
+        Column(){
+          McLineChart({
+            options: this.seriesOption
+          })
+        }
+        .width('100%')
+        .height(200)
+
+      }
+      .padding(16)
+
+
+
+    }
+    .width('100%')
+    .height('100%')
+  }
+}
\ No newline at end of file

--
Gitblit v1.8.0