|
|
@ -392,6 +392,15 @@ class NewHeader extends Component {
|
|
|
|
// return false;
|
|
|
|
// return false;
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
onSearchhref = (value) => {
|
|
|
|
|
|
|
|
window.location.href ="/search?value="+value;
|
|
|
|
|
|
|
|
// let code = e.keyCode;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if(code == 13) {
|
|
|
|
|
|
|
|
// header_search(this);
|
|
|
|
|
|
|
|
// return false;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
hideAddcoursestypes=()=>{
|
|
|
|
hideAddcoursestypes=()=>{
|
|
|
|
|
|
|
|
|
|
|
@ -719,7 +728,7 @@ submittojoinclass=(value)=>{
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<Search
|
|
|
|
<Search
|
|
|
|
placeholder="实践课程/翻转课堂/开发社区/交流问答"
|
|
|
|
placeholder="实践课程/翻转课堂/开发社区/交流问答"
|
|
|
|
// onSearch={value => console.log(value)}
|
|
|
|
onSearch={this.onSearchhref}
|
|
|
|
|
|
|
|
|
|
|
|
onPressEnter={this.onKeywordSearchKeyDown}
|
|
|
|
onPressEnter={this.onKeywordSearchKeyDown}
|
|
|
|
style={{ width: 300 }}
|
|
|
|
style={{ width: 300 }}
|
|
|
|