From 932a023d84bb9c567fe244429ac3569cdf357387 Mon Sep 17 00:00:00 2001 From: xy <2115269706@qq.com> Date: Sat, 22 Mar 2025 17:12:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83=E4=B8=8E?= =?UTF-8?q?=E7=9F=A5=E8=AF=86=E7=82=B9=E4=BF=A1=E6=81=AF=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/user.ts | 18 +++++++++++- src/layout/knowledgePage.vue | 53 ++++++++++++++++++++++++------------ src/layout/spacePage.vue | 18 ++++++------ 3 files changed, 63 insertions(+), 26 deletions(-) diff --git a/src/api/user.ts b/src/api/user.ts index c526980..5d893e2 100644 --- a/src/api/user.ts +++ b/src/api/user.ts @@ -22,4 +22,20 @@ export const sturegister = (data: any) => { method: 'POST', data, }) -} \ No newline at end of file +} + +// 获取用户信息 +export const getUserInfoService = () => { + return request({ + url: "/xnRecords/getIndividualScore", + method: "get", + }); +}; + +//获取知识点信息 +export const getKnowledgeService = () => { + return request({ + url: "knowledgepoint/xnKnowledgePoint/list", + method: "get", + }); +}; \ No newline at end of file diff --git a/src/layout/knowledgePage.vue b/src/layout/knowledgePage.vue index dcbb5ef..cbfe8c4 100644 --- a/src/layout/knowledgePage.vue +++ b/src/layout/knowledgePage.vue @@ -8,11 +8,11 @@
-
第一个/共X个
-
知识点学习
+
{{currentKnowledgeIndex+1}}个/共{{Knowledges .length}}个
+
{{currentKnowledgeTitle}}
-
+
已学习
@@ -26,32 +26,51 @@ -