课程资讯等修复

alioss
yujialong 3 years ago
parent 3a533fd2c1
commit 183453fc00
  1. 14
      src/api/index.js
  2. 8
      src/pages/course/details/index.vue
  3. 4
      src/pages/course/list/index.vue
  4. 2
      src/pages/info/details/index.vue
  5. 14
      src/pages/info/list/index.vue
  6. 21
      src/pages/match/list/index.vue
  7. 7
      src/pages/screen/index.vue
  8. 7
      src/pages/station/preview/index.vue
  9. 4
      src/styles/page/screen.scss

@ -78,16 +78,16 @@ export default {
// 线上赛事 // 线上赛事
notLoggedInBeforeStudentEvents: `occupationlab/occupationlab/enterprise/match/contest/notLoggedInBeforeStudentEvents`, notLoggedInBeforeStudentEvents: `occupationlab/occupationlab/enterprise/match/contest/notLoggedInBeforeStudentEvents`,
contestPageConditionQueryByOccupationlabStu: `occupationlab/occupationlab/match/contest/contestPageConditionQueryByOccupationlabStu`, contestPageConditionQueryByOccupationlabStu: `occupationlab/occupationlab/enterprise/match/contest/contestPageConditionQueryByOccupationlabStu`,
contestPageConditionQueryByOccupationlab: `occupationlab/occupationlab/match/contest/onlineCompetitionByStudent`, contestPageConditionQueryByOccupationlab: `occupationlab/occupationlab/enterprise/match/contest/onlineCompetitionByStudent`,
listOfRegisteredEvents: `occupationlab/occupationlab/match/contest/listOfRegisteredEvents`, listOfRegisteredEvents: `occupationlab/occupationlab/enterprise/match/contest/listOfRegisteredEvents`,
addApplicant: `occupationlab/occupationlab/match/applicant/addApplicant`, // 添加报名人员 addApplicant: `occupationlab/occupationlab/enterprise/match/applicant/addApplicant`, // 添加报名人员
getContestProgress: `occupationlab/occupationlab/match/contest-progress/getContestProgress`, // 根据赛事id查询竞赛进展 getContestProgress: `occupationlab/occupationlab/enterprise/match/contest-progress/getContestProgress`, // 根据赛事id查询竞赛进展
getContest: `occupationlab/occupationlab/match/contest/getContest`, // 根据id查询赛事 getContest: `occupationlab/occupationlab/enterprise/match/contest/getContest`, // 根据id查询赛事
queryAnnouncementByContestId: `occupationlab/occupationlab/contest/announcement/queryAnnouncementByContestId`, queryAnnouncementByContestId: `occupationlab/occupationlab/contest/announcement/queryAnnouncementByContestId`,
queryAnnouncementDetails: `occupationlab/occupationlab/contest/announcement/queryAnnouncementDetails`, queryAnnouncementDetails: `occupationlab/occupationlab/contest/announcement/queryAnnouncementDetails`,
contestAfterLogin: `occupationlab/occupationlab/enterprise/match/contest/contestAfterLogin`, contestAfterLogin: `occupationlab/occupationlab/enterprise/match/contest/contestAfterLogin`,
cancelRegistration: `occupationlab/occupationlab/match/applicant/cancelRegistration`, cancelRegistration: `occupationlab/occupationlab/enterprise/match/applicant/cancelRegistration`,
// 阿里云文件/视频管理 // 阿里云文件/视频管理
fileDeletion: `${uploadURL}oss/manage/fileDeletion`, // 删除OSS文件 fileDeletion: `${uploadURL}oss/manage/fileDeletion`, // 删除OSS文件

@ -166,9 +166,10 @@ export default {
document.body.appendChild(scriptTag); document.body.appendChild(scriptTag);
}, },
transferType(ext){ transferType(ext){
if('jpg,jpeg,png,gif,svg,psd'.includes(ext)) return '图片' const suf = ext.toLowerCase()
if('mp4,3gp,mov,m4v,avi,dat,mkv,flv,vob,rmvb,rm,qlv'.includes(ext)) return '视频' if('jpg,jpeg,png,gif,svg,psd'.includes(suf)) return '图片'
return ext if('mp4,3gp,mov,m4v,avi,dat,mkv,flv,vob,rmvb,rm,qlv'.includes(suf)) return '视频'
return suf
}, },
preview(row, chapterName, showConfirm = 1){ preview(row, chapterName, showConfirm = 1){
// //
@ -248,7 +249,6 @@ export default {
}else{ }else{
this.showMask2 = false this.showMask2 = false
} }
console.log(33, res)
this.iframeSrc = res.previewUrl this.iframeSrc = res.previewUrl
}) })
.catch(err => { .catch(err => {

@ -38,6 +38,10 @@
<i class="el-icon-view"></i> <i class="el-icon-view"></i>
{{ item.pageviews }} {{ item.pageviews }}
</div> </div>
<div class="meta">
<i class="el-icon-user"></i>
{{ item.schoolName }}
</div>
<span v-if="item.courseType == 0" class="type">{{ item.courseType == 1 ? '付费' : '免费'}}</span> <span v-if="item.courseType == 0" class="type">{{ item.courseType == 1 ? '付费' : '免费'}}</span>
</div> </div>
</li> </li>

@ -51,7 +51,7 @@ export default {
methods: { methods: {
getData() { getData() {
this.loadIns = Loading.service() this.loadIns = Loading.service()
this.$get(`${this.api.getArticle}/${this.id}`) this.$get(`${this.api.getArticle}?articleId=${this.id}`)
.then(res => { .then(res => {
let data = res.article let data = res.article
this.coverUrl = data.coverUrl this.coverUrl = data.coverUrl

@ -4,6 +4,7 @@
<div class="main"> <div class="main">
<div class="center-wrap"> <div class="center-wrap">
<div class="nav"> <div class="nav">
<p class="column-name">{{ $route.query.name }}</p>
<el-menu <el-menu
v-if="menuList.length" v-if="menuList.length"
unique-opened unique-opened
@ -97,6 +98,7 @@ export default {
"setColumnId" "setColumnId"
]), ]),
async getData() { async getData() {
this.deepId = ''
const { parentId } = this.$route.query const { parentId } = this.$route.query
this.setColumnId('') this.setColumnId('')
this.loadIns = Loading.service() this.loadIns = Loading.service()
@ -128,8 +130,9 @@ export default {
this.getContent(historyId) this.getContent(historyId)
} else { } else {
// //
data.length && this.getDeepId(data[0].children) data.length && this.getDeepId(data)
const id = this.deepId const id = this.deepId
console.log("🚀 ~ file: index.vue ~ line 133 ~ getData ~ id", id, data)
if (id) { if (id) {
this.getContent(id) this.getContent(id)
this.defaultIndex = id + '' this.defaultIndex = id + ''
@ -144,11 +147,13 @@ export default {
}, },
// id // id
getDeepId(data) { getDeepId(data) {
console.log("🚀 ~ file: index.vue ~ line 148 ~ getDeepId ~ data", data)
data.map(e => { data.map(e => {
if (e.children.length) { if (e.children.length) {
this.getDeepId(e.children) this.getDeepId(e.children)
} else { } else if (!this.deepId) {
this.deepId = e.id this.deepId = e.id
return false
} }
}) })
}, },
@ -226,6 +231,11 @@ export default {
justify-content: center; justify-content: center;
align-items:flex-start; align-items:flex-start;
} }
.column-name {
padding-left: 10px;
margin-bottom: 10px;
font-size: 16px;
}
.nav{ .nav{
width: 156px; width: 156px;
overflow: hidden; overflow: hidden;

@ -444,7 +444,8 @@ export default {
.main{ .main{
background: url(../../../assets/img/match-bg1.png) (0px 95px)/auto auto no-repeat, background: url(../../../assets/img/match-bg1.png) (0px 95px)/auto auto no-repeat,
url(../../../assets/img/match-bg2.png) (98% bottom)/auto auto no-repeat; url(../../../assets/img/match-bg2.png) (98% bottom)/auto auto no-repeat;
.filter { }
.filter {
width: 100%; width: 100%;
padding: 0 20px; padding: 0 20px;
margin-bottom: 20px; margin-bottom: 20px;
@ -472,8 +473,8 @@ export default {
} }
} }
} }
} }
.select-wrap { .select-wrap {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
margin: 0 10px; margin: 0 10px;
@ -484,13 +485,13 @@ export default {
.el-select { .el-select {
width: 130px; width: 130px;
} }
} }
.list-inner { .list-inner {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items:flex-start; align-items:flex-start;
} }
.nav{ .nav{
width: 156px; width: 156px;
text-align: right; text-align: right;
overflow: hidden; overflow: hidden;
@ -521,8 +522,8 @@ export default {
} }
} }
} }
} }
.list-wrap { .list-wrap {
width: calc(100% - 180px); width: calc(100% - 180px);
margin-left: 24px; margin-left: 24px;
.list { .list {
@ -547,6 +548,7 @@ export default {
line-height: 34px; line-height: 34px;
font-size: 14px; font-size: 14px;
color: #fff; color: #fff;
white-space: nowrap;
background-color: #52C41A; background-color: #52C41A;
border-radius: 4px; border-radius: 4px;
&.wait { &.wait {
@ -664,6 +666,5 @@ export default {
} }
} }
} }
}
} }
</style> </style>

@ -435,12 +435,14 @@ export default {
label: { label: {
normal: { normal: {
show: true, show: true,
alignTo: 'none',
lineHeight: 18,
formatter: '{b} {c}' formatter: '{b} {c}'
} }
}, },
data:[ data:[
{value: data.totalNumberOfExams, name:'考总场次'}, {value: data.totalNumberOfExams, name:'考试\n总场次'},
{value: data.referenceNumber, name:'考人数'}, {value: data.referenceNumber, name:'考试\n人数'},
] ]
} }
] ]
@ -508,6 +510,7 @@ export default {
grid: { grid: {
left: '3%', left: '3%',
right: '4%', right: '4%',
top: '30%',
bottom: '3%', bottom: '3%',
containLabel: true containLabel: true
}, },

@ -208,9 +208,10 @@ export default {
}); });
}, },
transferType(ext) { transferType(ext) {
if ("jpg,jpeg,png,gif,svg,psd".includes(ext)) return "图片"; const suf = ext.toLowerCase()
if ("mp4,3gp,mov,m4v,avi,dat,mkv,flv,vob,rmvb,rm,qlv".includes(ext)) return "视频"; if('jpg,jpeg,png,gif,svg,psd'.includes(suf)) return '图片'
return ext; if('mp4,3gp,mov,m4v,avi,dat,mkv,flv,vob,rmvb,rm,qlv'.includes(suf)) return '视频'
return suf
}, },
preview(row, chapterName) { preview(row, chapterName) {
this.curLink = `${chapterName}${row.name}`; // + this.curLink = `${chapterName}${row.name}`; // +

@ -17,8 +17,8 @@ body {
.video { .video {
position: absolute; position: absolute;
top: 0; top: 0;
left: -500px; left: -20%;
width: 100vw; width: 150%;
// height: 720px; // height: 720px;
} }
.wrap { .wrap {

Loading…
Cancel
Save