Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dd-art-exam-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqi
dd-art-exam-web
Commits
9248ab66
Commit
9248ab66
authored
Apr 07, 2024
by
peijy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
密码验证 报名超时限制
parent
c2ef6744
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
5 deletions
+9
-5
package-lock.json
+0
-0
src/components/validate.vue
+2
-2
src/views/Entry.vue
+3
-1
src/views/Login.vue
+2
-1
src/views/Register.vue
+2
-1
No files found.
package-lock.json
View file @
9248ab66
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/components/validate.vue
View file @
9248ab66
...
...
@@ -84,8 +84,8 @@ export default {
for
(
let
i
=
0
;
i
<
this
.
identifyCode
.
length
;
i
++
)
{
this
.
drawText
(
ctx
,
this
.
identifyCode
[
i
],
i
)
}
this
.
drawLine
(
ctx
)
this
.
drawDot
(
ctx
)
//
this.drawLine(ctx)
//
this.drawDot(ctx)
},
drawText
(
ctx
,
txt
,
i
)
{
ctx
.
fillStyle
=
this
.
randomColor
(
this
.
colorMin
,
this
.
colorMax
)
...
...
src/views/Entry.vue
View file @
9248ab66
...
...
@@ -28,6 +28,7 @@
<el-table-column
label=
"操作"
min-width=
"120"
>
<
template
slot-scope=
"scope"
>
<el-button
:disabled=
"scope.row.currentState == '0' && new Date().getTime() > new Date(scope.row.deadline).getTime()"
size=
"mini"
type=
"text"
icon=
"el-icon-d-arrow-right"
...
...
@@ -38,7 +39,8 @@
</el-table-column>
</el-table>
</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>
...
...
src/views/Login.vue
View file @
9248ab66
...
...
@@ -128,7 +128,8 @@ export default {
],
password
:
[
{
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
:
"请输入验证码"
},
{
required
:
true
,
validator
:
validateCode
,
trigger
:
"blur"
}
...
...
src/views/Register.vue
View file @
9248ab66
...
...
@@ -126,7 +126,8 @@ export default {
],
password
:
[
{
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
:
[
{
required
:
true
,
trigger
:
"blur"
,
message
:
"请再次输入您的密码"
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment