Authored by wangqing

增加绑定成功和已经绑定的提示

{{> layout/simple-header}}
<div class="bindsuccesswrapper">
<div class="successwrapper">
<span class="successtag"></span>
<span class="congratulation">恭喜!</span>
<span class="successnotify">您的号码已经绑定成功</span>
</div>
<h3 class="info">今后您可以选择微信或绑定的手机号码+密码的方式登录此账户</h3>
<a href="" class="yohobindbtn gobuynow">立即购物</a>
</div>
{{> layout/footer}}
\ No newline at end of file
... ...
... ... @@ -20,10 +20,8 @@
</div>
<div class="optionslist hide">
{{#each region}}
<div class="optionitem" areanum="{{areaCode}}">{{name}}
</div>
<div class="optionitem" areanum="{{areaCode}}">{{name}}</div>
{{/each}}
</div>
</div>
</div>
... ... @@ -51,4 +49,36 @@
<a href="javascript:void(0)" class="yohobindbtn" id="bindfirststep">下一步</a>
</div>
</div>
<div id="alreayregist" style="display:none">
<div class="mask">
<div class="bindconfrimwrapper">
<div class="topwrapper">
<img src="../img/yohofamily.png" alt="" class="userphoto">
<span class="username">用户名:潮男型范</span>
</div>
<h2 class="usertaginfo">手机号1519595959已经被以上账户注册,请确认是否归您本人所有</h2>
<h1 class="usertagremind">您可以绑定该手机号码或更换一个新的手机号码绑定该账号,也可以使用该手机号码直接登录</h1>
<div class="gobindwrapper">
<div class="validaterow">
<div class="content">
<input type="text" class="validatacode" placeholder="验证码"/>
</div>
<div class="validatewrapper">
<a href="javascript:void(0)" class="yohobindbtn" id="sendmessage">免费获取短信验证码</a>
</div>
<div class="hide" id="nopermissionmessage">
<span class="second">60</span>
秒后可重新操作
</div>
</div>
<a href="" class="yohobindbtn myphone">是的我绑定该手机号</a>
</div>
<div class="gobindbottomwrapper">
<a href="" class="logindirectly">绑定其他手机号</a>
<a href="" class="logindirectly">使用手机号直接登录</a>
</div>
</div>
</div>
<div class="backdrop"></div>
</div>
{{> layout/footer}}
\ No newline at end of file
... ...
... ... @@ -145,7 +145,6 @@
</div>
</div>
</div>
{{/headerdata}}
<div id="goodcartempwarpper">
<script type="text/html" id="mini-cart-tpl">
\{\{#carData\}\}
... ... @@ -363,3 +362,5 @@
</div>
</script>
</div>
{{/headerdata}}
... ...
... ... @@ -778,7 +778,6 @@ function actionTipPic() {
function closeCover() {
var $cover = $('#cover');
... ... @@ -1326,11 +1325,13 @@ function actionExeTemplate() {
var $goodcartempwarpper = $('#goodcartempwarpper');
var resulthtml = '';
if ($goodcartempwarpper && $goodcartempwarpper.html()) {
if ($goodcartempwarpper) {
if ($goodcartempwarpper.html()) {
resulthtml = $('#goodcartempwarpper').html().replace(/\\/g, '');
$('#goodcartempwarpper').html(resulthtml);
vipInfoCombine = handlebars.compile($('#tmpl-my-login-new').html());
}
}
}
/**
* 执行搜索
... ... @@ -1512,7 +1513,7 @@ function init() {
actionListenCartMore(); //
actionLoginInfo(); //获取登录信息
actionCover(); //初次登录弹框
actionAddKeyWords();//增加关键字
actionAddKeyWords(); //增加关键字
}
init();
\ No newline at end of file
... ...
... ... @@ -17,7 +17,7 @@ function chooseProtocol() {
});
}
})
});
}
function chooseAreaToogle() {
... ... @@ -29,12 +29,18 @@ function chooseAreaToogle() {
function cancelChooseArea() {
$(document).on('click', 'body', function(e) {
var $target = $(e.target);
if ($target.hasClass('yohoselectarea') || $target.hasClass('yohoselectarea') || $target.hasClass('areaname') || $target.hasClass('righttag') || $target.hasClass('optionslist') || $target.hasClass('optionitem')) {
if ($target.hasClass('yohoselectarea') ||
$target.hasClass('yohoselectarea') ||
$target.hasClass('areaname') ||
$target.hasClass('righttag') ||
$target.hasClass('optionslist') ||
$target.hasClass('optionitem')) {
return;
} else {
$('.optionslist').addClass('hide');
}
})
});
}
function chooseArea() {
... ... @@ -42,17 +48,29 @@ function chooseArea() {
var $option = $(this);
var areanum = $option.attr('areanum');
var areaname = $option.text();
$('#areaname').text(areaname);
$('#areanum').text(areanum);
$('#areacode').val(areanum);
$('.optionslist').addClass('hide');
})
});
}
function isagree() {
return $('.choosetag').attr('checked');
}
function closeMask() {
var $target;
$(document).on('click', '#alreayregist', function(e) {
$target = $(e.target);
if ($target.hasClass('mask') || $target.hasClass('backdrop')) {
$('#alreayregist').hide();
}
})
}
function nextStep() {
var openId = '';
var sourceType = '';
... ... @@ -74,7 +92,7 @@ function nextStep() {
openId = $('#openId').val() || '29803EC6D4AAC3AAB8ABDB6AE829D579';
sourceType = $('#sourceType').val() || 'qq';
$.ajax({
type: "post",
type: 'post',
url: '/passport/autouserinfo/bindCheck',
data: {
mobile: mobile,
... ... @@ -86,18 +104,17 @@ function nextStep() {
success: function(data) {
if (data.code === 200) {
if (data.data.isReg === 0) {
$('#bindmobileform').attr('action','/passport/thirdlogin/noregist');
$('#bindmobileform').attr('action', '/passport/thirdlogin/noregist');
$('#bindmobileform').submit();
} else {
$('#alreayregist').show();
}
} else {
alert(data.message);
}
}
});
})
});
}
function init() {
... ... @@ -106,5 +123,6 @@ function init() {
chooseAreaToogle();
cancelChooseArea();
nextStep();
closeMask();
}
init();
\ No newline at end of file
... ...