-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
75 lines (75 loc) · 3.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="">
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
<meta http-equiv="cleartype" content="on">
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta content="telephone=no" name="format-detection" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>慧车宝</title>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
</head>
<body>
<div class="indexBg">
<img src="images/indexBg_01.jpg"/>
<img src="images/indexBg_02.jpg"/>
<img src="images/indexBg_03.jpg"/>
<img src="images/indexBg_04.jpg"/>
<img src="images/indexBg_05.jpg"/>
<img src="images/indexBg_06.jpg"/>
<img src="images/indexBg_07.jpg"/>
<img src="images/indexBg_08.jpg"/>
<img src="images/indexBg_09.jpg"/>
<img src="images/indexBg_10.jpg"/>
<img src="images/indexBg_11.jpg"/>
</div>
<div class="regBg">
<img src="images/indexBg_12.jpg"/>
<img src="images/indexBg_13.jpg"/>
<img src="images/indexBg_14.jpg"/>
<div class="tel"><input type="tel" name="mobileAccount" id="mobileAccount" placeholder="提交手机号,祝福送给他/她" maxlength="11" onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')" autocomplete="off" value="" /></div>
<div class="reg"><a href="javascript:void(0)">提交</a></div>
</div>
<div class="shuoMingBg">
<ul>
<li class="huang">与众不同的新年祝福来啦!快来制作真人祝福贺卡吧!选定模板拍照或上传照片并编写祝福语发送给好友,好友收到贺卡的同时还会获得神秘大礼包!</li>
<li class="bai">怎么玩?</li>
<li class="bai">1、上传或拍摄照片制作贺卡,按要求制作完成并成功发送给好友。</li>
<li class="bai">2、好友收到贺卡可随机获得最高价值2888元神秘大礼包。</li>
<li class="bai">3、已注册用户可直接参与活动;未注册用户需要输入提交手机号参加活动。</li>
<li class="bai">4、活动时间:2016年2月1日-2月23日。</li>
<li class="bai">5、此活动由慧车宝发起,最终解释权归慧车宝所有。</li>
</ul>
<div class="bottom"><img src="images/bottom.png" alt="" /></div>
</div>
<div class="mini_bd"></div>
<script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>
<script type="text/javascript">
//提交手机号
$(".reg a").click(function(){
// 手机号错误
var mobilePhone = document.getElementById("mobileAccount").value;
if(mobilePhone=="" || mobilePhone.length != 11 || !checkPhone(mobilePhone)){
$(".mini_bd").show();
$(".mini_bd").html("请输入正确的手机号");
$(".mini_bd").delay(300);
$(".mini_bd").fadeOut(700);
}
else{
//手机号正确
window.location.href = 'choose.html';
}
});
//验证电话号码
function checkPhone(s) {
var regu = /^13[0-9]{1}[0-9]{8}$|15[012356789]{1}[0-9]{8}$|18[0123456789]{1}[0-9]{8}$|14[57]{1}[0-9]{8}$|17[0678]{1}[0-9]{8}$/;
if (regu.test(s)) {return true;}
else {return false;}
}
</script>
</body>
</html>