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
9e288342ab9b67938c9aa274335c211981a70c30
1 parent
3dc8d089
移除邮箱密码找回。
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
16 deletions
public/js/passport/back/back.js
public/js/passport/back/back.js
View file @
9e28834
...
...
@@ -18,8 +18,7 @@ var $regionCodeText = $('#country-code'),
$nextBtn
=
$
(
'#find-btn'
),
$form
=
$
(
'#back-form'
);
var
emailRegx
=
regx
.
emailRegx
,
phoneRegx
=
regx
.
phoneRegx
;
var
phoneRegx
=
regx
.
phoneRegx
;
var
ep
=
new
EventProxy
();
...
...
@@ -96,7 +95,6 @@ function validatePhoneNumLocal() {
if
(
val
!==
''
)
{
if
(
/^
[
0-9
]
+$/
.
test
(
val
))
{
// 这里只做中国区验证
if
(
$regionCodeText
.
text
()
===
'+86'
)
{
if
(
val
.
length
===
11
&&
phoneRegx
[
'+86'
].
test
(
val
))
{
...
...
@@ -109,12 +107,8 @@ function validatePhoneNumLocal() {
return
true
;
}
else
{
if
(
emailRegx
.
test
(
val
))
{
return
true
;
}
else
{
errTip
(
$phoneNumInput
,
'邮箱格式不正确,请重新输入'
);
return
false
;
}
errTip
(
$phoneNumInput
,
'手机号码不正确,请重新输入'
);
return
false
;
}
}
else
{
errTip
(
$phoneNumInput
,
'请输入帐号'
);
...
...
@@ -224,13 +218,6 @@ function validateImgCaptcha() {
});
}
/**
* 邮箱自动补全
*/
emailAc
(
$phoneNumInput
,
function
()
{
validatePhoneNum
();
});
$imgCaptchaInput
.
attr
(
'maxlength'
,
4
);
// IE8 placeholder
...
...
@@ -277,6 +264,7 @@ exports.init = function() {
}).
on
(
'blur'
,
function
()
{
$phoneNumInput
.
removeClass
(
'focus'
);
$
(
'.phone'
).
removeClass
(
'focus'
);
validatePhoneNum
();
});
$nextBtn
.
on
(
'click'
,
function
()
{
...
...
Please
register
or
login
to post a comment