少一个接口,增加一下

This commit is contained in:
daihh
2022-10-09 16:26:50 +08:00
parent 98f09b0d69
commit e4cbbebbcf
2 changed files with 50 additions and 74 deletions

View File

@@ -21,8 +21,14 @@ const treeList = function (query) {
const listByParent = function (parentId) {
return ajax.get('/xboe/org/list-by-parent?parentId='+parentId);
}
export default {
treeList,
listByParent
const getSimple = function (id) {
return ajax.get('/xboe/org/simple?id='+id);
}
export default {
treeList,
listByParent,
getSimple
}

View File

@@ -336,7 +336,7 @@
},
computed: {
...mapGetters(['userInfo']),
catalogTree() {
catalogTree(){
let treeList = [];
this.completed = [];
let $this = this;
@@ -379,7 +379,7 @@
}
})
},
onPlayVideo(time) {
onPlayVideo(time){
this.playerBoxShow = false;
this.notePlay = null;
setTimeout(() => {
@@ -1171,7 +1171,7 @@
margin: 20px 80px;
.course-playbox {
background-color: #fff;
min-height: 745px;
min-height: 545px;
display: flex;
justify-content: space-between;
.course-player{ //内容播放区域
@@ -1292,6 +1292,7 @@
padding: 36px;
}
//以下是未整理的样式,上面的整理之后的样式
.coures-note {
min-height: 500px;
padding-left: 17px;
@@ -1306,36 +1307,6 @@
.note-info {}
}
.coures-tearch {
margin-top: 24px;
margin-left: 20px;
}
.mltit {
// width: 70%;
// width: ;
word-break: break-all;
// line-height: 25px;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
}
.catalog-text {
width: 70%;
overflow: hidden;
word-break: break-all;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 1;
height: 40px;
}
.player-box {
position: absolute;
// top: 62px;
@@ -1363,15 +1334,6 @@
}
}
.score {
display: flex;
justify-content: center;
align-items: center;
.el-rate {
display: inline-block;
}
.score-text {
font-size: 28px;
color: #ffb30f;
@@ -1380,18 +1342,26 @@
// font-weight: 600;
}
// margin-bottom: 19px;
.score-no {
color: #ffb30f;
padding: 5px 0;
background: #efefef;
border-radius: 20px;
width: 65px;
font-size: 12px;
font-weight: 600;
text-align: center;
}
}
// .score {
// display: flex;
// justify-content: center;
// align-items: center;
// .el-rate {
// display: inline-block;
// }
// // margin-bottom: 19px;
// .score-no {
// color: #ffb30f;
// padding: 5px 0;
// background: #efefef;
// border-radius: 20px;
// width: 65px;
// font-size: 12px;
// font-weight: 600;
// text-align: center;
// }
// }
.portal-content-title {
font-weight: 600;