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
Plain Diff
Browse Files
Authored by
周少峰
8 years ago
Commit
5bcf2c239d4d7ab3809856bf770ecbafccebd37e
2 parents
5092d09a
1ec75e60
Merge branch 'feature/veriCodeInvalid' into release/5.6.1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
apps/passport/controllers/bind.js
public/js/passport/bind/thirdlogin.js
apps/passport/controllers/bind.js
View file @
5bcf2c2
...
...
@@ -189,6 +189,8 @@ const bind = {
let
area
=
req
.
body
.
area
||
'86'
;
let
sourceType
=
req
.
body
.
sourceType
;
req
.
session
.
captchaCount
=
4
;
// 防止用户多次单击下一步,而发送短信
if
(
req
.
session
.
type
!==
'relateStep1'
)
{
return
res
.
json
({
code
:
400
,
message
:
'非法请求'
});
}
...
...
public/js/passport/bind/thirdlogin.js
View file @
5bcf2c2
...
...
@@ -170,6 +170,7 @@ function closeMask() {
$
(
'.backdrop'
).
hide
();
}
});
$
(
document
).
on
(
'click'
,
'#bindconfirm'
,
function
(
e
)
{
$target
=
$
(
e
.
target
);
if
(
$target
.
hasClass
(
'mask'
)
||
$target
.
hasClass
(
'backdrop'
))
{
...
...
@@ -189,6 +190,7 @@ function yohoBindBtn() {
$
(
'#bindconfirm'
).
hide
();
$
(
'.backdrop'
).
hide
();
});
$
(
document
).
on
(
'click'
,
'#yohobindbtn2'
,
function
()
{
$
(
'.phonenum'
).
val
(
''
);
$
(
'#alreayregist'
).
hide
();
...
...
@@ -228,8 +230,6 @@ function circleTime() {
* @return {[type]} [description]
*/
function
sendMessageValidate
()
{
circleTime
(
$
(
'#mobile'
).
val
());
$
(
document
).
on
(
'click'
,
'#sendmessage'
,
function
()
{
if
(
$
(
'#sendmessage'
).
attr
(
'disabled'
)
===
'disabled'
)
{
return
;
...
...
@@ -375,6 +375,9 @@ function nextStep() {
'padding-top'
:
winHeight
>
440
?
winHeight
/
2
:
217
});
$
(
'#alreayregist'
).
show
();
// 201 code send msg
circleTime
(
$
(
'#mobile'
).
val
());
}
else
if
(
data
.
code
===
203
)
{
// 已注册 可关联
$
(
'#bindmobileform'
).
attr
(
'action'
,
data
.
data
.
next
);
...
...
Please
register
or
login
to post a comment