|
|
@@ -263,6 +263,23 @@
|
|
|
document.documentElement.style.overflow='hidden';
|
|
|
return
|
|
|
}
|
|
|
+ if(account === ''){
|
|
|
+ $('#tip-text').text('请输入账号');
|
|
|
+ $('.tip').animate({top: '48vh'},"fast");
|
|
|
+ $('.mask').show();
|
|
|
+ $('.dialog').animate({top: '-6.96rem'},"fast");
|
|
|
+ document.documentElement.style.overflow='hidden';
|
|
|
+ return
|
|
|
+ }
|
|
|
+ let reg = /[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g;
|
|
|
+ if(!reg.test(phone)){
|
|
|
+ $('#tip-text').text('输入的账号不支持表情,请重新输入');
|
|
|
+ $('.tip').animate({top: '48vh'},"fast");
|
|
|
+ $('.mask').show();
|
|
|
+ $('.dialog').animate({top: '-6.96rem'},"fast");
|
|
|
+ document.documentElement.style.overflow='hidden';
|
|
|
+ return
|
|
|
+ }
|
|
|
if(password === ''){
|
|
|
$('#tip-text').text('请输入密码');
|
|
|
$('.tip').animate({top: '48vh'},"fast");
|