首页推荐接口对接

This commit is contained in:
zhaofang
2022-11-09 14:06:13 +08:00
parent 5559d0a227
commit 7edbcfa743
7 changed files with 290 additions and 53 deletions

View File

@@ -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
}