mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 12:56:43 +08:00
课程详情studyIndex和detail传递用户所有受众id
This commit is contained in:
@@ -43,6 +43,19 @@ const pageList = function(query) {
|
||||
const detail = function(id,preview,course=false) {
|
||||
return ajax.get(`/xboe/m/course/portal/detail?id=${id}&preview=${preview}&course=${course}`);
|
||||
}
|
||||
/**
|
||||
* 课程的详细信息
|
||||
* @param {object} data
|
||||
* {
|
||||
* id:课程id,
|
||||
* preview,
|
||||
* course,
|
||||
* audiences:登录用户所有受众id
|
||||
* }
|
||||
*/
|
||||
const detailPost = function(data) {
|
||||
return ajax.post(`/xboe/m/course/portal/detail`,data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 人气排行榜
|
||||
@@ -98,5 +111,6 @@ export default {
|
||||
getTeacherByCourseIDs,
|
||||
studyCounts,
|
||||
courseSearch,
|
||||
detailStudy
|
||||
detailStudy,
|
||||
detailPost
|
||||
}
|
||||
|
||||
@@ -69,6 +69,19 @@ const countSignup = function(courseId) {
|
||||
const studyIndex = function(courseId) {
|
||||
return ajax.get('/xboe/school/study/course/studyIndex?cid='+courseId+'&addView=true');
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param {object} data
|
||||
* {
|
||||
* cid:课程id,
|
||||
* addView,
|
||||
* audiences:登录用户所有受众id
|
||||
* }
|
||||
* @returns
|
||||
*/
|
||||
const studyIndexPost = function(data) {
|
||||
return ajax.post('/xboe/school/study/course/studyIndex',data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 课程学习,根据课程id来获取,
|
||||
@@ -414,5 +427,6 @@ export default {
|
||||
findByIds,
|
||||
deleteSignUp,
|
||||
ids,
|
||||
followIds
|
||||
followIds,
|
||||
studyIndexPost
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user