diff --git a/Application/Mobile/View/Ssg/index.html b/Application/Mobile/View/Ssg/index.html index a93358614..c41de8643 100644 --- a/Application/Mobile/View/Ssg/index.html +++ b/Application/Mobile/View/Ssg/index.html @@ -248,17 +248,7 @@ $(".pay-button").on("click",function(){ $("#logout").on("click",function(){ location.href = "mobile.php?s=/Ssg/logout.html"; }) -function handlePay() { - var hdGameID = $("#hdGameID").val(); - var orderStatus = $("#orderStatus").val(); - if (!hdGameID || hdGameID == 0) { - alert("请选择游戏"); - } else if(orderStatus==1){ - alert("亲~您已购买过了~请到【订单查询】查看订单信息哟~"); - }else { - location.href = "/sdk.php/Ipa365/pay/game_id/"+hdGameID; - } -} + function throttle(fun, delay) { var timer = null; var startTime = Date.now(); diff --git a/Application/Mobile/View/Ssg/login.html b/Application/Mobile/View/Ssg/login.html index 192b8e349..cc794c2f8 100644 --- a/Application/Mobile/View/Ssg/login.html +++ b/Application/Mobile/View/Ssg/login.html @@ -442,15 +442,20 @@ var regpassword = $('#regpassword').val(); var regpassword2 = $("#regpassword2").val(); var promoteId = $("#promote_id").val(); + var pwdRegex = new RegExp('(?=.*[0-9])(?=.*[a-zA-Z])'); if(account.length < 6 || account.length > 12){ alert('账号必须是6-12位字母数字组合'); return false; } + if (!pwdRegex.test(account)) { + alert("账号必须是6-12位字母数字组合!"); + return false; + } if(regpassword.length < 6 || regpassword.length > 15){ alert('密码长度6-15个字符'); return false; } - var pwdRegex = new RegExp('(?=.*[0-9])(?=.*[a-zA-Z])'); + if (!pwdRegex.test(regpassword)) { alert("您的密码复杂度太低(密码中必须包含字母、数字)!"); return false;