heyang 4 年之前
父節點
當前提交
95e9cf7973
共有 1 個文件被更改,包括 17 次插入0 次删除
  1. 17 0
      microserviceUserH5/vcloud/invite.html

+ 17 - 0
microserviceUserH5/vcloud/invite.html

@@ -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");