
import React, { Component } from 'react'
import styles from './index.less';
import router from 'umi/router';
class homeHeader extends Component {
    constructor(props) {
        super(props)
        this.state = {
            
        }
        this.handleClick = this.handleClick.bind(this)
    }

    handleClick = () =>{
        console.log('调用了')
        // router.push({pathname:'/viewHome/productDetails',query:{columnId:2}})
    }
    render() {
        return (
            <div className={styles.home_h}>
                <header className={styles.m_header}>
                    <div className={styles.m_header_box} id="my_search" style={{display:"flex",justifyContent:"space-between"}}>
                        {/* <a href="#" className={styles.styles}>亮剑集团</a> */}
                        <form action="#">
                            <span className={styles.icon_search}></span>
                            <input type="search" className={styles.search} style={{ background:"#aaa",opacity:0.6}} placeholder="科室搜索" onClick={this.handleClick}/>
                        </form>
                        {/* <a className={styles.logo_btn}>搜索</a> */}
                    </div>
                </header>
            </div>
        )
    }
}

export default homeHeader

