Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
htoooth
9 years ago
Commit
e0b1feb0fed0e5d58dfe8dcb2aa494506156cf91
1 parent
df2c537e
tips调整,找回密码密码输入
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
14 deletions
apps/passport/views/action/back/reset-pwd.hbs
public/js/passport/back/reset.js
apps/passport/views/action/back/reset-pwd.hbs
View file @
e0b1feb
...
...
@@ -46,10 +46,23 @@
<li
class=
"input-container-li po-re"
>
<input
id=
"pwd"
class=
"input va pwd"
type=
"password"
name=
"pwd"
placeholder=
"新的登录密码"
maxlength=
"20"
>
<div
class=
"tips hide"
>
<div
class=
"triangle"
></div>
<div
class=
"rectangle"
></div>
</div>
</li>
<li
class=
"clearfix"
>
<input
id=
"re-input"
class=
"input va re-input repwd"
type=
"password"
name=
"re-input"
placeholder=
"确认登录密码"
maxlength=
"20"
>
<div
class=
"tips hide"
>
<div
class=
"triangle"
></div>
<div
class=
"rectangle"
></div>
</div>
</li>
<li
class=
"clearfix blank"
>
<input
type=
"hidden"
name=
"code"
value=
"
{{
code
}}
"
>
...
...
public/js/passport/back/reset.js
View file @
e0b1feb
...
...
@@ -16,23 +16,16 @@ var ep = new EventProxy();
var
pwdRegx
=
require
(
'../common/mail-phone-regx'
).
pwdValidateRegx
;
var
$errTip
=
$
(
'.tips'
),
$errMsg
=
$errTip
.
find
(
'.rectangle'
);
function
errTip
(
ele
,
msg
)
{
var
topLeft
=
ele
.
offset
();
var
$errTip
=
ele
.
next
(
'.tips'
);
var
$errMsg
=
$errTip
.
find
(
'.rectangle'
);
$errMsg
.
text
(
msg
);
return
$errTip
.
css
({
top
:
topLeft
.
top
+
ele
.
height
()
-
2
,
left
:
topLeft
.
left
,
width
:
ele
.
width
()
+
2
,
height
:
ele
.
height
}).
removeClass
(
'hide'
);
return
$errTip
.
removeClass
(
'hide'
);
}
function
hideTip
()
{
return
$errTip
.
addClass
(
'hide'
);
function
hideTip
(
ele
)
{
return
ele
.
next
(
'.tips'
).
addClass
(
'hide'
);
}
require
(
'yoho-jquery-placeholder'
);
...
...
@@ -93,12 +86,12 @@ $repasswordInput.on('keyup blur', function() {
ep
.
on
(
'repwd'
,
function
(
repwdAuth
)
{
if
(
repwdAuth
)
{
hideTip
();
hideTip
(
$repasswordInput
);
}
});
ep
.
on
(
'pwd'
,
function
(
pwdAuth
)
{
if
(
pwdAuth
)
{
hideTip
();
hideTip
(
$passwordInput
);
}
});
...
...
Please
register
or
login
to post a comment