This commit is contained in:
NiSen
2023-10-11 18:03:15 +08:00
parent 367059c4b6
commit f33ede376b
2 changed files with 3 additions and 6 deletions

View File

@@ -50,8 +50,8 @@ const courselist=function (data){
/**
* 首页新课程推荐列表
*/
const getRecommendList=function (data){
return http.post(baseURL,`/recommend/page}`,data);
const getRecommendList=function (pageNum,pageSize){
return http.get(baseURL,`/recommend/studentPage?pageNum=${pageNum}&pageSize=${pageSize}`);
}
export default {

View File

@@ -1340,10 +1340,7 @@ export default {
},
// 获取推荐课程list
getRecommendList(){
apiIndex.getRecommendList({
pageNum:1,
pageSize:3
}).then((res) => {
apiIndex.getRecommendList(1,3).then((res) => {
if(res.code === 200){
console.log(res.data.records);
let courseIds = [];