|
|
@ -1,12 +1,19 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<div class="match"> |
|
|
|
<div class="match"> |
|
|
|
<div class="banner" :style="{backgroundImage: 'url(' + (form.carouselUrl || 'https://huoran.oss-cn-shenzhen.aliyuncs.com/20220613/png/1536269450851409920.png') + ')'}"></div> |
|
|
|
<div class="banner" |
|
|
|
|
|
|
|
:style="{backgroundImage: 'url(' + (form.carouselUrl || 'https://huoran.oss-cn-shenzhen.aliyuncs.com/20220613/png/1536269450851409920.png') + ')'}"></div> |
|
|
|
<div class="center"> |
|
|
|
<div class="center"> |
|
|
|
<breadcrumb ref="breadcrumb" :data="'全部赛事/' + form.name" route="matchPreview"></breadcrumb> |
|
|
|
<breadcrumb ref="breadcrumb" |
|
|
|
|
|
|
|
:data="'全部赛事/' + form.name" |
|
|
|
|
|
|
|
route="match"></breadcrumb> |
|
|
|
<div class="match-inner"> |
|
|
|
<div class="match-inner"> |
|
|
|
<div class="flex-between"> |
|
|
|
<div class="flex-between"> |
|
|
|
<el-tabs v-model="curType" @tab-click="typeChange"> |
|
|
|
<el-tabs v-model="curType" |
|
|
|
<el-tab-pane v-for="(item, index) in typeList" :key="index" :label="item.name" :name="item.id"></el-tab-pane> |
|
|
|
@tab-click="typeChange"> |
|
|
|
|
|
|
|
<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> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -15,31 +22,46 @@ |
|
|
|
<div class="meta">最近编辑时间:{{ form.updateTime }}</div> |
|
|
|
<div class="meta">最近编辑时间:{{ form.updateTime }}</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="l-title" id="part1"><img src="@/assets/img/label.png" alt=""> 竞赛信息</div> |
|
|
|
<div class="l-title" |
|
|
|
<div v-if="form.description" class="texts ql-editor" v-html="form.description"></div> |
|
|
|
id="part1"><img src="@/assets/img/label.png" |
|
|
|
|
|
|
|
alt=""> 竞赛信息</div> |
|
|
|
|
|
|
|
<div v-if="form.description" |
|
|
|
|
|
|
|
class="texts ql-editor" |
|
|
|
|
|
|
|
v-html="form.description"></div> |
|
|
|
<template v-if="form.competitionAnnexList && form.competitionAnnexList.length"> |
|
|
|
<template v-if="form.competitionAnnexList && form.competitionAnnexList.length"> |
|
|
|
<h6 class="p-title">附件下载</h6> |
|
|
|
<h6 class="p-title">附件下载</h6> |
|
|
|
<ul class="files"> |
|
|
|
<ul class="files"> |
|
|
|
<li v-for="(item, i) in form.competitionAnnexList" :key="i"> |
|
|
|
<li v-for="(item, i) in form.competitionAnnexList" |
|
|
|
<el-link v-if="item.canPreview" class="m-r-10" type="primary" @click="previewFile(item)">{{ item.fileName }}</el-link> |
|
|
|
:key="i"> |
|
|
|
<span v-else class="file-name">{{ item.fileName }}</span> |
|
|
|
<el-link v-if="item.canPreview" |
|
|
|
<el-link type="primary" :underline="false" @click="download(item)">下载</el-link> |
|
|
|
class="m-r-10" |
|
|
|
|
|
|
|
type="primary" |
|
|
|
|
|
|
|
@click="previewFile(item)">{{ item.fileName }}</el-link> |
|
|
|
|
|
|
|
<span v-else |
|
|
|
|
|
|
|
class="file-name">{{ item.fileName }}</span> |
|
|
|
|
|
|
|
<el-link type="primary" |
|
|
|
|
|
|
|
:underline="false" |
|
|
|
|
|
|
|
@click="download(item)">下载</el-link> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template v-if="!form.description && (!form.competitionAnnexList || !form.competitionAnnexList.length )"> |
|
|
|
<template v-if="!form.description && (!form.competitionAnnexList || !form.competitionAnnexList.length )"> |
|
|
|
<div class="empty"> |
|
|
|
<div class="empty"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<img src="@/assets/img/none.png" alt=""> |
|
|
|
<img src="@/assets/img/none.png" |
|
|
|
|
|
|
|
alt=""> |
|
|
|
<p>暂无数据</p> |
|
|
|
<p>暂无数据</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template v-if="form.releaseType"> |
|
|
|
<template v-if="form.releaseType"> |
|
|
|
<div class="l-title"><img src="@/assets/img/label.png" alt=""> 赛程、规则与内容</div> |
|
|
|
<div class="l-title"><img src="@/assets/img/label.png" |
|
|
|
|
|
|
|
alt=""> 赛程、规则与内容</div> |
|
|
|
<h6 class="rule-title">共{{ form.competitionStage.length }}个竞赛阶段,同一个团队每个成员只能参加一个阶段赛项</h6> |
|
|
|
<h6 class="rule-title">共{{ form.competitionStage.length }}个竞赛阶段,同一个团队每个成员只能参加一个阶段赛项</h6> |
|
|
|
<div v-for="(rule, i) in form.competitionStage" :key="i" class="rule"> |
|
|
|
<div v-for="(rule, i) in form.competitionStage" |
|
|
|
|
|
|
|
:key="i" |
|
|
|
|
|
|
|
class="rule"> |
|
|
|
<p style="font-size: 16px;color: #333;">{{ rule.stageName }}</p> |
|
|
|
<p style="font-size: 16px;color: #333;">{{ rule.stageName }}</p> |
|
|
|
<p>比赛时间:{{ rule.startTime && rule.startTime + ' ~ ' + rule.endTime }}</p> |
|
|
|
<p>比赛时间:{{ rule.startTime && rule.startTime + ' ~ ' + rule.endTime }}</p> |
|
|
|
<p>比赛方式:{{ methods.find(e => e.id == rule.method) && methods.find(e => e.id == rule.method).name }}</p> |
|
|
|
<p>比赛方式:{{ methods.find(e => e.id == rule.method) && methods.find(e => e.id == rule.method).name }}</p> |
|
|
@ -57,7 +79,8 @@ |
|
|
|
<p>团队成绩计算方式:{{ teamCalculationMethods.find(e => e.id == rule.teamCalculationMethod) && teamCalculationMethods.find(e => e.id == rule.teamCalculationMethod).name }}</p> |
|
|
|
<p>团队成绩计算方式:{{ teamCalculationMethods.find(e => e.id == rule.teamCalculationMethod) && teamCalculationMethods.find(e => e.id == rule.teamCalculationMethod).name }}</p> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<p>阶段比赛结束后{{ rule.resultAnnouncementTime }}小时,公布阶段比赛成绩。</p> |
|
|
|
<p>阶段比赛结束后{{ rule.resultAnnouncementTime }}小时,公布阶段比赛成绩。</p> |
|
|
|
<div v-if="form.rule === 1" class="flex"> |
|
|
|
<div v-if="form.rule === 1" |
|
|
|
|
|
|
|
class="flex"> |
|
|
|
<p>晋级规则:</p> |
|
|
|
<p>晋级规则:</p> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<p v-if="rule.peopleLimit">本阶段成绩排名前{{ rule.peopleLimit }}队,可晋级下一阶段比赛</p> |
|
|
|
<p v-if="rule.peopleLimit">本阶段成绩排名前{{ rule.peopleLimit }}队,可晋级下一阶段比赛</p> |
|
|
@ -69,37 +92,52 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 进展 --> |
|
|
|
<!-- 进展 --> |
|
|
|
<div class="l-title" id="part2"><img src="@/assets/img/label.png" alt=""> 竞赛进展</div> |
|
|
|
<div class="l-title" |
|
|
|
<ul class="progress" v-if="progress.length"> |
|
|
|
id="part2"><img src="@/assets/img/label.png" |
|
|
|
<li v-for="(item,index) in progress" :key="index" :class="item.status == 0 ? 'not' : (item.status == 1 ? 'ing' : 'done')"> |
|
|
|
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> |
|
|
|
<i class="dot"></i> |
|
|
|
<p class="name">{{item.title}}</p> |
|
|
|
<p class="name">{{item.title}}</p> |
|
|
|
<p class="desc">{{item.description}}</p> |
|
|
|
<p class="desc">{{item.description}}</p> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
<img class="rocket" src="@/assets/img/rocket.png" alt=""> |
|
|
|
<img class="rocket" |
|
|
|
|
|
|
|
src="@/assets/img/rocket.png" |
|
|
|
|
|
|
|
alt=""> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
<template v-else> |
|
|
|
<template v-else> |
|
|
|
<div class="empty"> |
|
|
|
<div class="empty"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<img src="@/assets/img/none.png" alt=""> |
|
|
|
<img src="@/assets/img/none.png" |
|
|
|
|
|
|
|
alt=""> |
|
|
|
<p>暂无数据</p> |
|
|
|
<p>暂无数据</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 公告 --> |
|
|
|
<!-- 公告 --> |
|
|
|
<div class="l-title" id="part3"><img src="@/assets/img/label.png" alt=""> 通知公告</div> |
|
|
|
<div class="l-title" |
|
|
|
<ul class="notice-list" v-if="notices.length"> |
|
|
|
id="part3"><img src="@/assets/img/label.png" |
|
|
|
<li v-for="(item, i) in notices" :key="i" @click="toNotice(item)"> |
|
|
|
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> |
|
|
|
<h6>{{ item.announcementTitle }}</h6> |
|
|
|
<p class="meta">{{ item.updateTime }}</p> |
|
|
|
<p class="meta">{{ item.updateTime }}</p> |
|
|
|
<div class="des" v-html="item.announcementText"></div> |
|
|
|
<div class="des" |
|
|
|
|
|
|
|
v-html="item.announcementText"></div> |
|
|
|
</li> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
</ul> |
|
|
|
<template v-else> |
|
|
|
<template v-else> |
|
|
|
<div class="empty"> |
|
|
|
<div class="empty"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<img src="@/assets/img/none.png" alt=""> |
|
|
|
<img src="@/assets/img/none.png" |
|
|
|
|
|
|
|
alt=""> |
|
|
|
<p>暂无通知公告</p> |
|
|
|
<p>暂无通知公告</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -200,7 +238,7 @@ export default { |
|
|
|
<style lang="scss" scoped> |
|
|
|
<style lang="scss" scoped> |
|
|
|
.match { |
|
|
|
.match { |
|
|
|
padding-bottom: 20px; |
|
|
|
padding-bottom: 20px; |
|
|
|
background-color: #F3F6FA; |
|
|
|
background-color: #f3f6fa; |
|
|
|
.banner { |
|
|
|
.banner { |
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
|
height: 350px; |
|
|
|
height: 350px; |
|
|
@ -220,15 +258,16 @@ export default { |
|
|
|
box-sizing: border-box; |
|
|
|
box-sizing: border-box; |
|
|
|
} |
|
|
|
} |
|
|
|
/deep/.el-tabs { |
|
|
|
/deep/.el-tabs { |
|
|
|
.el-tabs__item.is-active, .el-tabs__item:hover { |
|
|
|
.el-tabs__item.is-active, |
|
|
|
color: #007EFF; |
|
|
|
.el-tabs__item:hover { |
|
|
|
|
|
|
|
color: #007eff; |
|
|
|
} |
|
|
|
} |
|
|
|
.el-tabs__active-bar { |
|
|
|
.el-tabs__active-bar { |
|
|
|
background-color: #007EFF; |
|
|
|
background-color: #007eff; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.p-title { |
|
|
|
.p-title { |
|
|
|
border-left-color: #007EFF; |
|
|
|
border-left-color: #007eff; |
|
|
|
} |
|
|
|
} |
|
|
|
.l-title { |
|
|
|
.l-title { |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
@ -246,17 +285,17 @@ export default { |
|
|
|
line-height: 34px; |
|
|
|
line-height: 34px; |
|
|
|
font-size: 14px; |
|
|
|
font-size: 14px; |
|
|
|
color: #fff; |
|
|
|
color: #fff; |
|
|
|
background-color: #52C41A; |
|
|
|
background-color: #52c41a; |
|
|
|
border-radius: 4px; |
|
|
|
border-radius: 4px; |
|
|
|
cursor: pointer; |
|
|
|
cursor: pointer; |
|
|
|
&.wait { |
|
|
|
&.wait { |
|
|
|
background-color: #FAAD14; |
|
|
|
background-color: #faad14; |
|
|
|
} |
|
|
|
} |
|
|
|
&.signing { |
|
|
|
&.signing { |
|
|
|
background-color: #007EFF; |
|
|
|
background-color: #007eff; |
|
|
|
} |
|
|
|
} |
|
|
|
&.signed { |
|
|
|
&.signed { |
|
|
|
background-color: #52C41A; |
|
|
|
background-color: #52c41a; |
|
|
|
} |
|
|
|
} |
|
|
|
&.finish { |
|
|
|
&.finish { |
|
|
|
background-color: #ccc; |
|
|
|
background-color: #ccc; |
|
|
@ -267,7 +306,7 @@ export default { |
|
|
|
margin: 0 auto; |
|
|
|
margin: 0 auto; |
|
|
|
font-size: 28px; |
|
|
|
font-size: 28px; |
|
|
|
text-align: center; |
|
|
|
text-align: center; |
|
|
|
color: #0B1D30; |
|
|
|
color: #0b1d30; |
|
|
|
} |
|
|
|
} |
|
|
|
.info .meta { |
|
|
|
.info .meta { |
|
|
|
padding: 16px 0; |
|
|
|
padding: 16px 0; |
|
|
@ -298,9 +337,9 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.el-link.el-link--primary { |
|
|
|
.el-link.el-link--primary { |
|
|
|
color: #007EFF !important; |
|
|
|
color: #007eff !important; |
|
|
|
&:after { |
|
|
|
&:after { |
|
|
|
border-color: #007EFF; |
|
|
|
border-color: #007eff; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -317,7 +356,7 @@ export default { |
|
|
|
left: 50%; |
|
|
|
left: 50%; |
|
|
|
width: 2px; |
|
|
|
width: 2px; |
|
|
|
height: 100%; |
|
|
|
height: 100%; |
|
|
|
background-color: #E1E6F2; |
|
|
|
background-color: #e1e6f2; |
|
|
|
} |
|
|
|
} |
|
|
|
&:after { |
|
|
|
&:after { |
|
|
|
content: ''; |
|
|
|
content: ''; |
|
|
@ -325,7 +364,7 @@ export default { |
|
|
|
top: -10px; |
|
|
|
top: -10px; |
|
|
|
left: 430px; |
|
|
|
left: 430px; |
|
|
|
border: 8px solid transparent; |
|
|
|
border: 8px solid transparent; |
|
|
|
border-bottom-color: #E1E6F2; |
|
|
|
border-bottom-color: #e1e6f2; |
|
|
|
} |
|
|
|
} |
|
|
|
.rocket { |
|
|
|
.rocket { |
|
|
|
position: absolute; |
|
|
|
position: absolute; |
|
|
@ -342,7 +381,7 @@ export default { |
|
|
|
left: 431px; |
|
|
|
left: 431px; |
|
|
|
width: 15px; |
|
|
|
width: 15px; |
|
|
|
height: 15px; |
|
|
|
height: 15px; |
|
|
|
background-color: #DCDCDC; |
|
|
|
background-color: #dcdcdc; |
|
|
|
border-radius: 50%; |
|
|
|
border-radius: 50%; |
|
|
|
} |
|
|
|
} |
|
|
|
.name { |
|
|
|
.name { |
|
|
@ -354,27 +393,28 @@ export default { |
|
|
|
font-size: 16px; |
|
|
|
font-size: 16px; |
|
|
|
color: #fff; |
|
|
|
color: #fff; |
|
|
|
border-radius: 20px; |
|
|
|
border-radius: 20px; |
|
|
|
background-color: #C4C4C4; |
|
|
|
background-color: #c4c4c4; |
|
|
|
} |
|
|
|
} |
|
|
|
.desc { |
|
|
|
.desc { |
|
|
|
position: relative; |
|
|
|
position: relative; |
|
|
|
color: #333; |
|
|
|
color: #333; |
|
|
|
font-size: 14px; |
|
|
|
font-size: 14px; |
|
|
|
} |
|
|
|
} |
|
|
|
&.ing, &.done { |
|
|
|
&.ing, |
|
|
|
|
|
|
|
&.done { |
|
|
|
.dot { |
|
|
|
.dot { |
|
|
|
top: 8px; |
|
|
|
top: 8px; |
|
|
|
background-color: #007EFF; |
|
|
|
background-color: #007eff; |
|
|
|
} |
|
|
|
} |
|
|
|
.name { |
|
|
|
.name { |
|
|
|
background-color: #007EFF; |
|
|
|
background-color: #007eff; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
&.ing { |
|
|
|
&.ing { |
|
|
|
.dot { |
|
|
|
.dot { |
|
|
|
width: 27px; |
|
|
|
width: 27px; |
|
|
|
height: 27px; |
|
|
|
height: 27px; |
|
|
|
border: 6px solid #E2F1FB; |
|
|
|
border: 6px solid #e2f1fb; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
&:nth-child(odd) { |
|
|
|
&:nth-child(odd) { |
|
|
@ -395,16 +435,17 @@ export default { |
|
|
|
border: 18px solid transparent; |
|
|
|
border: 18px solid transparent; |
|
|
|
border-top-width: 6px; |
|
|
|
border-top-width: 6px; |
|
|
|
border-bottom-width: 6px; |
|
|
|
border-bottom-width: 6px; |
|
|
|
border-left-color: #C4C4C4; |
|
|
|
border-left-color: #c4c4c4; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.desc { |
|
|
|
.desc { |
|
|
|
text-align: right; |
|
|
|
text-align: right; |
|
|
|
} |
|
|
|
} |
|
|
|
&.ing, &.done { |
|
|
|
&.ing, |
|
|
|
|
|
|
|
&.done { |
|
|
|
.name { |
|
|
|
.name { |
|
|
|
&:before { |
|
|
|
&:before { |
|
|
|
border-left-color: #007EFF; |
|
|
|
border-left-color: #007eff; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -430,7 +471,7 @@ export default { |
|
|
|
border: 18px solid transparent; |
|
|
|
border: 18px solid transparent; |
|
|
|
border-top-width: 6px; |
|
|
|
border-top-width: 6px; |
|
|
|
border-bottom-width: 6px; |
|
|
|
border-bottom-width: 6px; |
|
|
|
border-right-color: #C4C4C4; |
|
|
|
border-right-color: #c4c4c4; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.desc { |
|
|
|
.desc { |
|
|
@ -444,14 +485,15 @@ export default { |
|
|
|
left: auto; |
|
|
|
left: auto; |
|
|
|
right: -18px; |
|
|
|
right: -18px; |
|
|
|
border: 9px solid transparent; |
|
|
|
border: 9px solid transparent; |
|
|
|
border-left-color: #E6E6E6; |
|
|
|
border-left-color: #e6e6e6; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
&.ing, &.done { |
|
|
|
&.ing, |
|
|
|
|
|
|
|
&.done { |
|
|
|
.name { |
|
|
|
.name { |
|
|
|
&:after { |
|
|
|
&:after { |
|
|
|
border-right-color: #007EFF; |
|
|
|
border-right-color: #007eff; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -478,9 +520,9 @@ export default { |
|
|
|
h6 { |
|
|
|
h6 { |
|
|
|
font-size: 20px; |
|
|
|
font-size: 20px; |
|
|
|
font-weight: 500; |
|
|
|
font-weight: 500; |
|
|
|
color: #0B1D30; |
|
|
|
color: #0b1d30; |
|
|
|
&:hover { |
|
|
|
&:hover { |
|
|
|
color: #007EFF; |
|
|
|
color: #007eff; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.meta { |
|
|
|
.meta { |
|
|
|