Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
xuqi
9 years ago
Commit
4e3db9a9cf3995552fec3c1990b03418fd005c72
2 parents
d86895c4
f6225736
Merge branch 'develop/wap' of
http://git.dev.yoho.cn/web/yohobuy
into develop/wap
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
25 deletions
static/js/passport/bind/password.js
static/js/passport/bind/password.js
View file @
4e3db9a
...
...
@@ -21,32 +21,32 @@ var nickname = $('#nickname').val(),
areaCode
=
$
(
'#area-code'
).
val
().
replace
(
'+'
,
''
);
function
startBind
(
password
)
{
$
.
ajax
({
url
:
'/passport/bind/bindMobile'
,
type
:
'post'
,
data
:
{
areaCode
:
areaCode
.
replace
(
'+'
,
''
),
phoneNum
:
phoneNum
,
openId
:
openId
,
sourceType
:
sourceType
,
nickname
:
nickname
,
password
:
password
},
success
:
function
(
res
)
{
if
(
res
.
code
===
200
)
{
tip
.
show
(
'登录成功'
);
setTimeout
(
function
()
{
location
.
href
=
res
.
data
.
refer
;
},
2000
);
}
else
{
tip
.
show
(
res
.
message
);
}
},
error
:
function
(
err
)
{
tip
.
show
(
'登录失败,请重试!'
);
$
.
ajax
({
url
:
'/passport/bind/bindMobile'
,
type
:
'post'
,
data
:
{
areaCode
:
areaCode
.
replace
(
'+'
,
''
),
phoneNum
:
phoneNum
,
openId
:
openId
,
sourceType
:
sourceType
,
nickname
:
nickname
,
password
:
password
},
success
:
function
(
res
)
{
if
(
res
.
code
===
200
)
{
tip
.
show
(
'登录成功'
);
setTimeout
(
function
()
{
location
.
href
=
res
.
data
.
refer
;
},
2000
);
}
else
{
tip
.
show
(
res
.
message
);
}
});
}
},
error
:
function
(
err
)
{
tip
.
show
(
'登录失败,请重试!'
);
}
});
}
api
.
bindEyesEvt
({
status
:
'open'
//默认眼睛打开
...
...
Please
register
or
login
to post a comment