...
|
...
|
@@ -57,7 +57,7 @@ |
|
|
<div class="bottom" style="display: flex">
|
|
|
<div class="bottom_item">
|
|
|
<div class="iconfont icon-Fill"></div>
|
|
|
<input type="text" placeholder="请输入手机号">
|
|
|
<input type="text" placeholder="请输入手机号" class="phone">
|
|
|
</div>
|
|
|
<div class="bottom_item">
|
|
|
<div class="iconfont icon-mima"></div>
|
...
|
...
|
@@ -65,7 +65,7 @@ |
|
|
</div>
|
|
|
|
|
|
<!--登录框-->
|
|
|
<div class="bottom_sub">
|
|
|
<div class="bottom_sub login">
|
|
|
立即登录
|
|
|
</div>
|
|
|
|
...
|
...
|
@@ -84,7 +84,7 @@ |
|
|
<div class="bottom" style="display: none">
|
|
|
<div class="bottom_item ">
|
|
|
<div class="iconfont icon-Fill"></div>
|
|
|
<input type="text" placeholder="请输入手机号">
|
|
|
<input type="text" placeholder="请输入手机号" class="phone">
|
|
|
</div>
|
|
|
<!--输入验证码-->
|
|
|
<div class="bottom_small margin_item">
|
...
|
...
|
@@ -105,7 +105,7 @@ |
|
|
</div>
|
|
|
|
|
|
<!--登录框-->
|
|
|
<div class="bottom_sub margin_item">
|
|
|
<div class="bottom_sub margin_item register">
|
|
|
立即注册
|
|
|
</div>
|
|
|
|
...
|
...
|
@@ -115,9 +115,8 @@ |
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!--土司弹框-->
|
|
|
<div class="pop_fn"></div>
|
|
|
</div>
|
|
|
<script src="js/jquery.min.js"></script>
|
|
|
|
...
|
...
|
@@ -127,10 +126,41 @@ |
|
|
var index = $(this).index()
|
|
|
$(this).addClass("item_color").siblings(".mid_item").removeClass("item_color")
|
|
|
// 内容切换
|
|
|
$(".mid_item").eq($(".bottom_box>.bottom").index()).addClass("on").siblings().removeClass("on")
|
|
|
$(".mid_item").eq($(".bottom_box>.bottom").index()).siblings()
|
|
|
$(".bottom_box>.bottom").css("display","none").eq($(this).index()).css("display","flex");
|
|
|
})
|
|
|
|
|
|
//土司弹框
|
|
|
function popup(message) {
|
|
|
$('.pop_fn').css('top', 3 + 'rem').html(message);
|
|
|
setTimeout(function() {
|
|
|
$('.pop_fn').css('top', '-' + 2 + 'rem').html(message);
|
|
|
}, 1800)
|
|
|
}
|
|
|
//登录功能正则验证
|
|
|
$(".login").click(function () {
|
|
|
var phone_number = /^[1][3,4,5,6,7,8,9][0-9]{9}$/;
|
|
|
var newphone = $(".phone").val();
|
|
|
if (!phone_number.test(newphone)){
|
|
|
popup("手机号错误")
|
|
|
}else{
|
|
|
popup("登录成功")
|
|
|
}
|
|
|
})
|
|
|
//注册功能正则验证
|
|
|
$(".register").click(function () {
|
|
|
var phone_number = /^[1][3,4,5,6,7,8,9][0-9]{9}$/;
|
|
|
var newphone = $(".phone").val();
|
|
|
if (!phone_number.test(newphone)){
|
|
|
popup("手机号错误")
|
|
|
}else{
|
|
|
popup("登录成功")
|
|
|
}
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
</body>
|
|
|
</html> |
...
|
...
|
|