|
|
|
@ -31,18 +31,23 @@ class AccountProfile extends Component {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
gotoback=()=>{
|
|
|
|
|
if(this.props.AccountProfiletype!=undefined){
|
|
|
|
|
this.setState({
|
|
|
|
|
AccountProfiletype:false
|
|
|
|
|
})
|
|
|
|
|
this.props.hideAccountProfile()
|
|
|
|
|
}else{
|
|
|
|
|
gotoback=(type)=>{
|
|
|
|
|
if(type===true){
|
|
|
|
|
window.location.href="/";
|
|
|
|
|
this.setState({
|
|
|
|
|
AccountProfiletype:false
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
if(this.props.AccountProfiletype!=undefined){
|
|
|
|
|
this.setState({
|
|
|
|
|
AccountProfiletype:false
|
|
|
|
|
})
|
|
|
|
|
this.props.hideAccountProfile()
|
|
|
|
|
}else{
|
|
|
|
|
window.location.href="/";
|
|
|
|
|
this.setState({
|
|
|
|
|
AccountProfiletype:false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -52,7 +57,7 @@ okText: '立即完成',
|
|
|
|
|
okHref: '/account/certification'
|
|
|
|
|
*/
|
|
|
|
|
render() {
|
|
|
|
|
const { content, okText, okHref } = this.props;
|
|
|
|
|
const { content, okText, okHref,cannelText,Accounturltype} = this.props;
|
|
|
|
|
return(
|
|
|
|
|
<Modal
|
|
|
|
|
keyboard={false}
|
|
|
|
@ -67,7 +72,7 @@ render() {
|
|
|
|
|
<div className="task-popup-content">
|
|
|
|
|
<p className="task-popup-text-center font-16"> {content || '您需要去完善您的个人资料,才能使用此功能'}</p>
|
|
|
|
|
<div className="clearfix mt30 edu-txt-center">
|
|
|
|
|
<a className="task-btn mr30" onClick={()=>this.gotoback()}>稍后完善</a>
|
|
|
|
|
<a className="task-btn mr30" onClick={()=>this.gotoback(Accounturltype)}>{cannelText ||'稍后完善'}</a>
|
|
|
|
|
<a className="task-btn task-btn-orange" href={ okHref || "/account/profile/edit" }> {okText || '立即完善'}</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|