-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Don't show score & rank for suspicious - Handle cases when suspicious_words is empty
- Loading branch information
Showing
1 changed file
with
9 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,7 +49,7 @@ | |
<a href="/announcements/">查看所有公告</a> | ||
</div> | ||
<div v-if="user.group==='suspicious'" class="msg-error"> | ||
经裁判组检查,你的账号有以下疑似违规行为:{{ user.suspicious_reason }},因此取消排名资格。你仍可继续完成题目。 | ||
经裁判组检查,你的账号{{ suspicious_words }},因此取消排名资格。你仍可继续完成题目。 | ||
如果你有异议,请尽快联系 <a href="mailto:[email protected]">[email protected]</a>, | ||
提供你的 Token 以及申诉理由。 | ||
</div> | ||
|
@@ -59,7 +59,7 @@ | |
<input v-show="token_show" type="text" id="token" :value="user.token" readonly> | ||
<button onclick="token_copy()">{{ token_copy_text }}</button> | ||
Token 是一些题目的登录凭证,禁止分享,否则视为作弊 | ||
<template v-if="progress.scores.find(i=>i.category===null)"> | ||
<template v-if="progress.scores.find(i=>i.category===null) && user.group!=='suspicious'"> | ||
<a href="/board/"> | ||
<br> | ||
当前分数:{{ (progress.scores.find(i=>i.category===null)||{score:0}).score }}, | ||
|
@@ -217,6 +217,13 @@ <h1>{{ opened.name }}</h1> | |
categories() { | ||
return [...new Set(this.challenges.map(i => i.category))].sort(); | ||
}, | ||
suspicious_words() { | ||
if (this.user && this.user.suspicious_reason) { | ||
return "有以下疑似违规行为:" + this.user.suspicious_reason; | ||
} else { | ||
return "存在违规行为"; | ||
} | ||
} | ||
}, | ||
methods: { | ||
open(challenge) { | ||
|