添加协议弹框

master
chen 2021-09-22 18:37:08 +08:00
parent a36a77e3e6
commit 9416f38025
2 changed files with 13 additions and 3 deletions

View File

@ -209,7 +209,7 @@
</div>
<!-- 同意 -->
<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>
</div>
<!-- 立即注册 -->
@ -265,7 +265,7 @@
</div>
<!-- 同意 -->
<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>
</div>
<!-- 立即注册 -->

View File

@ -25,7 +25,7 @@ $(function(){
tishik('密码不能为空',2000)
} else if(password.length>16 || password.length<6){
tishik('密码长度必须是6位或以上',2000)
} else {
}else {
tishik('登录成功',2000)
setTimeout(()=>{
clearClose()
@ -107,6 +107,8 @@ $(function(){
tishik('请输入密码',2000)
} else if(g_password.length>16 || g_password.length<6){
tishik('密码长度必须是6位或以上',2000)
} else if(!$('#checkBox').prop("checked")){
tishik('请勾选协议与政策',2000)
} else {
clearClose()
$("#login-k").css('display','')
@ -138,6 +140,8 @@ $(function(){
tishik('请输入验证码',2000)
} else if(j_email==''){
tishik('请输入邮箱',2000)
} else if(!$('#jcheckBox').prop("checked")){
tishik('请勾选协议与政策',2000)
} else {
clearClose()
$("#login-k").css('display','')
@ -166,6 +170,8 @@ $(function(){
tishik('请输入验证码',2000)
} else if(y_email==''){
tishik('请输入邮箱',2000)
} else if(!$('#ycheckBox').prop("checked")){
tishik('请勾选协议与政策',2000)
} else {
clearClose()
$("#login-k").css('display','')
@ -292,6 +298,10 @@ function clearClose(){
// 清空倒计时
clearInterval(timer)
allTime = 60
// 取消勾选
$('#ycheckBox').prop("checked",false)
$('#jcheckBox').prop("checked",false)
$('#checkBox').prop("checked",false)
}
function tishik(val,time){