mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 12:26:44 +08:00
课程学习的管理
This commit is contained in:
@@ -55,19 +55,19 @@ const detail = function(id,preview) {
|
||||
const ranking = function(data) {
|
||||
return ajax.post('/xboe/m/course/portal/ranking',data);
|
||||
}
|
||||
/*
|
||||
评分榜
|
||||
/*
|
||||
评分榜
|
||||
@param num 要几条传几条 不传默认五条
|
||||
*/
|
||||
const scorelist=function(num){
|
||||
return ajax.get(`/xboe/m/course/portal/score-list?num=${num}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 按课程IDs获取教师
|
||||
* @param {课程IDs} ids
|
||||
* @returns
|
||||
* @param {课程IDs} ids
|
||||
* @returns
|
||||
*/
|
||||
const getTeacherByCourseIDs = function(ids){
|
||||
return ajax.postJson('/xboe/m/course/portal/query-teacher', ids);
|
||||
@@ -81,6 +81,14 @@ const studyCounts=function(num){
|
||||
const courseSearch=function(query){
|
||||
return ajax.post('/xboe/m/course/fulltext/search',query);
|
||||
}
|
||||
|
||||
/**
|
||||
* 课程学习进度的详细信息
|
||||
* @param {String} id
|
||||
*/
|
||||
const detailStudy = function(courseId,aid) {
|
||||
return ajax.get(`/xboe/m/course/portal/detail-study?courseId=${courseId}&aid=${aid}`);
|
||||
}
|
||||
export default {
|
||||
list,
|
||||
pageList,
|
||||
@@ -89,5 +97,6 @@ export default {
|
||||
scorelist,
|
||||
getTeacherByCourseIDs,
|
||||
studyCounts,
|
||||
courseSearch
|
||||
courseSearch,
|
||||
detailStudy
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user