|
@@ -72,7 +72,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
|
<input type="text" name="user_password" id="user_password" placeholder="{:lang('install_pasword')}" required class="text">
|
|
<input type="text" name="user_password" id="user_password" placeholder="{:lang('install_pasword')}" required class="text">
|
|
|
- <div id="pwd" style="font-size: 10px;">密码必须包含有字母,数字,符号,密码长度为6-20个字符</div>
|
|
|
|
|
|
|
+ <div id="pwd" style="font-size: 10px;color:#aaa;">密码必须包含有字母,数字,符号,密码长度为6-20个字符</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
|
<input type="text" id="confirm_password" name="confirm_password" placeholder="{:lang('confirm_password')}" required class="text">
|
|
<input type="text" id="confirm_password" name="confirm_password" placeholder="{:lang('confirm_password')}" required class="text">
|
|
@@ -88,7 +88,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
<input type="checkbox" name="ch_box" id="ch_box" onclick="c_box()" /><span>我已阅读并同意
|
|
<input type="checkbox" name="ch_box" id="ch_box" onclick="c_box()" /><span>我已阅读并同意
|
|
|
<a href="xieyi.html" target="_blank">《用户协议》</a>及<a href="xieyi.html" target="_blank">《法律声明及隐私条款》</a></span><br><br>
|
|
<a href="xieyi.html" target="_blank">《用户协议》</a>及<a href="xieyi.html" target="_blank">《法律声明及隐私条款》</a></span><br><br>
|
|
|
- <div class="form-group">
|
|
|
|
|
|
|
+ <div class="form-group" style="text-align: center;">
|
|
|
<input type="submit" class="layui-btn" id="layui-btn" value="{:lang('register_sumbit')}" lay-submit lay-filter="login"/>
|
|
<input type="submit" class="layui-btn" id="layui-btn" value="{:lang('register_sumbit')}" lay-submit lay-filter="login"/>
|
|
|
</div>
|
|
</div>
|
|
|
</form>
|
|
</form>
|
|
@@ -103,14 +103,16 @@
|
|
|
var patrn=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{6,20}$/;
|
|
var patrn=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{6,20}$/;
|
|
|
if (!patrn.exec(password)){
|
|
if (!patrn.exec(password)){
|
|
|
//console.log(1);
|
|
//console.log(1);
|
|
|
- var addhtml = document.getElementById("pwd");
|
|
|
|
|
- if(document.getElementById("tishi") == null){
|
|
|
|
|
- addhtml.innerHTML = addhtml.innerText+'<span id="tishi" style="color:red;font-size: 12px;"><br>密码不合法</span>';
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// var addhtml = document.getElementById("pwd");
|
|
|
|
|
+// if(document.getElementById("tishi") == null){
|
|
|
|
|
+// addhtml.innerHTML = addhtml.innerText+'<span id="tishi" style="color:red;font-size: 12px;"><br>密码不合法</span>';
|
|
|
|
|
+// }
|
|
|
|
|
+ document.getElementById("user_password").style.borderColor = "red";
|
|
|
}else{
|
|
}else{
|
|
|
//console.log(2);
|
|
//console.log(2);
|
|
|
- var remove = document.getElementById("tishi");
|
|
|
|
|
- remove.parentNode.removeChild(remove);
|
|
|
|
|
|
|
+// var remove = document.getElementById("tishi");
|
|
|
|
|
+// remove.parentNode.removeChild(remove);
|
|
|
|
|
+ document.getElementById("user_password").style.borderColor = "#e6e6e6";
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
$("#confirm_password").blur(function(){
|
|
$("#confirm_password").blur(function(){
|
|
@@ -119,14 +121,16 @@
|
|
|
var patrn=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{6,20}$/;
|
|
var patrn=/^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{6,20}$/;
|
|
|
if (!patrn.exec(password)){
|
|
if (!patrn.exec(password)){
|
|
|
//console.log(1);
|
|
//console.log(1);
|
|
|
- var addhtml = document.getElementById("confirm_pwd");
|
|
|
|
|
- if(document.getElementById("tishi_pwd") == null){
|
|
|
|
|
- addhtml.innerHTML = addhtml.innerText+'<span id="tishi_pwd" style="color:red;font-size: 12px;"><br>密码不合法</span>';
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// var addhtml = document.getElementById("confirm_pwd");
|
|
|
|
|
+// if(document.getElementById("tishi_pwd") == null){
|
|
|
|
|
+// addhtml.innerHTML = addhtml.innerText+'<span id="tishi_pwd" style="color:red;font-size: 12px;"><br>密码不合法</span>';
|
|
|
|
|
+// }
|
|
|
|
|
+ document.getElementById("confirm_password").style.borderColor = "red";
|
|
|
}else{
|
|
}else{
|
|
|
//console.log(2);
|
|
//console.log(2);
|
|
|
- var remove = document.getElementById("tishi_pwd");
|
|
|
|
|
- remove.parentNode.removeChild(remove);
|
|
|
|
|
|
|
+// var remove = document.getElementById("tishi_pwd");
|
|
|
|
|
+// remove.parentNode.removeChild(remove);
|
|
|
|
|
+ document.getElementById("confirm_password").style.borderColor = "#e6e6e6";
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
//电话校验
|
|
//电话校验
|
|
@@ -136,14 +140,16 @@
|
|
|
var patrn=/^1[3456789]\d{9}$/;
|
|
var patrn=/^1[3456789]\d{9}$/;
|
|
|
if (!patrn.exec(password)){
|
|
if (!patrn.exec(password)){
|
|
|
//console.log(1);
|
|
//console.log(1);
|
|
|
- var addhtml = document.getElementById("phone");
|
|
|
|
|
- if(document.getElementById("tishi_phone") == null){
|
|
|
|
|
- addhtml.innerHTML = addhtml.innerText+'<span id="tishi_phone" style="color:red;font-size: 12px;"><br>电话号码不合法</span>';
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// var addhtml = document.getElementById("phone");
|
|
|
|
|
+// if(document.getElementById("tishi_phone") == null){
|
|
|
|
|
+// addhtml.innerHTML = addhtml.innerText+'<span id="tishi_phone" style="color:red;font-size: 12px;"><br>电话号码不合法</span>';
|
|
|
|
|
+// }
|
|
|
|
|
+ document.getElementById("user_phone").style.borderColor = "red";
|
|
|
}else{
|
|
}else{
|
|
|
//console.log(2);
|
|
//console.log(2);
|
|
|
- var remove = document.getElementById("tishi_phone");
|
|
|
|
|
- remove.parentNode.removeChild(remove);
|
|
|
|
|
|
|
+// var remove = document.getElementById("tishi_phone");
|
|
|
|
|
+// remove.parentNode.removeChild(remove);
|
|
|
|
|
+ document.getElementById("user_phone").style.borderColor = "#e6e6e6";
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
// 协议 校验
|
|
// 协议 校验
|