dev_home
杨树明 6 years ago
parent cd1001038f
commit 94a59821c2

@ -144,7 +144,8 @@ class CompetitionsIndex extends Component{
<span>报名截止时间{item.enroll_end_time}</span>, <span>报名截止时间{item.enroll_end_time}</span>,
]} ]}
extra={ extra={
<div className={"pt50"} style={{"width":'305px'}}> <div className={"pt50"} style={{"width":'314px'}}>
<Row gutter={16}> <Row gutter={16}>
<Col className="gutter-row" span={6}> <Col className="gutter-row" span={6}>
<div className="gutter-box CompetitionsIndexdadels">奖金</div> <div className="gutter-box CompetitionsIndexdadels">奖金</div>

@ -88,7 +88,8 @@
} }
.CompetitionsIndex .gutter-row{ .CompetitionsIndex .gutter-row{
margin-right:20px; /*margin-right:20px;*/
width: 33%;
} }
.pt50{ .pt50{

@ -373,7 +373,15 @@ class CompetitionCommon extends Component{
className={"color000"}>{data && data.start_time}{data && data.end_time}</span></Col> className={"color000"}>{data && data.start_time}{data && data.end_time}</span></Col>
{/*<Col></Col>*/} {/*<Col></Col>*/}
</Col> </Col>
<style>
{
`
.ant-col-6{
width: 30%;
}
`
}
</style>
<Col className={"competitionbannerdiv mt10"}> <Col className={"competitionbannerdiv mt10"}>
<Row gutter={16}> <Row gutter={16}>
<Col className="gutter-row" span={6}> <Col className="gutter-row" span={6}>

@ -11,13 +11,34 @@ class Osshackathon extends Component {
constructor(props) { constructor(props) {
super(props) super(props)
this.state = { this.state = {
page:1,
limit:10,
search:undefined
} }
} }
componentDidMount() { componentDidMount() {
this.getosshackathon();
} }
getosshackathon=()=>{
let {page,limit,search}=this.state;
let url=`/osshackathon.json`;
axios.get(url,{params:{
page:page,
limit:limit,
search:search,
}}).then((result)=>{
if(result.status==200){
console.log(result)
this.setState({
})
}
}).catch((error)=>{
console.log(error);
})
}
componentDidUpdate = (prevProps) => { componentDidUpdate = (prevProps) => {

Loading…
Cancel
Save