添加协议弹框
parent
a36a77e3e6
commit
9416f38025
|
@ -209,7 +209,7 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- 同意 -->
|
<!-- 同意 -->
|
||||||
<div class="agree-box">
|
<div class="agree-box">
|
||||||
<input class="cp" type="checkbox" name="" id="checkBox" value=""/><label for="checkBox" class="cp" style="margin-left: 4px;">我已阅读并接受</label>
|
<input class="cp" type="checkbox" name="" id="jcheckBox" value=""/><label for="jcheckBox" class="cp" style="margin-left: 4px;">我已阅读并接受</label>
|
||||||
<span>用户协议</span>和<span>隐私政策</span>
|
<span>用户协议</span>和<span>隐私政策</span>
|
||||||
</div>
|
</div>
|
||||||
<!-- 立即注册 -->
|
<!-- 立即注册 -->
|
||||||
|
@ -265,7 +265,7 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- 同意 -->
|
<!-- 同意 -->
|
||||||
<div class="agree-box">
|
<div class="agree-box">
|
||||||
<input class="cp" type="checkbox" name="" id="checkBox" value=""/><label for="checkBox" class="cp" style="margin-left: 4px;">我已阅读并接受</label>
|
<input class="cp" type="checkbox" name="" id="ycheckBox" value=""/><label for="ycheckBox" class="cp" style="margin-left: 4px;">我已阅读并接受</label>
|
||||||
<span>用户协议</span>和<span>隐私政策</span>
|
<span>用户协议</span>和<span>隐私政策</span>
|
||||||
</div>
|
</div>
|
||||||
<!-- 立即注册 -->
|
<!-- 立即注册 -->
|
||||||
|
|
|
@ -25,7 +25,7 @@ $(function(){
|
||||||
tishik('密码不能为空',2000)
|
tishik('密码不能为空',2000)
|
||||||
} else if(password.length>16 || password.length<6){
|
} else if(password.length>16 || password.length<6){
|
||||||
tishik('密码长度必须是6位或以上',2000)
|
tishik('密码长度必须是6位或以上',2000)
|
||||||
} else {
|
}else {
|
||||||
tishik('登录成功',2000)
|
tishik('登录成功',2000)
|
||||||
setTimeout(()=>{
|
setTimeout(()=>{
|
||||||
clearClose()
|
clearClose()
|
||||||
|
@ -107,6 +107,8 @@ $(function(){
|
||||||
tishik('请输入密码',2000)
|
tishik('请输入密码',2000)
|
||||||
} else if(g_password.length>16 || g_password.length<6){
|
} else if(g_password.length>16 || g_password.length<6){
|
||||||
tishik('密码长度必须是6位或以上',2000)
|
tishik('密码长度必须是6位或以上',2000)
|
||||||
|
} else if(!$('#checkBox').prop("checked")){
|
||||||
|
tishik('请勾选协议与政策',2000)
|
||||||
} else {
|
} else {
|
||||||
clearClose()
|
clearClose()
|
||||||
$("#login-k").css('display','')
|
$("#login-k").css('display','')
|
||||||
|
@ -138,6 +140,8 @@ $(function(){
|
||||||
tishik('请输入验证码',2000)
|
tishik('请输入验证码',2000)
|
||||||
} else if(j_email==''){
|
} else if(j_email==''){
|
||||||
tishik('请输入邮箱',2000)
|
tishik('请输入邮箱',2000)
|
||||||
|
} else if(!$('#jcheckBox').prop("checked")){
|
||||||
|
tishik('请勾选协议与政策',2000)
|
||||||
} else {
|
} else {
|
||||||
clearClose()
|
clearClose()
|
||||||
$("#login-k").css('display','')
|
$("#login-k").css('display','')
|
||||||
|
@ -166,6 +170,8 @@ $(function(){
|
||||||
tishik('请输入验证码',2000)
|
tishik('请输入验证码',2000)
|
||||||
} else if(y_email==''){
|
} else if(y_email==''){
|
||||||
tishik('请输入邮箱',2000)
|
tishik('请输入邮箱',2000)
|
||||||
|
} else if(!$('#ycheckBox').prop("checked")){
|
||||||
|
tishik('请勾选协议与政策',2000)
|
||||||
} else {
|
} else {
|
||||||
clearClose()
|
clearClose()
|
||||||
$("#login-k").css('display','')
|
$("#login-k").css('display','')
|
||||||
|
@ -292,6 +298,10 @@ function clearClose(){
|
||||||
// 清空倒计时
|
// 清空倒计时
|
||||||
clearInterval(timer)
|
clearInterval(timer)
|
||||||
allTime = 60
|
allTime = 60
|
||||||
|
// 取消勾选
|
||||||
|
$('#ycheckBox').prop("checked",false)
|
||||||
|
$('#jcheckBox').prop("checked",false)
|
||||||
|
$('#checkBox').prop("checked",false)
|
||||||
|
|
||||||
}
|
}
|
||||||
function tishik(val,time){
|
function tishik(val,time){
|
||||||
|
|
Loading…
Reference in New Issue