Toggle navigation
Toggle navigation
This project
Loading...
Sign in
wangshusheng
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
whb
9 years ago
Commit
4767eefb060957399b11769c4a944313112267a2
2 parents
2e56bb19
fa9619d9
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
web-static/js/passport/login.js
web-static/sass/passport/_index.scss
web-static/js/passport/login.js
View file @
4767eef
...
...
@@ -179,18 +179,19 @@ $account.on('keyup', function() {
//数字邮箱补全
postfix
=
mailPostfix
.
num
;
matchStr
=
accountMatch
[
1
];
}
else
{
postfix
=
mailPostfix
.
other
;
matchStr
=
account
.
match
(
/@
(
.*
)
/
)[
1
];
}
matchStr
=
accountMatch
[
1
];
for
(
i
=
0
;
i
<
postfix
.
length
;
i
++
)
{
if
(
postfix
[
i
].
indexOf
(
matchStr
)
>
-
1
)
{
html
+=
'<li>'
+
account
.
slice
(
0
,
account
.
indexOf
(
'@'
))
+
'@'
+
postfix
[
i
]
+
'</li>'
;
}
}
if
(
html
!==
''
)
{
if
(
html
!==
''
&&
/.com$/
.
test
(
account
)
===
false
)
{
$emailAutoComplete
.
html
(
html
).
removeClass
(
'hide'
);
}
else
{
...
...
@@ -283,7 +284,7 @@ $('#login-btn').on('click', function() {
location
.
href
=
data
.
data
.
session
;
}
}
else
{
$passwordTip
.
removeClass
(
'hide'
).
children
(
'em'
).
text
(
data
.
message
);
$passwordTip
.
removeClass
(
'hide'
).
children
(
'em'
).
html
(
data
.
message
);
$password
.
addClass
(
'error'
);
}
},
...
...
web-static/sass/passport/_index.scss
View file @
4767eef
...
...
@@ -169,6 +169,11 @@ $tip: sprite-map("passport/tip/*.png", $spacing: 10px);
background
:
sprite
(
$tip
,
error
)
no-repeat
;
margin-right
:
5px
;
}
a
{
text-decoration
:
underline
;
color
:
f00
;
}
}
/*完善信息提示框*/
...
...
Please
register
or
login
to post a comment