mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-08 02:16:46 +08:00
提交修改
This commit is contained in:
@@ -326,6 +326,12 @@ const deleteSignUp=function(id,courseId){
|
|||||||
return ajax.post(`/xboe/school/study/course/delete-signup?id=${id}&couserId=${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 {
|
export default {
|
||||||
hasSignup,
|
hasSignup,
|
||||||
signup,
|
signup,
|
||||||
@@ -353,5 +359,6 @@ export default {
|
|||||||
myExamList,
|
myExamList,
|
||||||
myAssessList,
|
myAssessList,
|
||||||
myExamList2,
|
myExamList2,
|
||||||
deleteSignUp
|
deleteSignUp,
|
||||||
|
courseRecommends
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,6 +61,9 @@ const mobieArticle=function (type){
|
|||||||
return ajax.get('/xboe/portal/index/mobile-article?type='+type);
|
return ajax.get('/xboe/portal/index/mobile-article?type='+type);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
cases,
|
cases,
|
||||||
articleViews,
|
articleViews,
|
||||||
|
|||||||
@@ -75,13 +75,29 @@
|
|||||||
<!-- </view> -->
|
<!-- </view> -->
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
</view>
|
</view>
|
||||||
<!--推荐课程-->
|
<!--交互-->
|
||||||
<view>
|
<view class="cinfo-btns">
|
||||||
<course-list :items="recommendCourse"></course-list>
|
<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>
|
||||||
|
<!--推荐课程-->
|
||||||
|
<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>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -107,7 +123,7 @@
|
|||||||
initContentId:'',//初始化的内容id
|
initContentId:'',//初始化的内容id
|
||||||
courseInfo:{id:'',name:''},//课程信息
|
courseInfo:{id:'',name:''},//课程信息
|
||||||
teachers:[],//课程老师列表
|
teachers:[],//课程老师列表
|
||||||
recommendCourse:[],//推荐课程列表
|
recommendCourses:[],//推荐课程列表
|
||||||
isPlaying:false,
|
isPlaying:false,
|
||||||
onplay:false,
|
onplay:false,
|
||||||
touchNum : 0,
|
touchNum : 0,
|
||||||
@@ -214,6 +230,7 @@
|
|||||||
this.courseId=options.id;
|
this.courseId=options.id;
|
||||||
this.courseInfo.id=options.id;
|
this.courseInfo.id=options.id;
|
||||||
this.loadDetail();
|
this.loadDetail();
|
||||||
|
this.loadReCourses();
|
||||||
},
|
},
|
||||||
onShow(){
|
onShow(){
|
||||||
uni.setNavigationBarTitle({ title:'\u200E' })
|
uni.setNavigationBarTitle({ title:'\u200E' })
|
||||||
@@ -381,7 +398,16 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
loadReCourses(){
|
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) {
|
loadAuthorInfo(list, ids) {
|
||||||
//加载作者信息,头像,机构信息
|
//加载作者信息,头像,机构信息
|
||||||
@@ -492,5 +518,12 @@
|
|||||||
font-weight: 700; font-size: 32upx;
|
font-weight: 700; font-size: 32upx;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.cinfo-btns{
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
.cinfo-btn{
|
||||||
|
margin:30upx 60upx;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user