heyang před 3 roky
rodič
revize
9df2aaa7cd
1 změnil soubory, kde provedl 54 přidání a 50 odebrání
  1. 54 50
      microserviceUserH5/vcloud/invite.html

+ 54 - 50
microserviceUserH5/vcloud/invite.html

@@ -180,6 +180,8 @@
 				}else{
 					copyUrl();
 				}
+			}else{
+				copyUrl();
 			}
 		},false);
 		//复制
@@ -245,56 +247,58 @@
 		$('.login-btn-text')[0].addEventListener('click',changePhoneHandle,false);
 	    $('.login-btn')[0].addEventListener('click',changePhoneHandle,false);
 		function changePhoneHandle(){
-			account = $('#account').val();
-			password = $('#password').val();
-			if(fromType === 0){
-			    $('#tip-text').text('请选择平台');
-				$('.tip').animate({top: '48vh'},"fast");
-				$('.mask').show();
-			    $('.dialog').animate({top: '-6.96rem'},"fast");
-				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
-			}
-			if(account === ''){
-				$('#tip-text').text('请输入账号');
-				$('.tip').animate({top: '48vh'},"fast");
-				$('.mask').show();
-			    $('.dialog').animate({top: '-6.96rem'},"fast");
-				document.documentElement.style.overflow='hidden';
-				return
-			}
-			if(!/[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g.test(account)){
-				$('#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");
-				$('.mask').show();
-			    $('.dialog').animate({top: '-6.96rem'},"fast");
-				document.documentElement.style.overflow='hidden';
-				return
-			}
-			if(!isShow){
-				$('#tip-text').text('请勾选阅读规则按钮');
-				$('.tip').animate({top: '48vh'},"fast");
-				$('.mask').show();
-				document.documentElement.style.overflow='hidden';
-				return
-			}
-			operate('dt_yhs_点击免费换机按钮','click');
+			stopManyClick(() => {
+				account = $('#account').val();
+				password = $('#password').val();
+				if(fromType === 0){
+					$('#tip-text').text('请选择平台');
+					$('.tip').animate({top: '48vh'},"fast");
+					$('.mask').show();
+					$('.dialog').animate({top: '-6.96rem'},"fast");
+					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
+				}
+				if(account === ''){
+					$('#tip-text').text('请输入账号');
+					$('.tip').animate({top: '48vh'},"fast");
+					$('.mask').show();
+					$('.dialog').animate({top: '-6.96rem'},"fast");
+					document.documentElement.style.overflow='hidden';
+					return
+				}
+				if(/[^\u0020-\u007E\u00A0-\u00BE\u2E80-\uA4CF\uF900-\uFAFF\uFE30-\uFE4F\uFF00-\uFFEF\u0080-\u009F\u2000-\u201f\u2026\u2022\u20ac\r\n]/g.test(account)){
+					$('#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");
+					$('.mask').show();
+					$('.dialog').animate({top: '-6.96rem'},"fast");
+					document.documentElement.style.overflow='hidden';
+					return
+				}
+				if(!isShow){
+					$('#tip-text').text('请勾选阅读规则按钮');
+					$('.tip').animate({top: '48vh'},"fast");
+					$('.mask').show();
+					document.documentElement.style.overflow='hidden';
+					return
+				}
+				operate('dt_yhs_点击免费换机按钮','click');
+			})
 		}
 		//调用免费换机接口
 		function changePhone(){