commit
983815b9e7
@ -1,58 +1,86 @@
|
|||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { SnackbarHOC } from 'educoder';
|
import { SnackbarHOC } from 'educoder';
|
||||||
import {BrowserRouter as Router,Route,Switch} from 'react-router-dom';
|
import {BrowserRouter as Router,Route,Switch} from 'react-router-dom';
|
||||||
import {Tooltip,Menu,Pagination} from 'antd';
|
import {Tooltip,Menu,Pagination} from 'antd';
|
||||||
import Loadable from 'react-loadable';
|
import Loadable from 'react-loadable';
|
||||||
import Loading from '../../../Loading';
|
import Loading from '../../../Loading';
|
||||||
import axios from 'axios';
|
import axios from 'axios';
|
||||||
import {getImageUrl} from 'educoder';
|
import {getImageUrl} from 'educoder';
|
||||||
import { TPMIndexHOC } from '../../tpm/TPMIndexHOC';
|
import { TPMIndexHOC } from '../../tpm/TPMIndexHOC';
|
||||||
import { CNotificationHOC } from '../../courses/common/CNotificationHOC'
|
import { CNotificationHOC } from '../../courses/common/CNotificationHOC';
|
||||||
import "./usersInfo.css"
|
import GotoQQgroup from '../../../modal/GotoQQgroup';
|
||||||
|
|
||||||
class publicCreateNew extends Component{
|
import "./usersInfo.css"
|
||||||
constructor(props){
|
|
||||||
super(props);
|
class publicCreateNew extends Component{
|
||||||
}
|
constructor(props){
|
||||||
|
super(props);
|
||||||
//头部获取是否已经登录了
|
this.state={
|
||||||
getUser=(url)=> {
|
}
|
||||||
if (this.props.user&&this.props.user.email===undefined||this.props.user&&this.props.user.email===null||this.props.user&&this.props.user.email==="") {
|
}
|
||||||
this.props.showNotification("请先绑定邮箱,谢谢");
|
|
||||||
return
|
//头部获取是否已经登录了
|
||||||
}
|
getUser=(url,name)=> {
|
||||||
|
if (this.props.user&&this.props.user.email===undefined||this.props.user&&this.props.user.email===null||this.props.user&&this.props.user.email==="") {
|
||||||
|
this.props.showNotification("请先绑定邮箱,谢谢");
|
||||||
if(url !== undefined || url!==""){
|
return
|
||||||
window.location.href = url;
|
}
|
||||||
}
|
if(name==="新建实训"){
|
||||||
}
|
if(this.props&&this.props.current_user&&this.props.current_user.is_shixun_marker===false){
|
||||||
render() {
|
this.props.setgoshowqqgtounp(true);
|
||||||
let {href,name,index}=this.props;
|
return;
|
||||||
return (
|
}
|
||||||
<div className="square-Item" style={{"height":`${index=="1"?"289":index=="2"?"298":index=="3"?"295":"289"}px`}}>
|
}
|
||||||
<div className="substance substancepad">
|
|
||||||
{this.props.Createtype==="projects"?<a onClick={()=>this.getUser(href)}>
|
|
||||||
<div className="substancenenew">
|
if(url !== undefined || url!==""){
|
||||||
<div className="leftten"></div>
|
window.location.href = url;
|
||||||
<div className="topten"></div>
|
}
|
||||||
</div>
|
}
|
||||||
</a>: <a href={`${href}`}>
|
|
||||||
<div className="substancenenew">
|
getUsers=(url,name)=> {
|
||||||
<div className="leftten"></div>
|
|
||||||
<div className="topten"></div>
|
if(name==="新建实训"){
|
||||||
</div>
|
if(this.props&&this.props.current_user&&this.props.current_user.is_shixun_marker===false){
|
||||||
</a>}
|
this.props.setgoshowqqgtounp(true);
|
||||||
</div>
|
return;
|
||||||
<div className="edu-txt-center course-bottom">
|
}
|
||||||
<div className="inline color-grey-6">
|
}
|
||||||
<span className="fl ml10 mr10 squareIconSpan substancefont">
|
if(url !== undefined || url!==""){
|
||||||
{name}
|
window.location.href = url;
|
||||||
</span>
|
}
|
||||||
</div>
|
}
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
}
|
render() {
|
||||||
}
|
let {href,name,index}=this.props;
|
||||||
export default publicCreateNew;
|
|
||||||
|
return (
|
||||||
|
<div className="square-Item" style={{"height":`${index=="1"?"289":index=="2"?"298":index=="3"?"295":"289"}px`}}>
|
||||||
|
|
||||||
|
<div className="substance substancepad">
|
||||||
|
{this.props.Createtype==="projects"?<a onClick={()=>this.getUser(href,name)}>
|
||||||
|
<div className="substancenenew">
|
||||||
|
<div className="leftten"></div>
|
||||||
|
<div className="topten"></div>
|
||||||
|
</div>
|
||||||
|
</a>: <a onClick={()=>this.getUsers(href,name)}>
|
||||||
|
<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">
|
||||||
|
<span className="fl ml10 mr10 squareIconSpan substancefont">
|
||||||
|
{name}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
export default publicCreateNew;
|
||||||
|
Loading…
Reference in new issue