|
|
|
@ -22,24 +22,27 @@ |
|
|
|
|
距离{{ endList[status] }}还有 |
|
|
|
|
<em>{{ end }}</em> |
|
|
|
|
</p> |
|
|
|
|
<el-dropdown v-if="playingStages.length > 1" |
|
|
|
|
class="m-l-10" |
|
|
|
|
@command="chooseStage"> |
|
|
|
|
<el-button type="primary" |
|
|
|
|
style="background-color: #f96d6d;border: 0;"> |
|
|
|
|
选择竞赛<i class="el-icon-arrow-down el-icon--right"></i> |
|
|
|
|
</el-button> |
|
|
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
|
|
<el-dropdown-item v-for="(item, i) in playingStages" |
|
|
|
|
:key="i" |
|
|
|
|
:command="item">进入{{ item.stageName }}</el-dropdown-item> |
|
|
|
|
</el-dropdown-menu> |
|
|
|
|
</el-dropdown> |
|
|
|
|
<a v-else-if="status != 4 || (status == 4 && curStage)" |
|
|
|
|
class="status" |
|
|
|
|
:class="{wait: status == 0,signing: status == 2,signed: status == 1,playing: status == 4,finish: status == 3 || status == 5}" |
|
|
|
|
:title="statusList[status]" |
|
|
|
|
@click.stop="signup">{{ statusList[status] }}</a> |
|
|
|
|
<div class="m-l-20"> |
|
|
|
|
<p v-if="status && status !== 5" |
|
|
|
|
:class="['sign-status', {signing: status == 2,signed: status == 1,playing: status == 4}]">{{ form.competitionRegistration ? '已报名' : '未报名' }}</p> |
|
|
|
|
<el-dropdown v-if="playingStages.length > 1" |
|
|
|
|
@command="chooseStage"> |
|
|
|
|
<el-button type="primary" |
|
|
|
|
style="background-color: #f96d6d;border: 0;"> |
|
|
|
|
选择竞赛<i class="el-icon-arrow-down el-icon--right"></i> |
|
|
|
|
</el-button> |
|
|
|
|
<el-dropdown-menu slot="dropdown"> |
|
|
|
|
<el-dropdown-item v-for="(item, i) in playingStages" |
|
|
|
|
:key="i" |
|
|
|
|
:command="item">进入{{ item.stageName }}</el-dropdown-item> |
|
|
|
|
</el-dropdown-menu> |
|
|
|
|
</el-dropdown> |
|
|
|
|
<div v-else-if="status != 4 || (status == 4 && curStage)" |
|
|
|
|
class="status" |
|
|
|
|
:class="{wait: status == 0,signing: status == 2,signed: status == 1,playing: status == 4,finish: status == 3 || status == 5}" |
|
|
|
|
:title="statusList[status]" |
|
|
|
|
@click.stop="signup">{{ statusList[status] }}</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="info"> |
|
|
|
@ -644,7 +647,6 @@ |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<!-- :http-request="handleRequest" --> |
|
|
|
|
<div class="flex m-b-20"> |
|
|
|
|
<span class="fs-14">文件上传:</span> |
|
|
|
|
<el-upload :disabled="uploading" |
|
|
|
@ -1382,7 +1384,8 @@ export default { |
|
|
|
|
if (!form.teamId) return util.errorMsg('请选择团队') |
|
|
|
|
if (!form.invitationCode) return util.errorMsg('请输入团队邀请码') |
|
|
|
|
if (this.form.completeCompetitionSetup.isNeedCode && !form.registrationInvitationCode) return util.errorMsg('请输入大赛邀请码') |
|
|
|
|
this.$post(this.api.joinCompetitionTeam, form).then(({ status, data, message }) => { |
|
|
|
|
this.$post(this.api.joinCompetitionTeam, form).then(res => { |
|
|
|
|
this.status = 1 |
|
|
|
|
this.enterVisible = false |
|
|
|
|
this.getData() |
|
|
|
|
util.successMsg('报名成功!') |
|
|
|
@ -1620,6 +1623,7 @@ export default { |
|
|
|
|
type: 'success' |
|
|
|
|
}).then(() => { |
|
|
|
|
this.$post(`${this.api.cancelRegistration}?competitionId=${this.id}`).then(res => { |
|
|
|
|
this.status = 2 |
|
|
|
|
this.$message.success('取消报名成功') |
|
|
|
|
this.getData() |
|
|
|
|
}).catch(res => { }) |
|
|
|
@ -1758,10 +1762,27 @@ export default { |
|
|
|
|
display: inline-flex; |
|
|
|
|
align-items: center; |
|
|
|
|
} |
|
|
|
|
.sign-status { |
|
|
|
|
margin-bottom: 10px; |
|
|
|
|
text-align: center; |
|
|
|
|
font-size: 14px; |
|
|
|
|
color: $main-color; |
|
|
|
|
&.signing { |
|
|
|
|
color: $main-color; |
|
|
|
|
} |
|
|
|
|
&.signed { |
|
|
|
|
color: #52c41a; |
|
|
|
|
} |
|
|
|
|
&.playing { |
|
|
|
|
color: #f96d6d; |
|
|
|
|
} |
|
|
|
|
&:last-child { |
|
|
|
|
margin-bottom: 0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.status { |
|
|
|
|
max-width: 120px; |
|
|
|
|
padding: 0 16px; |
|
|
|
|
margin-left: 20px; |
|
|
|
|
line-height: 34px; |
|
|
|
|
font-size: 14px; |
|
|
|
|
color: #fff; |
|
|
|
|