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