1 Star 0 Fork 107

独一无二/易凯商城 - H5端

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
reg.html 10.45 KB
一键复制 编辑 原始数据 按行查看 历史
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>注册</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="format-detection" content="telephone=no" />
<link rel="apple-touch-icon-precomposed" href="images/screenLogo.png?debug=847" />
<link rel="stylesheet" type="text/css" href="css/m2015.css?debug=847" />
<script src="js/zepto.min.js?debug=847" type="text/javascript"></script>
<script src="js/main.js?debug=847" type="text/javascript"></script>
<script type="text/javascript">window.jQuery =Zepto;var sig =request("sig");var openid =request("openid");var time =request("time");var ifValid ="1";if ($.trim(sig) !="" &&$.trim(openid) !="" &&$.trim(time) !="" &&ifValid =="0") {window.location ="../m/erorrpage.html";}
function request(paras) {var url =location.href;var paraString =url.substring(url.indexOf("?") + 1,url.length).split("&");var paraObj ={};for (i =0;j =paraString[i];i++) {paraObj[j.substring(0,j.indexOf("=")).toLowerCase()] =j.substring(j.indexOf("=") + 1,j.length);}
var returnValue =paraObj[paras.toLowerCase()];if (typeof (returnValue) =="undefined") {return "";}
else {return returnValue;}
}
$(function () {$("#btnSendSMS").click(function () {var mobile =$("#txtMobile").val();var imgcode =$("#txtCode").val();if ($.trim(mobile) =="") {layer.open({content:"请填写手机号",btn:["好的"],shadeClose:false });$("#txtMobile").focus();return;}
else if (!(/^1(3|4|5|7|8)([0-9]{1})([0-9]{8})$/.test(mobile))) {layer.open({content:"请填写正确的手机号",btn:["好的"],shadeClose:false });$("#txtMobile").focus();return;}
if (imgcode ==null ||$.trim(imgcode) =="") {layer.open({content:"请填写图片验证码",btn:["好的"],shadeClose:false });$("#txtCode").focus();return;}
$("#btnSendSMS").prop("disabled",true);$.post("register.aspx",{act:"sendsms",mobile:mobile,imgcode:imgcode,sig:sig,openid:openid,time:time,t:+new Date() },function (res) {$("#btnSendSMS").prop("disabled",false);if (res.status ==999)
{layer.open({content:res.msg,btn:["去登录"],yes:function () {location.href ="login.aspx?uname=" + res.regun;},shadeClose:false
});}
else if (res.status ==1)
{$("#txtMobile").attr("disabled","disabled");$("#txtCode").hide();$("#txtSMSCode").show();$("#valideteCode").hide();$("#btnValidSMS").show();var time =120;var timer =setInterval(function () {if (time <=1) {$("#btnSendSMS").text("获取短信验证码").removeAttr("disabled");clearInterval(timer);}
else {$("#btnSendSMS").text("重新获取短信验证码(" + time + "秒)");time--;}
},1000);}
else {layer.open({content:res.msg,btn:["好的"],shadeClose:false });}
},"json");});$("#btnValidSMS").click(function () {var mobile =$("#txtMobile").val();var smscode =$("#txtSMSCode").val();if ($.trim(smscode) =="") {layer.open({content:"请填写短信验证码",btn:["好的"],shadeClose:false });$("#txtSMSCode").focus();return;}
$.post("register.aspx",{act:"validsms",mobile:mobile,smscode:smscode,sig:sig,openid:openid,time:time,t:+new Date() },function (res) {if (res.status ==1) {layer.open({content:res.msg,btn:["好的"],yes:function(){layer.closeAll();window.location =$.trim("http://m.ch999.com/product/36170.html") =="" ?"my/" :"http://m.ch999.com/product/36170.html";},shadeClose:false });}
else {layer.open({content:res.msg,btn:["好的"],shadeClose:false });$("#txtSMSCode").focus();}
},"json");});$("#btnReg").click(function () {var user =$("#txtUser").val();var pwd1 =$("#txtPwd1").val();var pwd2 =$("#txtPwd2").val();var mobile =$("#txtMobile").val();var code =$("#txtSMSCode").val();if (user.trim() =="") {layer.open({content:"请填写用户名",btn:["好的"],shadeClose:false });$("#txtUser").focus();return;}
if (pwd1.trim() =="") {layer.open({content:"请填写密码",btn:["好的"],shadeClose:false });$("#txtPwd1").focus();return;}
if (pwd2.trim() =="") {layer.open({content:"请再次填写密码",btn:["好的"],shadeClose:false });$("#txtPwd2").focus();return;}
if (pwd1 !=pwd2) {layer.open({content:"两次填写的密码不一致",btn:["好的"],shadeClose:false });$("#txtPwd2").focus();return;}
if (mobile.trim() =="") {layer.open({content:"请填写手机号码",btn:["好的"],shadeClose:false });$("#txtMobile").focus();return;}
var couponCode =request("couponCode");$.post("../m/register.aspx",{act:"register",user:user,pwd:pwd2,mobile:mobile,code:code,sig:sig,openid:openid,time:time,t:+new Date(),couponCode:couponCode },function (data) {switch (data.stats) {case 0:layer.open({content:data.result,btn:["好的"],shadeClose:false });window.location ="../m/register.aspx?act=repeat&couponCode=" + couponCode;break;case 1:window.location =$.trim("http://m.ch999.com/product/36170.html") =="" ?"../m/my/index.aspx" :"http://m.ch999.com/product/36170.html";break;case 2:layer.open({content:data.result,btn:["好的"],shadeClose:false });window.location ="../m/register.aspx?act=repeat&couponCode=" + couponCode;break;case 3:layer.open({content:data.result,btn:["好的"],shadeClose:false });window.location ="../m/register.aspx?act=repeat&couponCode=" + couponCode;break;}
},"json");});});</script>
<script src="js/MsgCountDown.js?debug=847"></script>
</head>
<body>
<header id="header" style="">
<div class="topbar">
<a href="javascript:history.back();" class="back_btn"><i class="iconfont">ş</i></a>
<a href="javascript:;" class="top_home"><i class="iconfont">ƙ</i></a>
<h1 class="page_title">注册为三九会员</h1>
</div>
<div class="home_menu" id="hMenu">
<a href="http://m.ch999.com/"><i class="iconfont">Ő</i><span>首页</span></a>
<a href="http://m.ch999.com/goods_cat.html"><i class="iconfont">Ɔ</i><span>商品分类</span></a>
<a href="http://m.ch999.comcart.html"><i class="iconfont">ŭ</i><span>购物车</span></a>
<a href="http://m.ch999.commember_index.html"><i class="iconfont">Œ</i><span>会员中心</span></a>
</div>
</header>
<script>SiteName ="三九手机网";var isApp =Cookie.Get("isApp");if (isApp ==null ||isApp =="") {isApp =0;}
if (isApp ==1) {$("#header").hide();}
$(".top_home").click(function () {var target =$(".home_menu");if (target.slideToggle) target.slideToggle();else target.toggle();});</script>
<script type="text/javascript">var _mvq =window._mvq ||[];window._mvq =_mvq;_mvq.push(['$setAccount','m-23995-6']);_mvq.push(['$logConversion']);(function () {var mvl =document.createElement('script');mvl.type ='text/javascript';mvl.async =true;mvl.src =('https:' ==document.location.protocol ?'https://static-ssl.mediav.com/mvl.js' :'http://static.mediav.com/mvl.js');var s =document.getElementsByTagName('script')[0];s.parentNode.insertBefore(mvl,s);})();</script>
<div class="wrapper">
<div class="reg">
<input id="txtMobile" name="txtMobile" type="tel" placeholder="输入手机号码获取短信验证码" maxlength="11" />
<div>
<input id="txtCode" name="txtCode" type="text" placeholder="图片验证码" style="width: 120px;" />
<img id="valideteCode" style="height: 30px; vertical-align: middle" />
</div>
<input id="txtSMSCode" type="text" placeholder="短信验证码" style="display: none" />
<input id="txtUser" name="txtUser" type="text" placeholder="用户名(4-20位)" style="display: none" />
<input id="txtPwd1" name="txtPwd1" type="password" placeholder="密码(6位以上)" style="display: none" />
<input id="txtPwd2" name="txtPwd2" type="password" placeholder="重复密码(6位以上)" style="display: none" />
<button id="btnSendSMS">获取短信验证码</button>
<button id="btnValidSMS" style="display: none;">提交注册</button>
<button id="btnReg" style="display: none;">提交信息</button>
</div>
</div>
<div class="g4-tip" style="height:30px;line-height:30px;margin-top:10px;padding:0 10px;display:none;">
<a href="about.html" style="color:#f44623;">您当前使用的是2G/3G网络,现在就免费升4G &gt;&gt;</a>
</div>
<script src="js/jweixin-1.0.0.js"></script>
<script>wx.config({debug:false,appId:'wxaaf67ca511a634ab',timestamp:'1432728715',nonceStr:'111',signature:'123',jsApiList:['hideOptionMenu','showOptionMenu','onMenuShareAppMessage','onMenuShareTimeline','onMenuShareQQ','onMenuShareWeibo']
});wx.ready(function () {wx.getNetworkType({success:function (res) {var networkType =res.networkType;if (networkType =="2g" ||networkType =="3g") {$(".g4-tip").show();}
}
});});</script>
<div class="foot-nav border_top hide" style="">
<a href="index.html"><i class="home"></i><span>首页</span></a>
<a href="/goods_cat.html"><i class="cate"></i><span>商品分类</span></a>
<a href="cart.html"><i class="cart"></i><span>购物车</span></a>
<a href="member_index.html"><i class="user"></i><span>我的</span></a>
</div>
<script>var url =window.location.href;if (url =="http://m.ch999.com/") {$(".foot-nav").show();$(".foot-nav a").eq(0).addClass("cur");}
</script>
<footer id="footer" style="">
<div class="footbar" id="noLogin">
<a id="f1_btnLogin" href="javascript:;" class="login_btn">登录</a>
<a href="http://m.ch999.com/register.aspx">注册</a>
<a href="#" class="backtop_btn">↑回顶部</a>
</div>
<div class="footbar" id="yesLogin" style="display: none">
<a class="login_btn" href="http://m.ch999.commember_index.html" id="txtUsername"></a>
<a onclick="LoginOut()">退出</a>
<a href="#" class="backtop_btn">↑回顶部</a>
</div>
<p class="footlink"> <a href="http://m.ch999.com/" style="margin:0 18px;">触屏版</a> <a id="link_pc" style="margin:0 18px;">电脑版</a> <a href="http://m.ch999.com/zt/app/" style="margin:0 18px;">客户端</a> <a href="http://job.ch999.com/m/" style="margin:0 18px;">招聘</a> </p>
<p class="footlink">Copyright&copy;2006-2015&nbsp;&nbsp;三九手机网<a style="margin:0 0 0 10px;" id="_tousu" href="tousu.aspx">投诉及建议</a></p>
</footer>
<script>var url =location.href;var platfomrs =["360ad","goad","juxad","zhtad","ttad","tead","snswxtsad","snswxgnad","snsxlad","snstxad","snsqzad","snstbzad","snstbwad","snsblad","snshzad","snsqtad","mgzhad","mttad"];for (index in platfomrs) {if (url.indexOf(platfomrs[index]) >0) {Cookie.Set("sem","on",60 *60 *3);} }</script>
<script>$(function () {LoadCode();$("#valideteCode").click(LoadCode);});function LoadCode() {$("#valideteCode").attr("src","/imgCode.aspx?r=" + Math.random());$("#txtMobile").val(request("mobile"));}
</script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/zhmch/ykShop.git
git@gitee.com:zhmch/ykShop.git
zhmch
ykShop
易凯商城 - H5端
develop

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385