import React, { Component } from 'react';
import { Modal } from 'antd';
import './../questioncss/questioncom.css'
//立即申请试用
class QuestionModal extends Component {


	render() {

		return (
			<Modal
				keyboard={false}
				closable={false}
				footer={null}
				destroyOnClose={true}
				title="提示"
				centered={true}
				visible={this.props.modalsType === undefined ? false : this.props.modalsType}
				width="442px"
			>
				<div className="educouddiv">
					{this.props.titilesm ?
						<div className={"tabeltext-alignleft mt10"}><p className="titiles">{this.props.titilesm}</p></div>

						:
						""
					}
					{
						this.props.titiless ?
							<div className={"tabeltext-alignleft mt10"}><p className="titiles">{this.props.titiless}</p></div>
							:
							""
					}
					<div className="clearfix mt30 edu-txt-center">
						{
							this.props.titilesm && this.props.titilesm === "功能正在内测中，敬请期待" ?
								""
								:
								<a className="task-btn mr30 w80" onClick={() => this.props.modalCancel()}>取消</a>
						}

						<a className="task-btn task-btn-orange w80" onClick={() => this.props.setDownload()}>{this.props.boolok ? this.props.boolok : "确定"}</a>
					</div>
				</div>
			</Modal>
		)
	}
}

export default QuestionModal;
