dev_aliyun
daiao 5 years ago
commit 112ac77ea7

@ -145,10 +145,21 @@
if (!title || title.length == 0) { if (!title || title.length == 0) {
$("#title_notice").removeClass("none"); $("#title_notice").removeClass("none");
$("#title_notice").html("请输入标题");
return return
}else{ }else{
$("#title_notice").addClass("none"); $("#title_notice").addClass("none");
} }
if (!title || title.length >10) {
$("#title_notice").removeClass("none");
$("#title_notice").html("字数不能超过10个字");
return
}else{
$("#title_notice").addClass("none");
}
if (!content || content.length == 0) { if (!content || content.length == 0) {
$("#des_notice").removeClass("none"); $("#des_notice").removeClass("none");
return return

@ -53,7 +53,7 @@ class SiderBar extends Component {
<div className="-task-sidebars" style={{right: "240px"}}> <div className="-task-sidebars" style={{right: "240px"}}>
<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>

Loading…
Cancel
Save