好友
阅读权限 10
听众
最后登录 1970-1-1
喜欢吃软饭
发表于 2020-3-15 20:37
图片已经上传了,各位大佬将就看,下面附上注册的代码各位大佬看一下能不能绕出去或者填写手机号,麻烦各位大佬了!!!
仅供参考!!!:<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<title>WECHAT_EMPTY_TITLE</title>
<link rel="stylesheet" type="text/css" href="/LHJDWEB/resources/css/memberRegister.css">
<script src="/LHJDWEB/resources/js/jquery-1.8.2.min.js"></script><style id="__WXWORK_INNER_SCROLLBAR_CSS">::-webkit-scrollbar { width: 12px !important; height: 12px !important; }::-webkit-scrollbar-track:vertical { }::-webkit-scrollbar-thumb:vertical { background-color: rgba(136, 141, 152, 0.5) !important; border-radius: 10px !important; background-clip: content-box !important; border:2px solid transparent !important; } ::-webkit-scrollbar-track:horizontal { }::-webkit-scrollbar-thumb:horizontal { background-color: rgba(136, 141, 152, 0.5) !important; border-radius: 10px !important; background-clip: content-box !important; border:2px solid transparent !important; } ::-webkit-resizer { display: none !important; }</style>
<script src="/LHJDWEB/resources/js/jquery.touchSlider.js"></script>
<script src="/LHJDWEB/resources/js/common/common.js"></script>
<script src="/LHJDWEB/resources/js/intro/intro.js"></script>
<script type="text/javascript" src="/LHJDWEB/resources/js/login/jquery.valIDA te.js" charset="utf-8"></script>
<script type="text/javascript" src="/LHJDWEB/resources/js/checkCode.js"></script>
<link href="/LHJDWEB/resources/css/mobiscroll.core-2.5.2.css" rel="stylesheet" type="text/css">
<link href="/LHJDWEB/resources/css/mobiscroll.animation-2.5.2.css" rel="stylesheet" type="text/css">
<link href="/LHJDWEB/resources/css/mobiscroll.android-ics-2.5.2.css" rel="stylesheet" type="text/css">
<script src="/LHJDWEB/resources/js/mobiscroll.core-2.5.2.js" type="text/javascript"></script>
<script src="/LHJDWEB/resources/js/mobiscroll.core-2.5.2-zh.js" type="text/javascript"></script>
<script src="/LHJDWEB/resources/js/mobiscroll.datetime-2.5.1.js" type="text/javascript"></script>
<script src="/LHJDWEB/resources/js/mobiscroll.datetime-2.5.1-zh.js" type="text/javascript"></script>
<!-- S 可根据自己喜好引入样式风格文件 -->
<script src="/LHJDWEB/resources/js/mobiscroll.android-ics-2.5.2.js" type="text/javascript"></script>
<script type="text/javascript">
var SITE_BASE_PATH = '/LHJDWEB/';
</script>
</head>
<body style="background: #fff;">
<p class="boxTop"><img src="/LHJDWEB/resources/images/u1.png" class="returnArrow">会员注册<a href="tel:4008117811"><img src="/LHJDWEB/resources/images/u2.png" class="telephone"></a></p>
<div class="memberBox">
<form id="registerForm" method="post" novalidate="novalidate">
<input type="hidden" id="nickName" name="nickName" value="">
<input type="hidden" id="BACK_URL" name="BACK_URL" value="">
<input type="hidden" id="pageType" name="pageType" value="">
<!-- <p class="use_p"><label class="labels"></label><span>用户注册</span></p> -->
<div class="informention">
<ul class="informention-ul" style="width: 96%;margin-left: 2%;">
<!-- <li>
<input type="text" id="memberMobile" name="memberMobile" class="memberNum" placeholder="请输入您手机号码"><span id="error" style="color:red;"></span>
</li>
<li>
<input type="text" id="codeVal" class="memberNum" placeholder="请输入图形验证码">
<input id="code" type="text" readonly="readonly" class="yzm_btn" style="width: 70px;">
</li>
<li>
<input type="text" class="memberNum" placeholder="请输入验证码(必填)"> <a href="#" class="yzm_btn">获取验证码</a>
<div class="input_box">
<input type="hidden" id="confirmVerificationCode">
<input type="text" id="codeValue" name="codeValue" class="memberNum" placeholder="请输入验证码" maxlength="6"/>
<a href="javascript:void(0);" class="again_message disable">
<input class="yzm_btn" id="btnSendCode" type="button" value="发送验证码" style="font-size: 1rem;"/>
</a><span id="error4" style="color:red;"></span>
</div>
</li> -->
<li>
<input type="text" id="memberName" name="memberName" class="memberNum valid" placeholder="请输入您的姓名"><span id="error1" style="color:red;"><label for="memberName" generated="true" class="error valid"></label></span>
</li>
<li>
<input type="text" id="identityCard" name="identityCard" class="memberNum valid" placeholder="请输入您的身份证(可不填)"><span id="error5" style="color:red;"><label for="identityCard" generated="true" class="error valid"></label></span>
</li>
<!-- <li style="width: 100%;background: #fff;height: 41px;line-height: 41px;border-bottom: 1px #e5e5e5 solid;">
<span style="color: #747474;">性别</span>
<label style="color: #747474;"><span style="height:20px; width:20px;"><input name="sex" type="radio" value="1" checked="checked" style="margin-right: 3px;vertical-align: middle;" /></span><span>男</span> </label>
<label style="color: #747474;"><span style="height:20px; width:20px;"><input name="sex" type="radio" value="2" style="margin-right: 3px;vertical-align: middle;margin-left: 3px;" / ></span><span>女</span> </label>
<span id="error6" style="color:red;">
</li> -->
<!-- <input type="hidden" id="prePhone"> -->
<!-- <input type="hidden" id="sex" value="1"> -->
<!-- <li>
<input type="text" id="birthday" name="birthday" class="memberNum" placeholder="请选择生日" /><span id="error7" style="color:red;"></span>
</li> -->
<li>
<input type="password" id="memberPassWord" name="memberPassWord" class="memberNum valid" style="border-bottom: 2px #2e7fbe solid;" placeholder="请设置8-20位字母、数字"><span id="error2" style="color:red;"><label for="memberPassWord" generated="true" class="error valid"></label></span>
</li>
<li>
<input type="password" id="password2" name="password2" class="memberNum valid" placeholder="请再次确认密码"><span id="error3" style="color:red;"><label for="password2" generated="true" class="error valid"></label></span>
</li>
<li>
<input type="text" id="invitationCode" name="invitationCode" class="memberNum" placeholder="请输入邀请码(可不填)">
</li>
</ul>
<p class="btn" style="width:94%;height: 40px;"><input id="goregist" type="submit" class="goregist" value="完成" style="width:100%;line-height: 40px;BACKGROUND: #2e7fbe; color: #ffffff"></p>
<!-- <a id="register_btn" class="know" >点击了解百川汇</a> -->
<div class="slides" id="bottomDiv" style="max-width: 640px; text-align: center; float: left; width: 100%; position: fixed; bottom: 0px; margin-top: 20px; display: block;">
<img src="/LHJDWEB/resources/images/b_logo.png" style="width:30%;">
<p style="margin: 5px 0;color: #666;">客服热线:400-811-7-811</p>
<img src="/LHJDWEB/resources/images/bg_1.png" style="width:100%;">
</div>
</div>
</form>
</div>
<script type="text/javascript" src="/LHJDWEB/resources/js/login/tooltips.js"></script>
<script src="/LHJDWEB/resources/js/jquery.cookie.js" type="text/javascript"></script>
<script type="text/javascript">
//var InterValObj; // timer变量,控制时间
//var count = 120; // 间隔函数,1秒执行
//var curCount;// 当前剩余秒数
/**
* 获取注册短信验证码
*
* @Param obj
* @returns {Boolean}
*/
</script>
<script type="text/javascript">
/**
* 点击了解百川汇
*/
function toKnow() {
window.location.href = '/LHJDWEB/flogin/toBai';
}
$(function() {
/* var currYear = (new Date()).getFullYear();
var opt={};
opt.date = {preset : 'date'};
opt.default = {
theme: 'android-ics light', //皮肤样式
display: 'modal', //显示方式
mode: 'scroller', //日期选择模式
lang:'zh',
startYear:currYear - 100, //开始年份
endYear:currYear + 10 //结束年份
};
$("#birthday").val('').scroller('destroy').scroller($.extend(opt['date'], opt['default'])); */
/* $('#memberName').bind("focus",function(){
$("#bottomDiv").css({"position":"absolute","bottom":"0px"});
}).bind("blur",function(){
$("#bottomDiv").css({"position":"fixed","bottom":"0px"});
});
$('#identityCard').bind("focus",function(){
$("#bottomDiv").css({"position":"absolute","bottom":"0px"});
}).bind("blur",function(){
$("#bottomDiv").css({"position":"fixed","bottom":"0px"});
});
$('#identityCard').bind("focus",function(){
$("#bottomDiv").css({"position":"absolute","bottom":"0px"});
}).bind("blur",function(){
$("#bottomDiv").css({"position":"fixed","bottom":"0px"});
});
$('#memberPassWord').bind("focus",function(){
$("#bottomDiv").css({"position":"absolute","bottom":"0px"});
}).bind("blur",function(){
$("#bottomDiv").css({"position":"fixed","bottom":"0px"});
});
$('#password2').bind("focus",function(){
$("#bottomDiv").css({"position":"absolute","bottom":"0px"});
}).bind("blur",function(){
$("#bottomDiv").css({"position":"fixed","bottom":"0px"});
});
$('#invitationCode').bind("focus",function(){
$("#bottomDiv").css({"position":"absolute","bottom":"0px"});
}).bind("blur",function(){
$("#bottomDiv").css({"position":"fixed","bottom":"0px"});
}); */
window.onresize = function () {
var h = $(window).height();
var u = navigator.userAgent;
if (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1) {
if(h <= window.screen.availHeight/2){
$('#bottomDiv').css({'position':'absoult',"margin-top":"-.5rem",'display':'none'});
}else{
$('#bottomDiv').css({'position':'fixed','display':'block'});
}
}
}
$('input').on('focus',function(){
$('#bottomDiv').hide();
})
$('input').on('blur',function(){
$('#bottomDiv').show();
})
/* $('input:radio[name="sex"]').change(function(){
var sex;
var sexs = document.getElementsByName('sex');
for (var i = 0; i < sexs.length; i++) {
if (sexs.checked == true) {
sex = sexs.value;
}
}
$("#sex").val(sex);
}); */
//createCode();
/* alert($("#invitationCode").val()); */
/* jQuery.validator.addMethod("isMobile", function(value, element) {
var length = value.length;
var mobile = /^(((13[0-9]{1})|(14[0-9]{1})|(15[0-9]{1})|(17[0-9]{1})|(18[0-9]{1})|(16[0-9]{1})|(19[0-9]{1}))+\d{8})$/;
return this.optional(element) || (length == 11 && mobile.test(value));
}, "手机格式不正确");
jQuery.validator.addMethod("isMession", function(value, element) {
var codeValue =$("#codeValue").val();
var confirmVerificationCode = $("#confirmVerificationCode").val();
var phone = $("#memberMobile").val();
var prePhone = $("#prePhone").val();
if(phone != prePhone){
return false;
}
if(confirmVerificationCode==codeValue){
return true;
}else{
return false;
}
}, "验证码不正确"); */
jQuery.validator.addMethod("isName", function(value, element) {
var p1 =value.length;
if(p1<10){
return true;
}else{
return false;
}
}, "长度超出范围");
jQuery.validator.addMethod("isPass", function(value, element) {
var p1 =$("#memberPassWord").val();
if(8 <= p1.length && p1.length <= 20){
return true;
}else{
return false;
}
}, "请设置8-20位字母、数字!");
jQuery.validator.addMethod("isPassN", function(value, element) {
var p1 =$("#memberPassWord").val();
var re = /^([0-9a-zA-Z])\1{7,19}$/;
if(re.test(p1) || p1==12345678 || p1==123456789 || p1==123456780){
return false;
}else{
return true;
}
}, "密码不能太简单!");
jQuery.validator.addMethod("isSame", function(value, element) {
var p1 =$("#memberPassWord").val();
var p2 =$("#password2").val();
if(p1==p2){
return true;
}else{
return false;
}
}, "两次密码不一致");
jQuery.validator.addMethod("isIdentityCard", function(value, element) {
var identityCarNum =$("#identityCard").val();
if(identityCarNum == null || identityCarNum == ''){
return true;
} else {
if(!checkCard(identityCarNum))
{
return false;
}
return true;
}
}, "身份证输入不合法");
/* jQuery.validator.addMethod("isInvitation", function(value, element) {
var p1 =$("#invitationCode").val();
if(null==p1.length||6==p1.length){
return true;
}else{
return false;
}
}, "验证码为空或为6位"); */
$("#registerForm").validate({
rules: {
"memberMobile":{
required: true,
isMobile: true
},
"codeValue":{
required :true,
isMession:true
},
"memberName": {
required :true,
isName:true
},
"memberPassWord":{
required: true,
isPass:true,
isPassN:true
},
"password2":{
required: true,
isSame:true
},
"identityCard":{
/* required :true, */
isIdentityCard:true
}/*,
"sex":{
required :true
} ,
"birthday":{
required :true
} */
},
messages: {
"memberMobile": {
required :"请输入手机号"
},
"codeValue": {
required :"请输入短信验证码"
},
"memberName": {
required :"请输入您的姓名"
},
"memberPassWord": {
required : "请输入密码"
},
"password2": {
required : "请输入确认密码"
}/*,
"sex": {
required : "请选择性别"
} ,
"birthday": {
required : "请选择生日"
} */
},
errorPlacement : function(error,element){
error.appendTo(element.parent().children("#error"));
error.appendTo(element.parent().children("#error1"));
error.appendTo(element.parent().children("#error2"));
error.appendTo(element.parent().children("#error3"));
error.appendTo(element.parent().children("#error4"));
error.appendTo(element.parent().children("#error5"));
//error.appendTo(element.parent().children("#error6"));
//error.appendTo(element.parent().children("#error7"));
},
success :"valid",
submitHandler:function(){/* alert($("#invitationCode").val());return false; */
$.ajax({
type : "POST",
url : SITE_BASE_PATH + "flogin/registerApp",
data :
{
/* memberName :$("#memberName").val(),memberMobile : $("#memberMobile").val(),memberPassWord :$("#memberPassWord").val(),invitationCode: $("#invitationCode").val(),nickName:$("#nickName").val() */
memberName :$("#memberName").val(),memberMobile : $("#memberMobile").val(),memberPassWord :$("#memberPassWord").val(),
invitationCode: $("#invitationCode").val(),nickName:$("#nickName").val(),identityCard:$("#identityCard").val(),identityCard:$("#identityCard").val(),
sex:$("#sex").val(),birthday:"1900-01-01"
},
dataType : "json",
beforeSend:function(){
$("#goregist").attr("disabled","disabled");
show_msg("信息提交中...",'');
},
success : function(data) {
var checkResult = data.result;
if(checkResult == 1)
{
$.cookie('memberMobile', $("#memberMobile").val(), {expires : 365, path : "/" });
$.cookie('memberPassWord', $("#memberPassWord").val(), {expires : 365, path : "/" });
$.cookie('type', "P", {expires : 365, path : "/" });
alert("恭喜您,注册成功!");
var pageType = $("#pageType").val();
if($("#pageType").val() == null || $("#pageType").val() == ''){
show_msg('正在为您跳转会员中心...',SITE_BASE_PATH
+ "memberCenter/tomemberCenterApp");
} else {
show_msg(' 正在为您跳转...',SITE_BASE_PATH
+ $("#BACK_URL").val());
}
}else{
alert(data.msg);
$("#goregist").removeAttr("disabled");
}
}
});
}
});
});
function checkCard(obj) {
obj = obj.toUpperCase();
//校验长度,类型
if (isCardNo(obj) === false) {
return false;
}
//检查省份
if (checkProvince(obj) === false) {
return false;
}
//校验生日
if (checkBirthday(obj) === false) {
return false;
}
//检验位的检测
if (checkParity(obj) === false) {
return false;
}
return true;
};
//判断位数是否正确
function isCardNo(obj) {
//身份证号码为15位或者18位,15位时全为数字,18位前17位为数字,最后一位是校验位,可能为数字或字符X
var reg = /(^\d{15}$)|(^\d{17}(\d|X)$)/;
if (reg.test(obj) === false) {
return false;
}
return true;
};
//取身份证前两位,校验省份
function checkProvince(obj) {
var province = obj.substr(0, 2);
var vcity = {
11 : "北京",
12 : "天津",
13 : "河北",
14 : "山西",
15 : "内蒙古",
21 : "辽宁",
22 : "吉林",
23 : "黑龙江",
31 : "上海",
32 : "江苏",
33 : "浙江",
34 : "安徽",
35 : "福建",
36 : "江西",
37 : "山东",
41 : "河南",
42 : "湖北",
43 : "湖南",
44 : "广东",
45 : "广西",
46 : "海南",
50 : "重庆",
51 : "四川",
52 : "贵州",
53 : "云南",
54 : "西藏",
61 : "陕西",
62 : "甘肃",
63 : "青海",
64 : "宁夏",
65 : "新疆",
71 : "台湾",
81 : "香港",
82 : "澳门",
91 : "国外"
};
if (vcity[province] == undefined) {
return false;
}
return true;
};
//检查生日是否正确
function checkBirthday(obj) {
var len = obj.length;
//身份证15位时,次序为省(3位)市(3位)年(2位)月(2位)日(2位)校验位(3位),皆为数字
if (len == '15') {
var re_fifteen = /^(\d{6})(\d{2})(\d{2})(\d{2})(\d{3})$/;
var arr_data = obj.match(re_fifteen);
var year = arr_data[2];
var month = arr_data[3];
var day = arr_data[4];
var birthday = new Date('19' + year + '/' + month + '/' + day);
return verifyBirthday('19' + year, month, day, birthday);
}
//身份证18位时,次序为省(3位)市(3位)年(4位)月(2位)日(2位)校验位(4位),校验位末尾可能为X
if (len == '18') {
var re_eighteen = /^(\d{6})(\d{4})(\d{2})(\d{2})(\d{3})([0-9]|X)$/;
var arr_data = obj.match(re_eighteen);
var year = arr_data[2];
var month = arr_data[3];
var day = arr_data[4];
var birthday = new Date(year + '/' + month + '/' + day);
return verifyBirthday(year, month, day, birthday);
}
return false;
};
//校验日期
function verifyBirthday(year, month, day, birthday) {
var now = new Date();
var now_year = now.getFullYear();
//年月日是否合理
if (birthday.getFullYear() == year
&& (birthday.getMonth() + 1) == month
&& birthday.getDate() == day) {
//判断年份的范围(3岁到100岁之间)
var time = now_year - year;
if (time >= 0 && time <= 100) {
return true;
}
return false;
}
return false;
};
//校验位的检测
function checkParity(obj) {
//15位转18位
obj = changeFivteenToEighteen(obj);
var len = obj.length;
if (len == '18') {
var arrInt = new Array(7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5,
8, 4, 2);
var arrCh = new Array('1', '0', 'X', '9', '8', '7', '6', '5', '4',
'3', '2');
var cardTemp = 0, i, valnum;
for (i = 0; i < 17; i++) {
cardTemp += obj.substr(i, 1) * arrInt;
}
valnum = arrCh[cardTemp % 11];
if (valnum == obj.substr(17, 1)) {
return true;
}
return false;
}
return false;
};
//15位转18位身份证号
function changeFivteenToEighteen(obj) {
if (obj.length == '15') {
var arrInt = new Array(7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5,
8, 4, 2);
var arrCh = new Array('1', '0', 'X', '9', '8', '7', '6', '5', '4',
'3', '2');
var cardTemp = 0, i;
obj = obj.substr(0, 6) + '19' + obj.substr(6, obj.length - 6);
for (i = 0; i < 17; i++) {
cardTemp += obj.substr(i, 1) * arrInt;
}
obj += arrCh[cardTemp % 11];
return obj;
}
return obj;
};
function handleSexAndBirthday(){
var UUserCard =$("#identityCard").val();
if(UUserCard == null || UUserCard == ''){
return true;
} else {
if(!checkCard(UUserCard))
{
return false;
} else {
//获取出生日期
/*var birthday = UUserCard.substring(6, 10) + "-" + UUserCard.substring(10, 12) + "-" + UUserCard.substring(12, 14);
$("#birthday").val(birthday);
var sex;
//获取性别
if (parseInt(UUserCard.substr(16, 1)) % 2 == 1) {
sex = "1";
} else {
sex = "2";
}
var sex;
var sexs = document.getElementsByName('sex');
for (var i = 0; i < sexs.length; i++) {
if (sexs.value == sex) {
sexs.checked = true;
} else {
sexs.checked = false;
}
}
$("#sex").val(sex); */
}
}
}
</script>
<div class="sub_err" style="position: absolute; top: 93.7003px; left: 297px; width: 200px; z-index: 99999999;"><div class="bac" style="padding:8px 0px;border:1px solid #090;width:100%;margin:0 auto;color:#666;border:0px #090 solid;;text-align:center;font-size:16px;"><img style="margin-right:10px; vertical-align: middle;" src="/LHJDWEB/resources/js/login/images/loading.gif">信息提交中...</div></div></body></html>
这是可以正常登录的只不过登录五次出现这个提示
这个是我发现的另一个注册渠道先叫它图(2)
选择就是加入了图(2)里面然后呢出现一个这样的提示