Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
registration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
13
Issues
13
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
丁伟
registration
Commits
63f4c141
Commit
63f4c141
authored
3 years ago
by
丁伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、修复密码输入正确,错误提示消息
parent
d646c7d7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
src/main/webapp/WEB-INF/jsp/front/reg.jsp
+2
-2
src/main/webapp/resource/front/js/reg.js
+4
-4
No files found.
src/main/webapp/WEB-INF/jsp/front/reg.jsp
View file @
63f4c141
...
@@ -50,12 +50,12 @@
...
@@ -50,12 +50,12 @@
</tr>
</tr>
<tr
id=
"trPassWord"
name=
"password33"
>
<tr
id=
"trPassWord"
name=
"password33"
>
<td
class=
"name"
><span
style=
"color: red;"
>
*
</span><yh:yh
id=
"1_Info_Password"
english=
"Password:"
isnotnull=
"1"
>
密码:
</yh:yh></td>
<td
class=
"name"
><span
style=
"color: red;"
>
*
</span><yh:yh
id=
"1_Info_Password"
english=
"Password:"
isnotnull=
"1"
>
密码:
</yh:yh></td>
<td><input
style=
"width:220px;
height:23px
"
name=
"password"
value=
""
type=
"password"
></td>
<td><input
style=
"width:220px; "
name=
"password"
value=
""
type=
"password"
></td>
<td><span
class=
"reg_body"
>
登录密码必须在6-20位之间
</span></td>
<td><span
class=
"reg_body"
>
登录密码必须在6-20位之间
</span></td>
</tr>
</tr>
<tr
id=
"trRePassWord"
name=
"password2"
>
<tr
id=
"trRePassWord"
name=
"password2"
>
<td
class=
"name"
><span
style=
"color: red;"
>
*
</span><yh:yh
id=
"1_Info_RePassword"
english=
"Re. Password:"
isnotnull=
"1"
>
重复密码:
</yh:yh></td>
<td
class=
"name"
><span
style=
"color: red;"
>
*
</span><yh:yh
id=
"1_Info_RePassword"
english=
"Re. Password:"
isnotnull=
"1"
>
重复密码:
</yh:yh></td>
<td><input
style=
"width:220px;
height:23px
"
name=
"repassword"
value=
""
type=
"password"
></td>
<td><input
style=
"width:220px; "
name=
"repassword"
value=
""
type=
"password"
></td>
<td
class=
"body"
><span
class=
"reg_body"
>
登录密码与重复密码必须一致
</span></td>
<td
class=
"body"
><span
class=
"reg_body"
>
登录密码与重复密码必须一致
</span></td>
</tr>
</tr>
<tr
id=
"trChinaName"
name=
"name"
>
<tr
id=
"trChinaName"
name=
"name"
>
...
...
This diff is collapsed.
Click to expand it.
src/main/webapp/resource/front/js/reg.js
View file @
63f4c141
var
REG
=
function
()
{
var
REG
=
function
()
{
function
showText
(
obj
,
text
)
{
function
showText
(
obj
,
text
)
{
$
(
obj
).
parent
().
parent
().
find
(
"span.reg_body"
).
html
(
text
);
$
(
obj
).
parent
().
parent
().
find
(
"span.reg_body"
).
html
(
"<b style='color:green;'>"
+
text
+
"</b>"
);
}
}
function
showWarning
(
obj
,
text
)
{
function
showWarning
(
obj
,
text
)
{
...
@@ -109,7 +109,7 @@ var REG = function () {
...
@@ -109,7 +109,7 @@ var REG = function () {
if
(
e
.
length
<
6
||
e
.
length
>
20
||
!
new
RegExp
(
"
\
^
\\
w+
\
$"
).
test
(
e
))
{
if
(
e
.
length
<
6
||
e
.
length
>
20
||
!
new
RegExp
(
"
\
^
\\
w+
\
$"
).
test
(
e
))
{
showWarning
(
$
(
this
),
"密码格式不正确(6-20位数字、字母或下划线)"
);
showWarning
(
$
(
this
),
"密码格式不正确(6-20位数字、字母或下划线)"
);
}
else
{
}
else
{
show
Warning
(
$
(
this
),
"√"
);
show
Text
(
$
(
this
),
"√"
);
}
}
});
});
$
(
"[name=repassword]"
).
on
(
"blur"
,
function
()
{
$
(
"[name=repassword]"
).
on
(
"blur"
,
function
()
{
...
@@ -118,8 +118,8 @@ var REG = function () {
...
@@ -118,8 +118,8 @@ var REG = function () {
if
(
e
!=
e2
)
{
if
(
e
!=
e2
)
{
showWarning
(
$
(
this
),
"两次输入密码不一致"
);
showWarning
(
$
(
this
),
"两次输入密码不一致"
);
}
else
{
}
else
{
show
Warning
(
$
(
this
),
"√"
);
show
Text
(
$
(
this
),
"√"
);
show
Warning
(
$
(
"[name=password]"
),
"√"
);
show
Text
(
$
(
"[name=password]"
),
"√"
);
$
(
"[name=password]"
).
blur
();
$
(
"[name=password]"
).
blur
();
}
}
});
});
...
...
This diff is collapsed.
Click to expand it.
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