赛事杯调整

dev_aliyun
杨树明 5 years ago
parent 75cf7d5360
commit 3b39c43ef5

@ -30,9 +30,19 @@
</div> </div>
<div class="-task-sidebars" style="right: 240px !important;"> <div id="trophyreturn" class="-task-sidebars" style="right: 65px !important;width: 154px;">
<a onclick="trophyreturnfun();" id="closeIcon" style="position: absolute;right: 12px;top: 10px; color: #000;">
<i class="iconfont icon-shanchudiao"></i>
</a>
<a href="/competitions"> <a href="/competitions">
<img src="/images/educoder/competition/lvmeng.png" width="150px" height="150px"> <img src="/images/educoder/competition/lvmeng.png" width="150px" height="150px">
</a> </a>
</div> </div>
<script>
function trophyreturnfun(){
$("#trophyreturn").hide()
}
</script>

@ -14,7 +14,11 @@ class SiderBar extends Component {
window._initSider(); window._initSider();
} }
trophyreturnfun=()=>{
this.setState({
trophyreturn:true
})
}
render() { render() {
return ( return (
<div> <div>
@ -51,11 +55,15 @@ class SiderBar extends Component {
</div> </div>
</div> </div>
<div className="-task-sidebars" style={{right: "240px"}}> {this.state.trophyreturn===true?"":<div className="-task-sidebars" style={{right: "65x",width: "154px"}}>
<a onClick={this.trophyreturnfun} id="closeIcon"
style={{position: "absolute", right: "12px",top:"10px",color: "#000"}}>
<i className="iconfont icon-shanchudiao"></i>
</a>
<a href="/competitions"> <a href="/competitions">
<img src={getImageUrl("images/educoder/competition/lvmeng.png")} width="150px" height="150px" /> <img src={getImageUrl("images/educoder/competition/lvmeng.png")} width="150px" height="150px" />
</a> </a>
</div> </div>}
</div> </div>
); );

Loading…
Cancel
Save