diff --git a/src/api/modules/courseStudy.js b/src/api/modules/courseStudy.js index 4e0fb450..69789733 100644 --- a/src/api/modules/courseStudy.js +++ b/src/api/modules/courseStudy.js @@ -347,11 +347,26 @@ const deleteSignUp=function(id,courseId){ } /** - * 二次查询 + * 二次查询 用于个人主页/他人主页 + * { + * ids [] 数组,是那个动态列表的contentId + * aid 个人主页可以不传 他人主页传 + * } * */ const ids=function (data){ return ajax.postJson('/xboe/school/study/course/ids',data); } + +/** + * 二次查询 用于我的关注 + * { + * ids [] 数组,是那个动态列表的contentId + * aids 我关注的人的id 调完接口查询出的followId + * } + * */ +const followIds=function (data){ + return ajax.postJson('/xboe/school/study/course/follow-ids',data); +} export default { hasSignup, signup, @@ -381,5 +396,6 @@ export default { myExamList2, myCourseStudy, deleteSignUp, - ids + ids, + followIds } diff --git a/src/assets/styles/portal-index.scss b/src/assets/styles/portal-index.scss index fa6d86c8..8f69c908 100644 --- a/src/assets/styles/portal-index.scss +++ b/src/assets/styles/portal-index.scss @@ -512,11 +512,11 @@ } .xindex-ranking-article{ - height: 375px; + height: 367px; } .xindex-ranking-qa{ - height:124px; + height:121px; } .xindex-case { @@ -1008,7 +1008,8 @@ margin-right: 30px; margin-bottom: 30px; border-radius: 8px; - + background-color: #000000; + .xindex-course-image{ width: 340px; height: 191px; @@ -1021,19 +1022,19 @@ margin-top:30px; } .xindex-ranking-course{ - height: 616px; + height: 612px; } .xindex-ranking-case{ - height: 300px; + height: 395.5px; } .xindex-ranking-article{ - height: 455px; + height: 452px; } .xindex-ranking-qa{ - height:220px; + height:222px; } .xindex-case { @@ -1232,7 +1233,15 @@ } } - + .personal-panel{ + width: 356px; + height: 370px; + padding: 30px 45px; + .personal-box{ + margin-top: 20px; + margin-bottom: 28px; + } + } .medal-index{ // 勋章规则控制 margin: 40px 60px 0 60px; } @@ -1261,19 +1270,20 @@ margin-top:30px; } .xindex-ranking-course{ - height: 610px; + + height: 630px; } .xindex-ranking-case{ - height: 260px; + height: 295.5px; } .xindex-ranking-article{ - height: 420px; + height: 452px; } .xindex-ranking-qa{ - height:188px; + height:222px; } .xindex-case { // padding-right: 30px; diff --git a/src/components/Case/collectList.vue b/src/components/Case/collectList.vue index 7e002979..675d57b0 100644 --- a/src/components/Case/collectList.vue +++ b/src/components/Case/collectList.vue @@ -12,7 +12,8 @@