|
|
@ -39,14 +39,16 @@ class Osshackathon extends Component {
|
|
|
|
search:search,
|
|
|
|
search:search,
|
|
|
|
}}).then((result)=>{
|
|
|
|
}}).then((result)=>{
|
|
|
|
if(result.status==200){
|
|
|
|
if(result.status==200){
|
|
|
|
console.log(result)
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
data:result.data,
|
|
|
|
data:result.data,
|
|
|
|
spinning:false
|
|
|
|
spinning:false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
spinning:false
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}).catch((error)=>{
|
|
|
|
}).catch((error)=>{
|
|
|
|
console.log(error);
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
spinning:true
|
|
|
|
spinning:true
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -92,6 +94,15 @@ class Osshackathon extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
Signupentry=(id)=>{
|
|
|
|
Signupentry=(id)=>{
|
|
|
|
// 用户报名
|
|
|
|
// 用户报名
|
|
|
|
|
|
|
|
if(this.props.checkIfLogin()===false){
|
|
|
|
|
|
|
|
this.props.showLoginDialog()
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(this.props.checkIfProfileCompleted()===false){
|
|
|
|
|
|
|
|
this.props.showProfileCompleteDialog()
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
this.props.confirm({
|
|
|
|
this.props.confirm({
|
|
|
|
content: `是否确认报名?`,
|
|
|
|
content: `是否确认报名?`,
|
|
|
|
onOk: () => {
|
|
|
|
onOk: () => {
|
|
|
@ -157,7 +168,7 @@ class Osshackathon extends Component {
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
if (response.data.status == 0) {
|
|
|
|
if (response.data.status == 0) {
|
|
|
|
// {"status":1,"message":"删除成功"}
|
|
|
|
// {"status":1,"message":"删除成功"}
|
|
|
|
this.getosshackathonlist()
|
|
|
|
this.getosshackathonlist();
|
|
|
|
this.props.showNotification(`删除成功`);
|
|
|
|
this.props.showNotification(`删除成功`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -172,6 +183,9 @@ class Osshackathon extends Component {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
search:value
|
|
|
|
search:value
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
if(value.length>300){
|
|
|
|
|
|
|
|
this.props.showNotification(`搜索字数大于300个字`);
|
|
|
|
|
|
|
|
}
|
|
|
|
let {page,limit,search}=this.state;
|
|
|
|
let {page,limit,search}=this.state;
|
|
|
|
this.getosshackathon(page,limit,value)
|
|
|
|
this.getosshackathon(page,limit,value)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -280,7 +294,7 @@ class Osshackathon extends Component {
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
<Card className={"OsshackathonCard mb20"} key={key}>
|
|
|
|
<Card className={"OsshackathonCard mb20"} key={key}>
|
|
|
|
<Row>
|
|
|
|
<Row>
|
|
|
|
<Col span={6} className={"OsshackathonCardtitle"}>
|
|
|
|
<Col span={20} className={"OsshackathonCardtitle"}>
|
|
|
|
{item.name}
|
|
|
|
{item.name}
|
|
|
|
</Col>
|
|
|
|
</Col>
|
|
|
|
|
|
|
|
|
|
|
@ -319,7 +333,7 @@ class Osshackathon extends Component {
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
<Card className={"OsshackathonCard mb20"}>
|
|
|
|
<Card className={"OsshackathonCard mb20"}>
|
|
|
|
<Row>
|
|
|
|
<Row>
|
|
|
|
<Col span={6} className={"OsshackathonCardtitle"}>
|
|
|
|
<Col span={20} className={"OsshackathonCardtitle"}>
|
|
|
|
{item.name}
|
|
|
|
{item.name}
|
|
|
|
</Col>
|
|
|
|
</Col>
|
|
|
|
<Col span={4} className={"fr textcenter width14bai"}>
|
|
|
|
<Col span={4} className={"fr textcenter width14bai"}>
|
|
|
@ -346,7 +360,7 @@ class Osshackathon extends Component {
|
|
|
|
</Row>
|
|
|
|
</Row>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</Col>
|
|
|
|
</Col>
|
|
|
|
<Col span={18} pull={6} className={"minheight50px "}>
|
|
|
|
<Col span={18} pull={6} className={"minheight50px ml5"}>
|
|
|
|
{item.description}
|
|
|
|
{item.description}
|
|
|
|
</Col>
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
</Row>
|
|
|
|