mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 11:56:44 +08:00
提交
This commit is contained in:
@@ -132,13 +132,21 @@
|
|||||||
<!-- 课程单元 -->
|
<!-- 课程单元 -->
|
||||||
<div class="course-units" v-if="tab == 1">
|
<div class="course-units" v-if="tab == 1">
|
||||||
<div style="min-height: 500px;">
|
<div style="min-height: 500px;">
|
||||||
<div class="catalog">
|
<div class="catalog" v-if="courseInfo.type == 20">
|
||||||
<div v-for="(item, index) in catalogTree" :key="index" :name="index">
|
<div v-for="(item, index) in catalogTree" :key="index" :name="index">
|
||||||
<div class="units-info" :class="{'units-active':contentData.id == ele.id}" @click="showRes(ele,i,index)" v-for="(ele, i) in item.children" :key="i">
|
<div class="units-info" :class="{'units-active':contentData.id == ele.id}" @click="showRes(ele,i,index)" v-for="(ele, i) in item.children" :key="i">
|
||||||
<img v-if="contentData.id == ele.id" src="../../../public/images/playicon.png" alt=""> 1. {{ ele.contentName }}
|
<img v-if="contentData.id == ele.id" src="../../../public/images/playicon.png" alt=""> 1. {{ ele.contentName }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div v-else class="catalog">
|
||||||
|
<!-- contentList -->
|
||||||
|
<div class="units-info" v-for="(list, index) in contentList" :key="index" :name="index" @click="showRes(list,i,index)" :class="{'units-active':contentData.id == list.id}">
|
||||||
|
<!-- <div class="units-info" :class="{'units-active':contentData.id == ele.id}" @click="showRes(ele,i,index)" v-for="(ele, i) in item.children" :key="i"> -->
|
||||||
|
<img v-if="contentData.id == list.id" src="../../../public/images/playicon.png" alt=""> 1. {{ list.contentName }}
|
||||||
|
<!-- </div> -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 我的笔记 -->
|
<!-- 我的笔记 -->
|
||||||
@@ -336,7 +344,7 @@ export default {
|
|||||||
widthOpen(url) {
|
widthOpen(url) {
|
||||||
window.open(url, '_blank');
|
window.open(url, '_blank');
|
||||||
},
|
},
|
||||||
showRes(r,i,index) { //i:子节下标,index:章下标
|
showRes(r,i,index) { //i:子节下标,index:章下标
|
||||||
if(i!=undefined && index!=undefined && r.status<9) {
|
if(i!=undefined && index!=undefined && r.status<9) {
|
||||||
if(this.courseInfo.orderStudy) {
|
if(this.courseInfo.orderStudy) {
|
||||||
//判断上个是否学完
|
//判断上个是否学完
|
||||||
@@ -813,6 +821,10 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.showRes(this.contentList[playIndex]);
|
this.showRes(this.contentList[playIndex]);
|
||||||
}
|
}
|
||||||
|
if(this.courseInfo.type == 10) {
|
||||||
|
this.showRes(this.contentList[0]);
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
this.$message.error('您还未报名');
|
this.$message.error('您还未报名');
|
||||||
if (this.courseInfo.type == 10) {
|
if (this.courseInfo.type == 10) {
|
||||||
|
|||||||
Reference in New Issue
Block a user