|  | @@ -1,22 +1,22 @@
 | 
	
		
			
				|  |  | -// 学员地址
 | 
	
		
			
				|  |  | -export function vaildStudentUrl() {
 | 
	
		
			
				|  |  | -  const url = window.location.href;
 | 
	
		
			
				|  |  | -  let returnUrl = '';
 | 
	
		
			
				|  |  | -  if (/online/.test(url)) {
 | 
	
		
			
				|  |  | -    //线上
 | 
	
		
			
				|  |  | -    returnUrl = 'https://mstuonline.dayaedu.com';
 | 
	
		
			
				|  |  | -  } else if (/dev/.test(url)) {
 | 
	
		
			
				|  |  | -    // dev 环境
 | 
	
		
			
				|  |  | -    returnUrl = 'http://mstudev.dayaedu.com';
 | 
	
		
			
				|  |  | -  } else if (/test/.test(url)) {
 | 
	
		
			
				|  |  | -    // dev 环境
 | 
	
		
			
				|  |  | -    returnUrl = 'http://mstutest.dayaedu.com';
 | 
	
		
			
				|  |  | -  } else {
 | 
	
		
			
				|  |  | -    // 默认dev环境
 | 
	
		
			
				|  |  | -    returnUrl = 'http://mstudev.dayaedu.com';
 | 
	
		
			
				|  |  | -  }
 | 
	
		
			
				|  |  | -  return returnUrl;
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | +// // 学员地址
 | 
	
		
			
				|  |  | +// export function vaildStudentUrl() {
 | 
	
		
			
				|  |  | +//   const url = window.location.hostname;
 | 
	
		
			
				|  |  | +//   let returnUrl = '';
 | 
	
		
			
				|  |  | +//   if (/online/.test(url)) {
 | 
	
		
			
				|  |  | +//     //线上
 | 
	
		
			
				|  |  | +//     returnUrl = 'https://gym.lexiaoya.cn/mdaya/';
 | 
	
		
			
				|  |  | +//   } else if (/dev.gym/.test(url)) {
 | 
	
		
			
				|  |  | +//     // dev 环境
 | 
	
		
			
				|  |  | +//     returnUrl = 'https://dev.gym.lexiaoya.cn/mdaya/';
 | 
	
		
			
				|  |  | +//   } else if (/test.gym/.test(url)) {
 | 
	
		
			
				|  |  | +//     // dev 环境
 | 
	
		
			
				|  |  | +//     returnUrl = 'https://test.gym.lexiaoya.cn/mdaya/';
 | 
	
		
			
				|  |  | +//   } else {
 | 
	
		
			
				|  |  | +//     // 默认dev环境
 | 
	
		
			
				|  |  | +//     returnUrl = 'https://dev.gym.lexiaoya.cn/mdaya/';
 | 
	
		
			
				|  |  | +//   }
 | 
	
		
			
				|  |  | +//   return returnUrl;
 | 
	
		
			
				|  |  | +// }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  export function checkPhone(phone: string) {
 | 
	
		
			
				|  |  |    const phoneRule = /^((13[0-9])|(14(0|[5-7]|9))|(15([0-3]|[5-9]))|(16(2|[5-7]))|(17[0-8])|(18[0-9])|(19([0-3]|[5-9])))\d{8}$/;
 |