From 9416f380258cb27c259628db78ac8bf3b5f7e04b Mon Sep 17 00:00:00 2001
From: chen <2659004835@qq.com>
Date: Wed, 22 Sep 2021 18:37:08 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8D=8F=E8=AE=AE=E5=BC=B9?=
=?UTF-8?q?=E6=A1=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
htmls/logshoppingcar/login.html | 4 ++--
js/login_cart/login_cart.js | 12 +++++++++++-
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/htmls/logshoppingcar/login.html b/htmls/logshoppingcar/login.html
index 7a54230..274c86c 100644
--- a/htmls/logshoppingcar/login.html
+++ b/htmls/logshoppingcar/login.html
@@ -209,7 +209,7 @@
-
+
用户协议和隐私政策
@@ -265,7 +265,7 @@
-
+
用户协议和隐私政策
diff --git a/js/login_cart/login_cart.js b/js/login_cart/login_cart.js
index ed6046c..bb08769 100644
--- a/js/login_cart/login_cart.js
+++ b/js/login_cart/login_cart.js
@@ -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){