From b9f8abd1a9ac31e01ca7ae5259d1ff809a767b55 Mon Sep 17 00:00:00 2001 From: ww Date: Sun, 11 Aug 2024 10:38:47 +0800 Subject: [PATCH] 1 --- src/api/courseChaptersApi.ts | 18 ------- src/api/stu.js | 3 ++ src/api/user/user.js | 10 ++-- src/views/home/components/Lessonlist.vue | 56 ++++++++++++++------ src/views/home/components/Student1.vue | 4 +- src/views/home/components/Welcome.vue | 46 ++++++++--------- src/views/home/index.vue | 66 ++++++++++++++++-------- 7 files changed, 120 insertions(+), 83 deletions(-) create mode 100644 src/api/stu.js diff --git a/src/api/courseChaptersApi.ts b/src/api/courseChaptersApi.ts index e4ca3b8..666b7ca 100644 --- a/src/api/courseChaptersApi.ts +++ b/src/api/courseChaptersApi.ts @@ -96,25 +96,7 @@ export const deleteCourse = (params: any) => { // 获取详情 export const getCourseInfo = (params: any) => { return request({ -<<<<<<< HEAD - // <<<<<<< HEAD - url: '/objective_contents/' + params.id, - method: 'get', - // // params - // ======= - // <<<<<<< HEAD - // url: '/api/objective_contents/' + params.id, - // method: 'get', - // params, - // ======= - // url: '/objective_contents/' + params.id, - // method: "get", - // // params - // >>>>>>> 1a620e19de970965f426e07348b1dbc4be900eaf - // >>>>>>> 991fa5ab08c56c84c5a276226f8fbc2ec78f859a -======= url: '/api/objective_contents/' + params.id, // method: 'get', ->>>>>>> 0b7db324dad8347654933e91ae7e6ca8d2dabd05 }) } diff --git a/src/api/stu.js b/src/api/stu.js new file mode 100644 index 0000000..89953f6 --- /dev/null +++ b/src/api/stu.js @@ -0,0 +1,3 @@ +export const userStudentListService = (id) => { + return request.post('/api/coursesteacher/studentList?userId=' + id) +} diff --git a/src/api/user/user.js b/src/api/user/user.js index 01f3b52..ca3abff 100644 --- a/src/api/user/user.js +++ b/src/api/user/user.js @@ -63,9 +63,9 @@ export const userStudentListService = (id) => { return request.post('/api/coursesteacher/studentList?userId=' + id) } //获取课程列表 -// export const userLessonListService = (id) => { -// return request.post('/api/coursesteacher/studentList?userId=' + id) -// } +export const userLessonListService = (id) => { + return request.post('/api/courselearingrecord/courseList?userId=' + id) +} //获取浏览量 export const userLookService = () => { return request.get('/api/report/receptionBrowse') @@ -74,3 +74,7 @@ export const userLookService = () => { export const userPicService = () => { return request.get('/api/report/browseStatistics') } +//获取学习最多的知识点 +export const userMaxKnowService = (id) => { + return request.post('/api/knowledgelearning/studyMaxKnowledge?userId=' + id) +} diff --git a/src/views/home/components/Lessonlist.vue b/src/views/home/components/Lessonlist.vue index 215956f..8824686 100644 --- a/src/views/home/components/Lessonlist.vue +++ b/src/views/home/components/Lessonlist.vue @@ -1,40 +1,65 @@