Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
htoooth
8 years ago
Commit
43354f733a350d7414021c6262bfbcb26d19ed0c
1 parent
6a4f0850
refactor
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
public/js/passport/login/index.js
public/js/passport/login/index.js
View file @
43354f7
...
...
@@ -194,6 +194,9 @@ var AccountLoginData = {
getAccountVal
:
function
()
{
// 这个值没用处只是用来保证登录时接口完整。
return
'uid'
;
},
validateAccountLocal
:
function
()
{
return
$
.
Deferred
().
reject
().
promise
();
// eslint-disable-line
},
// eslint-disable-line
creditableToken
:
getQrCodeVal
,
validate
:
function
()
{
return
$
.
Deferred
().
resolve
().
promise
();
// eslint-disable-line
...
...
@@ -945,21 +948,19 @@ $(document).on('click', function(e) {
/** ************************************************************************/
// 邮箱自动完成后失去焦点:1. 本地验证格式;2.服务器检查用户是否注册;3.检查验证用户次数
// 邮箱自动完成后失去焦点:仅进行本地格式验证格式;
mailAc
(
$accountInput1
,
function
()
{
return
currentLogin
.
validateAccountLocal
().
then
(
function
()
{
return
currentLogin
.
validateAccountAsync
()
.
then
(
authUntilThreeTimesAsync
)
.
then
(
showCaptchaImgPic
);
});
return
currentLogin
.
validateAccountLocal
();
});
// 短信下手机输入框失去焦点:
// 1. 本地验证格式;2.服务器检查用户是否注册;3.始终检查验证用户次数
$accountInput2
.
on
(
'blur'
,
function
()
{
return
currentLogin
.
validateAccountLocal
().
then
(
function
()
{
return
currentLogin
.
validateAccountAsync
()
.
then
(
authUntilThreeTimesAsync
)
.
then
(
showCaptchaImgPic
);
.
always
(
function
()
{
return
authUntilThreeTimesAsync
().
then
(
showCaptchaImgPic
);
});
});
});
...
...
Please
register
or
login
to post a comment