iaun vor 5 Jahren
Ursprung
Commit
bf2159b5ed
3 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen
  1. 1 1
      errors.go
  2. 4 4
      static/home.html
  3. 1 1
      static/register.html

+ 1 - 1
errors.go

@@ -17,7 +17,7 @@ const (
 	ERR_WRONG_PASSWORD     = "用户名或密码错误"
 	ERR_USERNAME_LENGTH    = "用户名长度需在1-18位"
 	ERR_PASSWORD_LENGTH    = "密码长度需在6-18位"
-	ERR_KEY                = "暗号不匹配!"
+	ERR_KEY                = "注册码不匹配!"
 
 	// admin
 	ERR_EMPTY_KEY = "验证码不能为空"

+ 4 - 4
static/home.html

@@ -81,7 +81,7 @@
                     <span>提交URL</span>
                 </div>
                 <p style="margin-bottom: 10px;">提交的URL:</p>
-                <el-input @keydown.native.enter="submitSetUrl" v-model="submit.url" placeholder="e.g. http://123.123.123.123/"></el-input>
+                <el-input @keydown.native.enter="submitSetUrl" v-model="submit.url" placeholder="e.g. http://123.123.123.123/" :disabled="submit.submitUrlDelay"></el-input>
                 <p style="margin-top: 20px;">状态:<span :style="'color:'+statusColor+';font-weight:bold;'">{{statusTxt}}</span></p>
                 <p style="margin-top: 20px; word-wrap: break-word; word-break: break-all;" v-show="submit.urlMsg!==''">消息:{{submit.urlMsg}}</p>
                 <el-button style="margin-top: 20px;" type="primary" @click="submitSetUrl" :disabled="submit.submitUrlDelay">提交</el-button>
@@ -92,9 +92,9 @@
                     <span>提交实验账号密码</span>
                 </div>
                 <p style="margin-bottom: 10px;">提交的实验邮箱:</p>
-                <el-input @keydown.native.enter="submitSetKey" v-model="submit.ak" placeholder="e.g. abcdef@ghijk.com"></el-input>
+                <el-input @keydown.native.enter="submitSetKey" v-model="submit.ak" placeholder="e.g. abcdef@ghijk.com" :disabled="submit.submitKeyDelay"></el-input>
                 <p style="margin: 10px 0;">提交的实验密码:</p>
-                <el-input type="password" @keydown.native.enter="submitSetKey" v-model="submit.sk" placeholder="e.g. abcdefABCDEFabcdef"></el-input>
+                <el-input type="password" @keydown.native.enter="submitSetKey" v-model="submit.sk" placeholder="e.g. abcdefABCDEFabcdef" :disabled="submit.submitKeyDelay"></el-input>
                 <el-button style="margin-top: 20px;" type="primary" @click="submitSetKey" :disabled="submit.submitKeyDelay">提交</el-button>
             </el-card>
 
@@ -120,7 +120,7 @@
                 </el-table-column>
                 <el-table-column prop="time" label="首次完成时间" width="180">
                 </el-table-column>
-                <el-table-column prop="fail" label="失败提交次数">
+                <el-table-column prop="fail" label="失败提交次数(不影响成绩)">
                 </el-table-column>
             </el-table>
         </div>

+ 1 - 1
static/register.html

@@ -39,7 +39,7 @@
                 <el-input :disabled="isLoading" minlength="1" maxlength="18" @keydown.native.enter="register" style="margin-top:20px;" v-model="userInfo.name" placeholder="用户名"></el-input>
                 <el-input :disabled="isLoading" minlength="6" maxlength="18" @keydown.native.enter="register" style="margin-top:20px;" v-model="userInfo.password" placeholder="密码" type="password"></el-input>
                 <el-input :disabled="isLoading" minlength="6" maxlength="18" @keydown.native.enter="register" style="margin-top:20px;" v-model="userInfo.password2" placeholder="重复密码" type="password"></el-input>
-                <el-input :disabled="isLoading" minlength="6" maxlength="18" @keydown.native.enter="register" style="margin-top:20px;" v-model="userInfo.key" placeholder="暗号" type="password"></el-input>
+                <el-input :disabled="isLoading" minlength="6" maxlength="18" @keydown.native.enter="register" style="margin-top:20px;" v-model="userInfo.key" placeholder="注册码" type="password"></el-input>
                 <el-button @click="register" style="margin-top:20px;display: block;margin-left: auto;margin-right: auto;" type="primary" plain :loading="isLoading">注册</el-button>
             </el-card>
         </div>