mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-07 01:46:44 +08:00
首页推荐接口对接
This commit is contained in:
@@ -39,11 +39,31 @@ const articlelist=function (type){
|
||||
const courselist=function (data){
|
||||
return ajax.post('/xboe/portal/index/courselist',data);
|
||||
}
|
||||
// 移动端首页课程
|
||||
const mobileIndex=function(data){return ajax.post('/xboe/portal/index/mobile-courseindex',data);}
|
||||
/*
|
||||
评分榜
|
||||
@param num 要几条传几条 不传默认五条
|
||||
*/
|
||||
const scorelist=function(num,p){
|
||||
return ajax.get(`/xboe/m/course/portal/score-list?num=${num}&index=${p}`);
|
||||
}
|
||||
/**首页查询问答
|
||||
* pageSize
|
||||
* orderField
|
||||
* orderAsc
|
||||
*/
|
||||
const indexList=function(query) {
|
||||
return ajax.post('/xboe/m/qa/question/query-random',query);
|
||||
}
|
||||
|
||||
export default {
|
||||
cases,
|
||||
articleViews,
|
||||
qaAnswers,
|
||||
articlelist,
|
||||
courselist
|
||||
courselist,
|
||||
mobileIndex,
|
||||
scorelist,
|
||||
indexList
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user