Authored by htoooth

remove

... ... @@ -140,10 +140,10 @@ const bind = {
return {code: 201, message: result.message, data: {user: user}};
});
} else if (result.code === 200 && result.data.is_register === 3) {
let nextUrl = helpers.urlFormat('/passport/thirdlogin/relate');
// 关联流程
return {code: 203, message: result.message, data: {next: nextUrl}};
return userService.getUserInfo(area, mobile).then(user => {
return {code: 203, message: result.message, data: {user: user}};
});
} else if (result.code === 506 || result.code === 505) {
return userService.getUserInfo(area, mobile).then(user => {
// 绑定流程:code=506 手机号码注册过,而且该手机号码也已经绑定过该类型第三方
... ...
... ... @@ -133,4 +133,23 @@
<div class="backdrop" style="display:none"></div>
</div>
<div id="norelate" style="display:none">
<div class="mask">
<div class="bindconfrimwrapper">
<div class="topwrapper">
<img src="" alt="" class="userphoto" id="userphoto-relate">
<span class="username">
用户名: <i id="username-relate"></i>
</span>
</div>
<h2 class="usertaginfo">
手机号
<span id="registphone-relate"></span>
已经被以上账户注册。
</h2>
<h1 class="usertagremind">您可以更换一个新的手机号码绑定该账号,也可以使用该手机号码直接登录</h1>
</div>
</div>
</div>
{{> gee-captcha}}
... ...
... ... @@ -381,8 +381,21 @@ function nextStep() {
circleTime($('#mobile').val());
} else if (data.code === 203) {
// 已注册 可关联
$('#bindmobileform').attr('action', data.data.next);
$('#bindmobileform').submit();
$('#registphone-relate').text(mobile);
$('#username-relate').text(username);
if (headImg === '') {
$('#userphoto-relate').attr('src', 'http://img10.static.yhbimg.com/headimg/2013/11/28/09/' +
'01cae078abe5fe320c88cdf4c220212688.gif?imageView/2/w/100/h/100');
} else {
$('#userphoto-relate').attr('src', headImg);
}
$('#norelate .mask').css({
'padding-top': winHeight > 440 ? winHeight / 2 : 217
});
$('#norelate').show();
} else if (data.code === 205) {
// 未注册 不可关联
username = data.data.user.username;
... ...