mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 11:56:44 +08:00
首页推荐课程添加
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import ajax from '@/utils/xajax.js'
|
||||
import http from '../unionAjax'
|
||||
const baseURL = process.env.VUE_APP_MANAGER_API_PATH;
|
||||
|
||||
|
||||
/**
|
||||
@@ -45,6 +47,12 @@ const articlelist=function (type){
|
||||
const courselist=function (data){
|
||||
return ajax.post('/xboe/portal/index/courselist',data);
|
||||
}
|
||||
/**
|
||||
* 首页新课程推荐列表
|
||||
*/
|
||||
const getRecommendList=function (pageNum,pageSize){
|
||||
return http.get(baseURL,`/recommend/page?pageNum=${pageNum}&pageSize=${pageSize}`);
|
||||
}
|
||||
|
||||
export default {
|
||||
cases,
|
||||
@@ -52,5 +60,6 @@ export default {
|
||||
qaAnswers,
|
||||
articlelist,
|
||||
courselist,
|
||||
newCases
|
||||
newCases,
|
||||
getRecommendList
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user