diff --git a/src/api/index.js b/src/api/index.js index 41e8d61..29d9ef8 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -78,16 +78,16 @@ export default { // 线上赛事 notLoggedInBeforeStudentEvents: `occupationlab/occupationlab/enterprise/match/contest/notLoggedInBeforeStudentEvents`, - contestPageConditionQueryByOccupationlabStu: `occupationlab/occupationlab/match/contest/contestPageConditionQueryByOccupationlabStu`, - contestPageConditionQueryByOccupationlab: `occupationlab/occupationlab/match/contest/onlineCompetitionByStudent`, - listOfRegisteredEvents: `occupationlab/occupationlab/match/contest/listOfRegisteredEvents`, - addApplicant: `occupationlab/occupationlab/match/applicant/addApplicant`, // 添加报名人员 - getContestProgress: `occupationlab/occupationlab/match/contest-progress/getContestProgress`, // 根据赛事id查询竞赛进展 - getContest: `occupationlab/occupationlab/match/contest/getContest`, // 根据id查询赛事 + contestPageConditionQueryByOccupationlabStu: `occupationlab/occupationlab/enterprise/match/contest/contestPageConditionQueryByOccupationlabStu`, + contestPageConditionQueryByOccupationlab: `occupationlab/occupationlab/enterprise/match/contest/onlineCompetitionByStudent`, + listOfRegisteredEvents: `occupationlab/occupationlab/enterprise/match/contest/listOfRegisteredEvents`, + addApplicant: `occupationlab/occupationlab/enterprise/match/applicant/addApplicant`, // 添加报名人员 + getContestProgress: `occupationlab/occupationlab/enterprise/match/contest-progress/getContestProgress`, // 根据赛事id查询竞赛进展 + getContest: `occupationlab/occupationlab/enterprise/match/contest/getContest`, // 根据id查询赛事 queryAnnouncementByContestId: `occupationlab/occupationlab/contest/announcement/queryAnnouncementByContestId`, queryAnnouncementDetails: `occupationlab/occupationlab/contest/announcement/queryAnnouncementDetails`, 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文件 diff --git a/src/pages/course/details/index.vue b/src/pages/course/details/index.vue index 12223d0..46a2135 100644 --- a/src/pages/course/details/index.vue +++ b/src/pages/course/details/index.vue @@ -166,9 +166,10 @@ export default { document.body.appendChild(scriptTag); }, transferType(ext){ - if('jpg,jpeg,png,gif,svg,psd'.includes(ext)) return '图片' - if('mp4,3gp,mov,m4v,avi,dat,mkv,flv,vob,rmvb,rm,qlv'.includes(ext)) return '视频' - return ext + const suf = ext.toLowerCase() + if('jpg,jpeg,png,gif,svg,psd'.includes(suf)) return '图片' + if('mp4,3gp,mov,m4v,avi,dat,mkv,flv,vob,rmvb,rm,qlv'.includes(suf)) return '视频' + return suf }, preview(row, chapterName, showConfirm = 1){ // 如果没登录,直接去登录 @@ -248,7 +249,6 @@ export default { }else{ this.showMask2 = false } - console.log(33, res) this.iframeSrc = res.previewUrl }) .catch(err => { diff --git a/src/pages/course/list/index.vue b/src/pages/course/list/index.vue index 47de1bb..3fef552 100644 --- a/src/pages/course/list/index.vue +++ b/src/pages/course/list/index.vue @@ -38,6 +38,10 @@ {{ item.pageviews }} +
+ + {{ item.schoolName }} +
{{ item.courseType == 1 ? '付费' : '免费'}} diff --git a/src/pages/info/details/index.vue b/src/pages/info/details/index.vue index 8461aff..ecb5116 100644 --- a/src/pages/info/details/index.vue +++ b/src/pages/info/details/index.vue @@ -51,7 +51,7 @@ export default { methods: { getData() { this.loadIns = Loading.service() - this.$get(`${this.api.getArticle}/${this.id}`) + this.$get(`${this.api.getArticle}?articleId=${this.id}`) .then(res => { let data = res.article this.coverUrl = data.coverUrl diff --git a/src/pages/info/list/index.vue b/src/pages/info/list/index.vue index 040bb30..6459f39 100644 --- a/src/pages/info/list/index.vue +++ b/src/pages/info/list/index.vue @@ -4,6 +4,7 @@