|
|
|
@ -14,17 +14,36 @@ class publicCreateNew extends Component{
|
|
|
|
|
constructor(props){
|
|
|
|
|
super(props);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//头部获取是否已经登录了
|
|
|
|
|
getUser=(url)=> {
|
|
|
|
|
console.log(this.props)
|
|
|
|
|
if (!this.props.user && this.props.user.email) {
|
|
|
|
|
this.props.showNotification("请先绑定邮箱,谢谢");
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(url !== undefined || url!==""){
|
|
|
|
|
window.location.href = url;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
let {href,name,index}=this.props;
|
|
|
|
|
return (
|
|
|
|
|
<div className="square-Item" style={{"height":`${index=="1"?"289":index=="2"?"298":index=="3"?"295":"289"}px`}}>
|
|
|
|
|
<div className="substance substancepad">
|
|
|
|
|
<a href={`${href}`}>
|
|
|
|
|
<div className="substancenenew">
|
|
|
|
|
<div className="leftten"></div>
|
|
|
|
|
<div className="topten"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
{this.props.Createtype==="projects"?<a onClick={()=>this.getUser(href)}>
|
|
|
|
|
<div className="substancenenew">
|
|
|
|
|
<div className="leftten"></div>
|
|
|
|
|
<div className="topten"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</a>: <a href={`${href}`}>
|
|
|
|
|
<div className="substancenenew">
|
|
|
|
|
<div className="leftten"></div>
|
|
|
|
|
<div className="topten"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</a>}
|
|
|
|
|
</div>
|
|
|
|
|
<div className="edu-txt-center course-bottom">
|
|
|
|
|
<div className="inline color-grey-6">
|
|
|
|
|