|
@@ -140,8 +140,12 @@ function bindModalEvent(){
|
|
}
|
|
}
|
|
});
|
|
});
|
|
$("#newWord").off("input").on("input",function(){
|
|
$("#newWord").off("input").on("input",function(){
|
|
- const text = $(this).val();
|
|
|
|
|
|
+ let text = $(this).val();
|
|
const checker = $(".alertModal .psd-checkbox");
|
|
const checker = $(".alertModal .psd-checkbox");
|
|
|
|
+ if(/[\u4e00-\u9fa5]/g.test(text)){
|
|
|
|
+ $(this).val(text.replace(/[\u4e00-\u9fa5]/g,''));
|
|
|
|
+ }
|
|
|
|
+ text = $(this).val();
|
|
$(".newword.warning,.sureword.warning").hide();
|
|
$(".newword.warning,.sureword.warning").hide();
|
|
if(text.trim()){ //显示密码验证标签
|
|
if(text.trim()){ //显示密码验证标签
|
|
if(checker.length){
|
|
if(checker.length){
|
|
@@ -170,6 +174,9 @@ function bindModalEvent(){
|
|
$("#sureWord").off("input").on("input",function(){
|
|
$("#sureWord").off("input").on("input",function(){
|
|
const text = $(this).val();
|
|
const text = $(this).val();
|
|
$(".sureword.warning").hide();
|
|
$(".sureword.warning").hide();
|
|
|
|
+ if(/[\u4e00-\u9fa5]/g.test(text)){
|
|
|
|
+ $(this).val(text.replace(/[\u4e00-\u9fa5]/g,''));
|
|
|
|
+ }
|
|
if(text.trim()){
|
|
if(text.trim()){
|
|
let psdsOk=verifyPsdPart();
|
|
let psdsOk=verifyPsdPart();
|
|
const psdOk = verifyPsd(text);
|
|
const psdOk = verifyPsd(text);
|