From 183453fc0091660c674d8b8e466c189dd0587d50 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Wed, 12 Oct 2022 15:05:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E8=B5=84=E8=AE=AF=E7=AD=89?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 14 +- src/pages/course/details/index.vue | 8 +- src/pages/course/list/index.vue | 4 + src/pages/info/details/index.vue | 2 +- src/pages/info/list/index.vue | 14 +- src/pages/match/list/index.vue | 361 ++++++++++++++-------------- src/pages/screen/index.vue | 7 +- src/pages/station/preview/index.vue | 7 +- src/styles/page/screen.scss | 4 +- 9 files changed, 220 insertions(+), 201 deletions(-) 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 @@