From 4bbb616a1dcba04a977771774f986c689216e8f7 Mon Sep 17 00:00:00 2001 From: daihh Date: Mon, 14 Nov 2022 14:20:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/modules/coursePortal.js | 13 +++ components/interact-share/interact-share.vue | 81 ++++++++++++++---- config/index.js | 2 +- pages/study/courseStudy.vue | 89 ++++++++++++++++---- 4 files changed, 149 insertions(+), 36 deletions(-) diff --git a/api/modules/coursePortal.js b/api/modules/coursePortal.js index 0c0bcfe..d6f9d40 100644 --- a/api/modules/coursePortal.js +++ b/api/modules/coursePortal.js @@ -76,6 +76,18 @@ const courseSearch=function(query){ return ajax.post('/xboe/m/course/fulltext/search',query); } +/* +* 课程详情页推荐列表 +* @param num 条数 +* 以下参数 详情中有就传,没有就不传 +* @param sysType1 +* @param sysType2 +* @param sysType3 +* */ +const recommendList=function (data){ + return ajax.post('/xboe/m/course/portal/mobile-recommend',data); +} + export default { courseSearch, list, @@ -83,5 +95,6 @@ export default { detail, ranking, scorelist, + recommendList, getTeacherByCourseIDs } diff --git a/components/interact-share/interact-share.vue b/components/interact-share/interact-share.vue index cbd710d..5a250aa 100644 --- a/components/interact-share/interact-share.vue +++ b/components/interact-share/interact-share.vue @@ -1,19 +1,28 @@