提交修改

This commit is contained in:
daihh
2022-11-11 19:07:11 +08:00
parent fa9d0be4ea
commit a4f3dd6fd9
3 changed files with 50 additions and 7 deletions

View File

@@ -326,6 +326,12 @@ const deleteSignUp=function(id,courseId){
return ajax.post(`/xboe/school/study/course/delete-signup?id=${id}&couserId=${courseId}`);
}
/**课程详细页面的推荐课程*/
const courseRecommends=function(query) {
return ajax.post('/xboe/portal/index/course-for-recommend',query);
}
export default {
hasSignup,
signup,
@@ -353,5 +359,6 @@ export default {
myExamList,
myAssessList,
myExamList2,
deleteSignUp
deleteSignUp,
courseRecommends
}

View File

@@ -61,6 +61,9 @@ const mobieArticle=function (type){
return ajax.get('/xboe/portal/index/mobile-article?type='+type);
}
export default {
cases,
articleViews,

View File

@@ -75,13 +75,29 @@
<!-- </view> -->
</scroll-view>
</view>
<!--推荐课程-->
<view>
<course-list :items="recommendCourse"></course-list>
<!--交互-->
<view class="cinfo-btns">
<view class="cinfo-btn">
<view>图标</view>
<view>评价</view>
</view>
<view class="cinfo-btn">
<view>图标</view>
<view>收藏</view>
</view>
<view class="cinfo-btn">
<view>图标</view>
<view>转发</view>
</view>
</view>
</view>
</view>
</view>
<!--推荐课程-->
<view style="padding: 30upx;background-color: #fff;">
<view style="color: #333333; font-size: 32upx;font-weight: 600;padding-bottom: 20upx;">课程推荐</view>
<course-list :items="recommendCourses"></course-list>
</view>
</view>
</template>
@@ -107,7 +123,7 @@
initContentId:'',//初始化的内容id
courseInfo:{id:'',name:''},//课程信息
teachers:[],//课程老师列表
recommendCourse:[],//推荐课程列表
recommendCourses:[],//推荐课程列表
isPlaying:false,
onplay:false,
touchNum : 0,
@@ -214,6 +230,7 @@
this.courseId=options.id;
this.courseInfo.id=options.id;
this.loadDetail();
this.loadReCourses();
},
onShow(){
uni.setNavigationBarTitle({ title:'\u200E' })
@@ -381,7 +398,16 @@
})
},
loadReCourses(){
//apiCoursePortal.
let dto={
sysType1:this.courseInfo.sysType1,
sysType2:this.courseInfo.sysType2,
sysType3:this.courseInfo.sysType3
}
apiCourseStudy.courseRecommends(dto).then(rs=>{
if(rs.status==200){
this.recommendCourses=rs.result;
}
})
},
loadAuthorInfo(list, ids) {
//加载作者信息,头像,机构信息
@@ -492,5 +518,12 @@
font-weight: 700; font-size: 32upx;
}
}
.cinfo-btns{
display: flex;
justify-content: center;
.cinfo-btn{
margin:30upx 60upx;
}
}
}
</style>