Commit 9248ab66 by peijy

密码验证 报名超时限制

parent c2ef6744
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -84,8 +84,8 @@ export default { ...@@ -84,8 +84,8 @@ export default {
for (let i = 0; i < this.identifyCode.length; i++) { for (let i = 0; i < this.identifyCode.length; i++) {
this.drawText(ctx, this.identifyCode[i], i) this.drawText(ctx, this.identifyCode[i], i)
} }
this.drawLine(ctx) // this.drawLine(ctx)
this.drawDot(ctx) // this.drawDot(ctx)
}, },
drawText(ctx, txt, i) { drawText(ctx, txt, i) {
ctx.fillStyle = this.randomColor(this.colorMin, this.colorMax) ctx.fillStyle = this.randomColor(this.colorMin, this.colorMax)
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
<el-table-column label="操作" min-width="120"> <el-table-column label="操作" min-width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button <el-button
:disabled="scope.row.currentState == '0' && new Date().getTime() > new Date(scope.row.deadline).getTime()"
size="mini" size="mini"
type="text" type="text"
icon="el-icon-d-arrow-right" icon="el-icon-d-arrow-right"
...@@ -38,7 +39,8 @@ ...@@ -38,7 +39,8 @@
</el-table-column> </el-table-column>
</el-table> </el-table>
</div> </div>
<div style="width: 100%; height: 60px; text-align: center; color: white; font-size: 16px; font-weight: bold; padding-top: 30px; letter-spacing: 2px"> <div
style="width: 100%; height: 60px; text-align: center; color: white; font-size: 16px; font-weight: bold; padding-top: 30px; letter-spacing: 2px">
山东省东营市第二中学 山东省东营市第二中学
</div> </div>
</div> </div>
......
...@@ -128,7 +128,8 @@ export default { ...@@ -128,7 +128,8 @@ export default {
], ],
password: [ password: [
{required: true, trigger: "blur", message: "请输入您的密码"}, {required: true, trigger: "blur", message: "请输入您的密码"},
{min: 5, max: 20, message: '用户密码长度必须介于 5 和 20 之间', trigger: 'blur'} {pattern:/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{6,20}$/, message: '用户密码长度为 6 到 20 个字符,且必须包含字母、数字以及特殊符号', trigger: 'blur'}
], ],
code: [{required: true, trigger: "change", message: "请输入验证码"}, code: [{required: true, trigger: "change", message: "请输入验证码"},
{required: true, validator: validateCode, trigger: "blur"} {required: true, validator: validateCode, trigger: "blur"}
......
...@@ -126,7 +126,8 @@ export default { ...@@ -126,7 +126,8 @@ export default {
], ],
password: [ password: [
{required: true, trigger: "blur", message: "请输入您的密码"}, {required: true, trigger: "blur", message: "请输入您的密码"},
{min: 5, max: 20, message: '用户密码长度必须介于 5 和 20 之间', trigger: 'blur'} {pattern:/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{6,20}$/, message: '用户密码长度为 6 到 20 个字符,且必须包含字母、数字以及特殊符号', trigger: 'blur'}
], ],
confirmPassword: [ confirmPassword: [
{required: true, trigger: "blur", message: "请再次输入您的密码"}, {required: true, trigger: "blur", message: "请再次输入您的密码"},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment