Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsales
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
32cef1c4
authored
Jul 24, 2019
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
f56c8ecc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
dist/js/person/login.js
dist/js/person/register.js
dist/js/person/login.js
View file @
32cef1c4
...
...
@@ -121,7 +121,7 @@
}
//密码长度要大于6位,由数字和字母组成
var
reg
=
/^
[
0-9A-Za-z
]{6,}
$/
;
var
reg
=
/^
(?![
0-9
]
+$
)(?![
a-zA-Z
]
+$
)
[
0-9A-Za-z
]{6,}
$/
;
if
(
!
reg
.
test
(
$password
.
val
())
&&
type
===
1
)
{
...
...
dist/js/person/register.js
View file @
32cef1c4
...
...
@@ -107,13 +107,13 @@
}
//密码长度要大于6位,由数字和字母组成
var
reg
=
/^
[
0-9A-Za-z
]{6,}
$/
;
var
reg
=
/^
(?![
0-9
]
+$
)(?![
a-zA-Z
]
+$
)
[
0-9A-Za-z
]{6,}
$/
;
if
(
!
reg
.
test
(
$password
.
val
())
||
$password
.
length
<
6
)
{
if
(
!
reg
.
test
(
$password
.
val
()))
{
$password
.
parent
().
parent
(
'.input-wrap'
).
addClass
(
'error'
);
$
(
".error-text"
).
show
().
find
(
"span"
).
text
(
'密码
由字母和数字组成,且不能少于6位
'
);
$
(
".error-text"
).
show
().
find
(
"span"
).
text
(
'密码
长度要大于6位,由数字和字母组成
'
);
return
false
;
}
...
...
@@ -283,7 +283,7 @@
$
(
data
.
elem
).
removeClass
(
"layui-btn-disabled"
);
//处理验证码不正确的时候
if
(
res
.
err_code
===
50
0
)
{
if
(
res
.
err_code
===
50
1
)
{
$
(
"#verifiCode"
).
show
();
...
...
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