|  |  | @ -1,7 +1,6 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | import React, {Component} from 'react'; |  |  |  | import React, {Component} from 'react'; | 
			
		
	
		
		
			
				
					
					|  |  |  | import {getImageUrl,broadcastChannelPostMessage} from 'educoder'; |  |  |  | import {setmiyah,broadcastChannelPostMessage} from 'educoder'; | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | import {Tabs, Input, Checkbox, Button, notification,Menu} from 'antd'; |  |  |  | import {Tabs, Input, Checkbox, Button, notification,Menu} from 'antd'; | 
			
		
	
		
		
			
				
					
					|  |  |  | import md5 from 'md5'; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | import passopen from '../../../src/images/login/passopen.png'; |  |  |  | import passopen from '../../../src/images/login/passopen.png'; | 
			
		
	
		
		
			
				
					
					|  |  |  | import passoff from '../../../src/images/login/passoff.png'; |  |  |  | import passoff from '../../../src/images/login/passoff.png'; | 
			
		
	
		
		
			
				
					
					|  |  |  | import axios from 'axios'; |  |  |  | import axios from 'axios'; | 
			
		
	
	
		
		
			
				
					|  |  | @ -609,23 +608,23 @@ class LoginRegisterComponent extends Component { | 
			
		
	
		
		
			
				
					
					|  |  |  |     }; |  |  |  |     }; | 
			
		
	
		
		
			
				
					
					|  |  |  |     //短信验证
 |  |  |  |     //短信验证
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     SMSverification = () => { |  |  |  |     SMSverification = () => { | 
			
		
	
		
		
			
				
					
					|  |  |  |         const opens ="79e33abd4b6588941ab7622aed1e67e8"; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         let newopens=md5(opens+this.state.logins); |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         var url = `/accounts/get_verification_code.json`; |  |  |  |         var url = `/accounts/get_verification_code.json`; | 
			
		
	
		
		
			
				
					
					|  |  |  |         axios.get((url), { |  |  |  |         axios.get((url), { | 
			
		
	
		
		
			
				
					
					|  |  |  |             params: { |  |  |  |             params: { | 
			
		
	
		
		
			
				
					
					|  |  |  |                 login: this.state.logins, |  |  |  |                 login: this.state.logins, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 type: 1, |  |  |  |                 type: 1, | 
			
		
	
		
		
			
				
					
					|  |  |  |                 smscode:newopens |  |  |  |                 smscode:setmiyah(this.state.logins) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |             } |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |         }).then((result) => { |  |  |  |         }).then((result) => { | 
			
		
	
		
		
			
				
					
					|  |  |  |             //验证有问题{"status":1,"message":"success"}
 |  |  |  |             //验证有问题{"status":1,"message":"success"}
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             // console.log(result);
 |  |  |  |             // console.log(result);
 | 
			
		
	
		
		
			
				
					
					|  |  |  |             this.openNotification("验证码已发送,请注意查收!",2); |  |  |  |             if(result.data.status===1){ | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |                 this.openNotification("验证码已发送,请注意查收!",2); | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             }else{ | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             } | 
			
		
	
		
		
			
				
					
					|  |  |  |         }).catch((error) => { |  |  |  |         }).catch((error) => { | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |             this.openNotification(result.data.success,2); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         }) |  |  |  |         }) | 
			
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
	
		
		
			
				
					|  |  | 
 |