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