dev_oauth
			
			
		
		
							parent
							
								
									a38249f002
								
							
						
					
					
						commit
						dc931ec403
					
				| @ -0,0 +1,74 @@ | |||||||
|  | import React, { Component } from 'react'; | ||||||
|  | import { Modal} from 'antd'; | ||||||
|  | import axios from 'axios'; | ||||||
|  | //认证职业
 | ||||||
|  | class Certifiedprofessional extends Component { | ||||||
|  | 
 | ||||||
|  | 	constructor(props) { | ||||||
|  | 		super(props); | ||||||
|  | 		this.state={ | ||||||
|  | 			occupation:1, | ||||||
|  | 			mydisplay:false, | ||||||
|  | 		} | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 	componentDidMount() { | ||||||
|  | 		// console.log("加入金品课堂");
 | ||||||
|  | 		// console.log(this.props);
 | ||||||
|  | 
 | ||||||
|  | 	} | ||||||
|  | 	componentDidMount() { | ||||||
|  | 		axios.interceptors.response.use((response) => { | ||||||
|  | 			if (response != undefined) | ||||||
|  | 				if (response && response.data.status === -1) { | ||||||
|  |             if(response.data.message==="该课堂要求成员完成实名认证"){ | ||||||
|  | 
 | ||||||
|  | 						}else  if(response.data.message==="该课堂要求成员完成职业认证"){ | ||||||
|  | 
 | ||||||
|  | 						}else if(response.data.message==="该课堂要求成员完成实名和职业认证"){ | ||||||
|  | 
 | ||||||
|  | 						} | ||||||
|  | 				} | ||||||
|  | 			return response; | ||||||
|  | 		}, (error) => { | ||||||
|  | 			//TODO 这里如果样式变了会出现css不加载的情况
 | ||||||
|  | 
 | ||||||
|  | 		}); | ||||||
|  | 	} | ||||||
|  | 	modalCancel=()=>{ | ||||||
|  | 		this.props.ysljoinmodalCancel(); | ||||||
|  | 	}; | ||||||
|  | 
 | ||||||
|  | 	setDownload=()=>{ | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 	} | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 	render() { | ||||||
|  | 		// console.log("加入金品课堂2");
 | ||||||
|  | 		// console.log(this.props);
 | ||||||
|  | 		return( | ||||||
|  | 			<Modal | ||||||
|  | 				keyboard={false} | ||||||
|  | 				closable={false} | ||||||
|  | 				footer={null} | ||||||
|  | 				destroyOnClose={true} | ||||||
|  | 				title="因为以下原因,您暂时不能进行操作" | ||||||
|  | 				centered={true} | ||||||
|  | 				visible={this.state.mydisplay} | ||||||
|  | 				width="600px" | ||||||
|  | 			> | ||||||
|  | 				<div className="educouddiv"> | ||||||
|  | 					<div className={"tabeltext-alignleft"}><p style={{fontSize: "16px",marginTop:"46px"}}>请在完成条件后重试</p></div> | ||||||
|  | 					<div className="clearfix  edu-txt-center" style={{marginTop:"98px"}}> | ||||||
|  | 						<a className="task-btn mr30" onClick={()=>this.modalCancel()}>取消</a> | ||||||
|  | 						<a className="task-btn task-btn-orange" onClick={()=>this.setDownload()}>确认</a> | ||||||
|  | 					</div> | ||||||
|  | 				</div> | ||||||
|  | 			</Modal> | ||||||
|  | 		) | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | export default Certifiedprofessional; | ||||||
					Loading…
					
					
				
		Reference in new issue