xiaogang 4 лет назад
Родитель
Сommit
2476e530e5

Разница между файлами не показана из-за своего большого размера
+ 4 - 0
public/h5/css/mui.min.css


+ 67 - 0
public/h5/css/reset.css

xqd
@@ -0,0 +1,67 @@
+body, h1, h2, h3, h4, h5, h6, hr, p, blockquote,div,/* structural elements 结构元素 */
+dl, dt, dd, ul, ol, li, /* list elements 列表元素 */
+pre, /* text formatting elements 文本格式元素 */
+fieldset, lengend, button, input, textarea, /* form elements 表单元素 */
+th, td { /* table elements 表格元素 */
+    margin: 0;padding: 0;font-weight: normal;box-sizing: border-box;
+}
+*{box-sizing: border-box;}
+body,html{background: #fff;color: #333;}
+/* 设置默认字体 */
+body,
+button, input, select, textarea { /* for ie */
+    /*font: 12px/1 Tahoma, Helvetica, Arial, "宋体", sans-serif;*/
+    /*font: 12px/1 Tahoma, Helvetica, Arial, "\5b8b\4f53", sans-serif;*/ /* 用 ascii 字符表示,使得在任何编码下都无问题 */
+    font: 14px/1 Tahoma, Helvetica, Arial, "微软雅黑", sans-serif; 
+    border: 0;outline: none;background: transparent;
+}
+h1 { font-size: 18px; /* 18px / 12px = 1.5 */ }
+h2 { font-size: 16px; }
+h3 { font-size: 14px; }
+h4, h5, h6 { font-size: 100%; }
+address, cite, dfn, em, var, i { font-style: normal; } /* 将斜体扶正 */
+code, kbd, pre, samp, tt { font-family: "Courier New", Courier, monospace; } /* 统一等宽字体 */
+small { font-size: 12px; } /* 小于 12px 的中文很难阅读,让 small 正常化 */
+/* 重置列表元素 */
+ul, ol { list-style: none; }
+/* 重置文本格式元素 */
+a { text-decoration: none;color: #00EAFF; }
+/*a:hover { text-decoration: underline; }*/
+abbr[title], acronym[title] { /* 注:1.ie6 不支持 abbr; 2.这里用了属性选择符,ie6 下无效果 */
+    border-bottom: 1px dotted;cursor: help;
+}
+q:before, q:after { content: ''; }
+/* 重置表单元素 */
+legend { color: #000; } /* for ie6 */
+fieldset, img { border: none; } /* img 搭车:让链接里的 img 无边框 */
+/* 注:optgroup 无法扶正 */
+button, input, select, textarea {
+	background: transparent;
+    font-size: 100%; /* 使得表单元素在 ie 下能继承字体大小 */
+}
+/* 重置表格元素 */
+table {border-collapse: collapse;border-spacing: 0;}
+/* 重置 hr */
+hr {border: none;height: 1px;}
+/* 让非ie浏览器默认也显示垂直滚动条,防止因滚动条引起的闪烁 */
+html { overflow-y: scroll; }
+/*html, button, input, select, textarea {
+    font-family: "PingFang SC","微軟正黑體","Microsoft Yahei", "Helvetica Neue", Helvetica, Tahoma, sans-serif;
+}*/
+button, input, select, textarea{border: 0;outline: none;background: transparent;}
+select{
+    appearance:none; 
+    -moz-appearance:none; 
+    -webkit-appearance:none;
+    background: url("arrow.png") no-repeat scroll right center transparent;
+    padding-right: 14px;
+}
+select::-ms-expand{ display: none; }
+input[type=number] {  
+    -moz-appearance:textfield;  
+}  
+input[type=number]::-webkit-inner-spin-button,  
+input[type=number]::-webkit-outer-spin-button {  
+    -webkit-appearance: none;  
+    margin: 0;  
+}  

+ 45 - 0
public/h5/css/style.css

xqd
@@ -0,0 +1,45 @@
+html{font-size: 100px;}
+
+input[type=color], input[type=date], input[type=datetime-local], input[type=datetime], input[type=email], input[type=month], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], input[type=week], select, textarea{margin: 0;border: 0;outline: none;}
+
+
+.head{width: 100%;height: 1.06rem;
+/* background: url(../img/head.png) no-repeat; */
+background-size: 100% 100%;padding-top: .1rem;}
+.logo{display: block;width: .7rem;height: .7rem;margin: 0 auto;}
+.wrapper{margin: 0 .25rem;}
+.item{display: flex;align-items: center;margin-top: .2rem;}
+.icon{width: .16rem;height: .18rem;}
+.inpt{flex: 1;}
+.inptBox{flex: 1;display: flex;border-bottom: 1px solid #F0F0F0;align-items: center;margin-left: .14rem;}
+.img{width: .7rem;height: .3rem;}
+.codeBtn{display: block;width: .7rem;height: .3rem;border: 1px solid #0076c7;font-size: .12rem;color: #0076c7;text-align: center;line-height: .28rem;border-radius: .05rem;}
+.eyeBtn{width: .5rem;height: .3rem;padding: .1rem 0 0 0;}
+.eye{display: block;width: .15rem;height: .1rem;margin: 0 auto;}
+.regBtn{width: 100%;height: .45rem;border-radius: .23rem;background: #0076c7;font-size: .18rem;color: #fff;text-align: center;line-height: .45rem;margin-top: .4rem;}
+.xiey{font-size: .12rem;color: #666;text-align: center;margin-top: .14rem;line-height: .14rem;position: relative;margin-bottom: .15rem;}
+.xiey span{font-size: .12rem;color: #0076c7;}
+.xiey:before{display: inline-block;content: '';width: .14rem;height: .14rem;border-radius: 100%;background: #F0F0F0;vertical-align: top;margin-right: .08rem;}
+/*.xiey.active:before{width: .12rem;height: .12rem;border: 1px solid #28D28B;background: #fff;}*/
+.xiey.active:before{background: url(../img/quan.png);background-size: 100% 100%;}
+/*.xiey.active:after{display: inline-block;content: '';width: .1rem;height: .1rem;border-radius: 100%;background: #28D28B;position: absolute;left: 11.6%;top: 2px;}*/
+/*弹窗*/
+.Mask{position: fixed;left: 0;right: 0;top: 0;bottom: 0;background: rgba(0,0,0,.5);display: flex;align-items: center;justify-content: center;}
+.content{width: 72%;border-radius: .05rem;background: #fff;padding: .2rem .2rem .15rem;}
+.name{font-size: .16rem;text-align: center;color: #333;padding-bottom: .15rem;}
+.neir{font-size: .12rem;color: #6E6E6E;line-height: .16rem;min-height: 2rem;max-height: 4rem;overflow: auto;}
+.neir::-webkit-scrollbar{display:none;}
+.btn{width: 90%;height: .36rem;border-radius: .18rem;background: #0076c7;text-align: center;line-height: .36rem;font-size: .14rem;color: #fff;margin-top: .2rem;margin-left: 5%;}
+
+/*ans.html---------------------*/
+.header{width: 100%;height: .44rem;background: #0076c7;font-size: .18rem;color: #fff;text-align: center;line-height: .44rem;}
+.box{margin: .15rem;}
+.timu{font-size: .16rem;color: #333;line-height: .22rem;}
+.timu span{display: inline-block;height: .2rem;line-height: .2rem;border-radius: .03rem;padding: 0 .06rem;background: #0076c7;font-size: .12rem;color: #fff;margin-right: .08rem;}
+.daBox{display: flex;align-items: center;margin-top: .28rem;}
+.daBox span{display: block;width: 8%;font-size: .16rem;}
+.daBox p{flex: 1;width: 92%;font-size: .16rem;color: #333;line-height: .2rem;}
+.daBox.active span,.daBox.active p{color: #0076c7;}
+.goBtn{width: 88%;height: .4rem;position: absolute;left: 5.9%;bottom: 5%;z-index: 2;}
+.maskImg{width: 100%;position: absolute;bottom: 0;left: 0;}
+

BIN
public/h5/fonts/mui.ttf


BIN
public/h5/img/eyes_close.png


BIN
public/h5/img/eyes_open.png


BIN
public/h5/img/head.png


BIN
public/h5/img/logo.png


BIN
public/h5/img/msg.png


BIN
public/h5/img/pic.png


BIN
public/h5/img/pwd.png


BIN
public/h5/img/quan.png


BIN
public/h5/img/tel.png


BIN
public/h5/img/tips.png


BIN
public/h5/img/ycode.png


Разница между файлами не показана из-за своего большого размера
+ 1 - 0
public/h5/js/jquery-2.1.1.min.js


Разница между файлами не показана из-за своего большого размера
+ 5 - 0
public/h5/js/mui.min.js


+ 219 - 0
public/h5/reg.html

xqd
@@ -0,0 +1,219 @@
+<!DOCTYPE html>
+<html>
+	<head>
+	    <meta charset="utf-8">
+	    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
+	    <title>邀请注册</title>
+	    <script src="js/mui.min.js"></script>
+	    <script src="js/jquery-2.1.1.min.js" type="text/javascript" charset="utf-8"></script>
+	    <link href="css/mui.min.css" rel="stylesheet"/>
+	    <link rel="stylesheet" type="text/css" href="css/reset.css"/>
+	    <link rel="stylesheet" type="text/css" href="css/style.css"/>
+	</head>
+	<body>
+		<div class="head">
+			<img src="img/logo.png" class="logo" />
+		</div>
+		<div class="wrapper">
+			<div class="item">
+				<img src="img/tel.png" class="icon"/>
+				<div class="inptBox">
+					<input type="tel" class="inpt" id="tel" placeholder="请输入您的手机号" />
+				</div>
+			</div>
+			<!-- <div class="item"> -->
+				<!-- <img src="img/pic.png" class="icon"/> -->
+				<!-- <div class="inptBox"> -->
+					<!-- <input type="number" class="inpt" id="pic" placeholder="请输入图形验证码" /> -->
+					<!-- <span class="picBtn"> -->
+						<!-- <img src="http://chenglu.im/captcha/default" onclick="javascript:this.src=this.src+'?t=new Date().getTime()'" class="img"/> -->
+					<!-- </span> -->
+				<!-- </div> -->
+			<!-- </div> -->
+			<div class="item">
+				<img src="img/msg.png" class="icon"/>
+				<div class="inptBox">
+					<input type="number" class="inpt" id="msg" placeholder="请输入短信验证码" />
+					<span class="codeBtn">获取验证码</span>
+					<input type="hidden" id="code_verify">
+				</div>
+			</div>
+			<div class="item">
+				<img src="img/pwd.png" class="icon"/>
+				<div class="inptBox">
+					<input type="password" class="inpt" id="loginpwd" placeholder="密码为8-16位英文、数字结合" />
+					<span class="eyeBtn">
+						<img src="img/eyes_close.png" class="eye"/>
+					</span>
+				</div>
+			</div>
+		
+			<div class="item">
+				<img src="img/ycode.png" class="icon"/>
+				<div class="inptBox">
+					<input type="text" class="inpt" id="ycode" placeholder="邀请码(选填)" />
+				</div>
+			</div>
+			<p class="regBtn">注册</p>
+			<p class="xiey">点击注册按钮即同意<span>《用户协议》</span></p>
+		</div>
+		<div class="Mask" style="display: none;">
+			<div class="content">
+				<p class="name">用户协议</p>
+				<p class="neir"></p>
+				<p class="btn">确定</p>
+			</div>
+		</div>
+		
+	    <script type="text/javascript" charset="utf-8">
+	      	mui.init();
+	      	//协议	    
+			$.ajax({
+				url:'https://t22.9026.com/api/login/xieyi?type=1&cont=1',
+				type:'get',
+				data:{},
+				dataType:'json',
+				success:function(res){
+					$('.neir').append(res.data.content);
+					
+				}
+			})
+	      	//获取短信验证码
+	      	var codeBtn=true,time=120,timer;
+	      	$(".codeBtn").on("click",function(){
+	      		if(codeBtn){
+	      			var tel=$("#tel").val();
+		      		<!-- var pic=$("#pic").val(); -->
+		      		if(tel.length!=11){
+		      			return mui.toast('手机号码格式不对!');
+		      		}
+		      		<!-- if(pic.length!=4){ -->
+		      			<!-- return mui.toast('图片验证码错误!'); -->
+		      		<!-- } -->
+		      		codeBtn=false;
+			      	$.ajax({
+			      		type:"get",
+			      		url:"https://t22.9026.com/api/sms/send",
+			      		dataType:"JSON",
+			      		data:{
+			      			mobile: tel,
+			      			event: 'login',
+			      		},
+			      		success:function(data){			      			
+			      			if(data.verifyKey){
+								$('#code_verify').val(data.verifyKey)
+								mui.toast('短信发送成功');
+								
+			      				$(".codeBtn").html(time+'s');
+                                timer=setInterval(function(){
+                                    if(time>0){
+                                        time--;
+                                        $(".codeBtn").html(time+'s');
+                                    }else{
+                                        clearInterval(timer);
+                                        time=120;
+                                        codeBtn=true;
+                                        $(".codeBtn").html('重新获取');
+                                    }
+                                },1000)
+			      			}else{
+			      				$(".img").click();
+			      				codeBtn=true;
+			      			}
+			      		}
+			      	});
+	      		}
+	      	})
+	      	//注册
+	      	var regBtn=true,xieyBtn=true;
+	      	$(".regBtn").on("click",function(){
+	      		if(regBtn){
+	      			var tel=$("#tel").val();
+	      			var msg=$("#msg").val();
+	      			var pwd=$("#loginpwd").val();	      		
+	      			var ycode=$("#ycode").val();
+					var verifyKey=$("#code_verify").val();
+		      		if(tel.length!=11){
+		      			return mui.toast('手机号码格式不对!');
+		      		}
+		      		if(msg.length!=4){
+		      			return mui.toast('短信验证码错误!');
+		      		}
+		      		if(!(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,16}$/.test(pwd))){
+		      			return mui.toast('密码格式错误!');
+		      		}
+		      		
+		      	
+		      		if(xieyBtn){
+		      			return mui.toast('请先勾选隐私协议');
+		      		}
+		      		regBtn=false;
+			      	$.ajax({
+			      		type:"POST",
+			      		url:"https://t22.9026.com/api/login/reg_h5",
+			      		dataType:"JSON",
+			      		data:{
+			      			mobile: tel,
+			      			password:pwd,			      			
+			      			smsCode:msg,
+			      			ycode:ycode,
+							verifyKey:verifyKey
+			      		},
+			      		success:function(data){
+			      			mui.toast(data.message);
+                            if(data.code==1){
+                                setTimeout(function () {
+                                    window.location.href='https://www.baidu.com'
+                                },1000)
+                            }else{
+                            	regBtn=true;
+                            }
+                            regBtn=true;
+			      		}
+			      	});
+	      		}
+	      	})
+	      	//
+	      	$(".xiey").on("click",function(){
+	      		if(xieyBtn){
+	      			xieyBtn=false;
+	      			$(this).addClass('active');
+	      		}else{
+	      			xieyBtn=true;
+	      			$(this).removeClass('active');
+	      		}
+	      	})
+	      	//打开协议
+	      	$(".xiey span").on("click",function(){
+	      		$(".Mask").fadeIn(300);
+	      	})
+	      	//关闭协议
+	      	$(".btn").on("click",function(){
+	      		$(".Mask").fadeOut(300);
+	      	})
+	      	
+	      	//眼睛
+	      	$(".eyeBtn").on("click",function(){
+	      		if($(this).siblings('input').attr('type')=='password'){
+	      			$(this).children('img').attr('src','img/eyes_open.png')
+	      			$(this).siblings('input').attr('type','text');
+	      		}else{
+	      			$(this).children('img').attr('src','img/eyes_close.png')
+	      			$(this).siblings('input').attr('type','password');
+	      		}
+	      	})
+	    </script>
+	</body>
+</html>
+
+<script type="text/javascript">
+	$(function(){
+		$('#ycode').val(getUrlParam('invoce'));
+	});
+
+	function getUrlParam(name) {
+		var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");//构造一个含有目标参数的正则表达式对象
+     	var r = window.location.search.substr(1).match(reg);//匹配目标参数
+     	if (r != null) return unescape(r[2]); return null;//返回参数值
+	}
+</script>

Некоторые файлы не были показаны из-за большого количества измененных файлов