|
|
@ -5,7 +5,7 @@ |
|
|
|
<breadcrumb ref="breadcrumb" :data="'全部赛事/' + form.name" route="matchPreview"></breadcrumb> |
|
|
|
<breadcrumb ref="breadcrumb" :data="'全部赛事/' + form.name" route="matchPreview"></breadcrumb> |
|
|
|
<div class="match-inner"> |
|
|
|
<div class="match-inner"> |
|
|
|
<div class="flex-between"> |
|
|
|
<div class="flex-between"> |
|
|
|
<el-tabs v-model="curType"> |
|
|
|
<el-tabs v-model="curType" @tab-click="typeChange"> |
|
|
|
<el-tab-pane v-for="(item, index) in typeList" :key="index" :label="item.name" :name="item.id"></el-tab-pane> |
|
|
|
<el-tab-pane v-for="(item, index) in typeList" :key="index" :label="item.name" :name="item.id"></el-tab-pane> |
|
|
|
</el-tabs> |
|
|
|
</el-tabs> |
|
|
|
<div class="status wait">等待报名</div> |
|
|
|
<div class="status wait">等待报名</div> |
|
|
@ -27,6 +27,51 @@ |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
<template v-if="!form.description && (!form.contestAnnexList || !form.contestAnnexList.length )"> |
|
|
|
|
|
|
|
<div class="empty"> |
|
|
|
|
|
|
|
<div> |
|
|
|
|
|
|
|
<img src="@/assets/img/none.png" alt=""> |
|
|
|
|
|
|
|
<p>暂无数据</p> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 进展 --> |
|
|
|
|
|
|
|
<div class="l-title" id="part2"><img src="@/assets/img/label.png" alt=""> 竞赛进展</div> |
|
|
|
|
|
|
|
<ul class="progress" v-if="progress.length"> |
|
|
|
|
|
|
|
<li v-for="(item,index) in progress" :key="index" :class="item.status == 0 ? 'not' : (item.status == 1 ? 'ing' : 'done')"> |
|
|
|
|
|
|
|
<i class="dot"></i> |
|
|
|
|
|
|
|
<p class="name">{{item.title}}</p> |
|
|
|
|
|
|
|
<p class="desc">{{item.description}}</p> |
|
|
|
|
|
|
|
</li> |
|
|
|
|
|
|
|
<img class="rocket" src="@/assets/img/rocket.png" alt=""> |
|
|
|
|
|
|
|
</ul> |
|
|
|
|
|
|
|
<template v-else> |
|
|
|
|
|
|
|
<div class="empty"> |
|
|
|
|
|
|
|
<div> |
|
|
|
|
|
|
|
<img src="@/assets/img/none.png" alt=""> |
|
|
|
|
|
|
|
<p>暂无数据</p> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 公告 --> |
|
|
|
|
|
|
|
<div class="l-title" id="part3"><img src="@/assets/img/label.png" alt=""> 通知公告</div> |
|
|
|
|
|
|
|
<ul class="notice-list" v-if="notices.length"> |
|
|
|
|
|
|
|
<li v-for="(item, i) in notices" :key="i" @click="toNotice(item)"> |
|
|
|
|
|
|
|
<h6>{{ item.announcementTitle }}</h6> |
|
|
|
|
|
|
|
<p class="meta">{{ item.updateTime }}</p> |
|
|
|
|
|
|
|
<div class="des" v-html="item.announcementText"></div> |
|
|
|
|
|
|
|
</li> |
|
|
|
|
|
|
|
</ul> |
|
|
|
|
|
|
|
<template v-else> |
|
|
|
|
|
|
|
<div class="empty"> |
|
|
|
|
|
|
|
<div> |
|
|
|
|
|
|
|
<img src="@/assets/img/none.png" alt=""> |
|
|
|
|
|
|
|
<p>暂无通知公告</p> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -54,7 +99,9 @@ export default { |
|
|
|
name: '通知公告' |
|
|
|
name: '通知公告' |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
], |
|
|
|
form: util.local.get('match') |
|
|
|
form: util.local.get('match'), |
|
|
|
|
|
|
|
progress: [], |
|
|
|
|
|
|
|
notices: [], |
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
components: { |
|
|
|
components: { |
|
|
@ -62,6 +109,10 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
mounted() { |
|
|
|
this.handleAnnex() |
|
|
|
this.handleAnnex() |
|
|
|
|
|
|
|
if (this.form.id) { |
|
|
|
|
|
|
|
this.getProgress() |
|
|
|
|
|
|
|
this.getNotice() |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
// 处理附件 |
|
|
|
// 处理附件 |
|
|
@ -75,6 +126,19 @@ export default { |
|
|
|
this.$forceUpdate() |
|
|
|
this.$forceUpdate() |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
getProgress() { // 获取竞赛进展 |
|
|
|
|
|
|
|
this.$get(this.api.getContestProgress, { |
|
|
|
|
|
|
|
contestId: this.form.id |
|
|
|
|
|
|
|
}).then(res => { |
|
|
|
|
|
|
|
this.progress = res.contestProgressList.reverse() |
|
|
|
|
|
|
|
}).catch(err => {}); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
// 公告列表 |
|
|
|
|
|
|
|
getNotice() { |
|
|
|
|
|
|
|
this.$post(`${this.api.queryAnnouncementByContestId}?pageNum=1&pageSize=1000&contestId=${this.form.id}`).then(({ data }) => { |
|
|
|
|
|
|
|
this.notices = data.records.filter(e => e.status) // 只显示已发布的(status 0草稿 1为已发布) |
|
|
|
|
|
|
|
}).catch(res => {}) |
|
|
|
|
|
|
|
}, |
|
|
|
// 预览附件 |
|
|
|
// 预览附件 |
|
|
|
previewFile(item) { |
|
|
|
previewFile(item) { |
|
|
|
const { filePath } = item |
|
|
|
const { filePath } = item |
|
|
@ -85,13 +149,17 @@ export default { |
|
|
|
download(item) { |
|
|
|
download(item) { |
|
|
|
util.downloadFile(item.fileName, item.filePath) |
|
|
|
util.downloadFile(item.fileName, item.filePath) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
// tab切换 |
|
|
|
|
|
|
|
typeChange() { |
|
|
|
|
|
|
|
document.querySelector(`#part${this.curType}`).scrollIntoView() |
|
|
|
|
|
|
|
}, |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
<style lang="scss" scoped> |
|
|
|
.match { |
|
|
|
.match { |
|
|
|
min-height: 100%; |
|
|
|
padding-bottom: 20px; |
|
|
|
background-color: #F3F6FA; |
|
|
|
background-color: #F3F6FA; |
|
|
|
.banner{ |
|
|
|
.banner{ |
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
@ -178,6 +246,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.files { |
|
|
|
.files { |
|
|
|
|
|
|
|
margin-bottom: 30px; |
|
|
|
li { |
|
|
|
li { |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
|
align-items: center; |
|
|
|
align-items: center; |
|
|
@ -188,5 +257,224 @@ export default { |
|
|
|
font-size: 12px; |
|
|
|
font-size: 12px; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.el-link.el-link--primary { |
|
|
|
|
|
|
|
color: #007EFF !important; |
|
|
|
|
|
|
|
&:after { |
|
|
|
|
|
|
|
border-color: #007EFF; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.progress{ |
|
|
|
|
|
|
|
position: relative; |
|
|
|
|
|
|
|
width: 95%; |
|
|
|
|
|
|
|
padding: 50px 0; |
|
|
|
|
|
|
|
margin: 40px auto 80px; |
|
|
|
|
|
|
|
text-align: left; |
|
|
|
|
|
|
|
&:before{ |
|
|
|
|
|
|
|
content: ''; |
|
|
|
|
|
|
|
position: absolute; |
|
|
|
|
|
|
|
top: 0; |
|
|
|
|
|
|
|
left: 50%; |
|
|
|
|
|
|
|
width: 2px; |
|
|
|
|
|
|
|
height: 100%; |
|
|
|
|
|
|
|
background-color: #E1E6F2; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
&:after { |
|
|
|
|
|
|
|
content: ''; |
|
|
|
|
|
|
|
position: absolute; |
|
|
|
|
|
|
|
top: -10px; |
|
|
|
|
|
|
|
left: 430px; |
|
|
|
|
|
|
|
border: 8px solid transparent; |
|
|
|
|
|
|
|
border-bottom-color: #E1E6F2; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.rocket { |
|
|
|
|
|
|
|
position: absolute; |
|
|
|
|
|
|
|
bottom: -50px; |
|
|
|
|
|
|
|
left: 425px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
li{ |
|
|
|
|
|
|
|
position: relative; |
|
|
|
|
|
|
|
width: 400px; |
|
|
|
|
|
|
|
margin-bottom: 42px; |
|
|
|
|
|
|
|
.dot{ |
|
|
|
|
|
|
|
position: absolute; |
|
|
|
|
|
|
|
top: 12px; |
|
|
|
|
|
|
|
left: 431px; |
|
|
|
|
|
|
|
width: 15px; |
|
|
|
|
|
|
|
height: 15px; |
|
|
|
|
|
|
|
background-color: #DCDCDC; |
|
|
|
|
|
|
|
border-radius: 50%; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.name{ |
|
|
|
|
|
|
|
display: inline-block; |
|
|
|
|
|
|
|
padding: 0 19px; |
|
|
|
|
|
|
|
margin-bottom: 16px; |
|
|
|
|
|
|
|
line-height: 40px; |
|
|
|
|
|
|
|
text-align: center; |
|
|
|
|
|
|
|
font-size: 16px; |
|
|
|
|
|
|
|
color: #fff; |
|
|
|
|
|
|
|
border-radius: 20px; |
|
|
|
|
|
|
|
background-color: #C4C4C4; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.desc{ |
|
|
|
|
|
|
|
position: relative; |
|
|
|
|
|
|
|
color: #333; |
|
|
|
|
|
|
|
font-size: 14px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
&.ing, &.done { |
|
|
|
|
|
|
|
.dot { |
|
|
|
|
|
|
|
top: 8px; |
|
|
|
|
|
|
|
background-color: #007EFF; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.name { |
|
|
|
|
|
|
|
background-color: #007EFF; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
&.ing { |
|
|
|
|
|
|
|
.dot { |
|
|
|
|
|
|
|
width: 27px; |
|
|
|
|
|
|
|
height: 27px; |
|
|
|
|
|
|
|
border: 6px solid #E2F1FB; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
&:nth-child(odd) { |
|
|
|
|
|
|
|
text-align: right; |
|
|
|
|
|
|
|
&.ing { |
|
|
|
|
|
|
|
.dot { |
|
|
|
|
|
|
|
left: auto; |
|
|
|
|
|
|
|
right: -58px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.name { |
|
|
|
|
|
|
|
&:before { |
|
|
|
|
|
|
|
content: ''; |
|
|
|
|
|
|
|
z-index: 2; |
|
|
|
|
|
|
|
position: absolute; |
|
|
|
|
|
|
|
top: 14px; |
|
|
|
|
|
|
|
right: -35px; |
|
|
|
|
|
|
|
border: 18px solid transparent; |
|
|
|
|
|
|
|
border-top-width: 6px; |
|
|
|
|
|
|
|
border-bottom-width: 6px; |
|
|
|
|
|
|
|
border-left-color: #C4C4C4; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.desc { |
|
|
|
|
|
|
|
text-align: right; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
&.ing, &.done { |
|
|
|
|
|
|
|
.name { |
|
|
|
|
|
|
|
&:before { |
|
|
|
|
|
|
|
border-left-color: #007EFF; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
&:nth-child(even) { |
|
|
|
|
|
|
|
margin-left: 482px; |
|
|
|
|
|
|
|
.dot { |
|
|
|
|
|
|
|
left: -51px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
&.ing { |
|
|
|
|
|
|
|
.dot { |
|
|
|
|
|
|
|
left: -57px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.name { |
|
|
|
|
|
|
|
text-align: left; |
|
|
|
|
|
|
|
&:after { |
|
|
|
|
|
|
|
content: ''; |
|
|
|
|
|
|
|
z-index: 2; |
|
|
|
|
|
|
|
position: absolute; |
|
|
|
|
|
|
|
top: 14px; |
|
|
|
|
|
|
|
left: -35px; |
|
|
|
|
|
|
|
border: 18px solid transparent; |
|
|
|
|
|
|
|
border-top-width: 6px; |
|
|
|
|
|
|
|
border-bottom-width: 6px; |
|
|
|
|
|
|
|
border-right-color: #C4C4C4; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.desc { |
|
|
|
|
|
|
|
&:before { |
|
|
|
|
|
|
|
left: auto; |
|
|
|
|
|
|
|
right: -16px; |
|
|
|
|
|
|
|
border: 8px solid transparent; |
|
|
|
|
|
|
|
border-left-color: #fff; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
&:after { |
|
|
|
|
|
|
|
left: auto; |
|
|
|
|
|
|
|
right: -18px; |
|
|
|
|
|
|
|
border: 9px solid transparent; |
|
|
|
|
|
|
|
border-left-color: #E6E6E6; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&.ing, &.done { |
|
|
|
|
|
|
|
.name { |
|
|
|
|
|
|
|
&:after { |
|
|
|
|
|
|
|
border-right-color: #007EFF; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
&:last-child{ |
|
|
|
|
|
|
|
margin-bottom: 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.notice-list { |
|
|
|
|
|
|
|
text-align: left; |
|
|
|
|
|
|
|
li { |
|
|
|
|
|
|
|
padding: 16px; |
|
|
|
|
|
|
|
margin-bottom: 12px; |
|
|
|
|
|
|
|
transition: all 0.3s; |
|
|
|
|
|
|
|
cursor: pointer; |
|
|
|
|
|
|
|
border-radius: 6px; |
|
|
|
|
|
|
|
background-color: #fff; |
|
|
|
|
|
|
|
border-bottom: 1px dashed #ebebeb; |
|
|
|
|
|
|
|
&:last-child { |
|
|
|
|
|
|
|
border-bottom: 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
h6 { |
|
|
|
|
|
|
|
font-size: 20px; |
|
|
|
|
|
|
|
font-weight: 500; |
|
|
|
|
|
|
|
color: #0B1D30; |
|
|
|
|
|
|
|
&:hover { |
|
|
|
|
|
|
|
color: #007EFF; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.meta { |
|
|
|
|
|
|
|
margin: 10px 0; |
|
|
|
|
|
|
|
font-size: 14px; |
|
|
|
|
|
|
|
color: #666; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.des { |
|
|
|
|
|
|
|
font-size: 14px; |
|
|
|
|
|
|
|
color: #333; |
|
|
|
|
|
|
|
line-height: 24px; |
|
|
|
|
|
|
|
display: -webkit-box; |
|
|
|
|
|
|
|
display:-moz-box; |
|
|
|
|
|
|
|
-webkit-box-orient: vertical; |
|
|
|
|
|
|
|
-moz-box-orient: vertical; |
|
|
|
|
|
|
|
-webkit-line-clamp: 2; |
|
|
|
|
|
|
|
-moz-line-clamp: 2; |
|
|
|
|
|
|
|
overflow: hidden; |
|
|
|
|
|
|
|
text-overflow: ellipsis; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.empty{ |
|
|
|
|
|
|
|
display: flex; |
|
|
|
|
|
|
|
justify-content: center; |
|
|
|
|
|
|
|
align-items: center; |
|
|
|
|
|
|
|
padding: 50px 0; |
|
|
|
|
|
|
|
text-align: center; |
|
|
|
|
|
|
|
img{ |
|
|
|
|
|
|
|
width: 471px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
p{ |
|
|
|
|
|
|
|
margin-top: 40px; |
|
|
|
|
|
|
|
font-size: 18px; |
|
|
|
|
|
|
|
color: rgba(0, 0, 0, 0.25); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |