text: import React from 'react'
  import PureRenderMixin from 'react-addons-pure-render-mixin'
  import { connect } from 'react-redux'
  
  import HomeHeader from '../../components/HomeHeader'
  import Category from '../../components/Category'
  import Ad from './subpage/ad.js'
  import List from './subpage/List.js'
  
  
  class Home extends React.Component {
  	constructor(props) {
  		super(props)
  
  		this.shouldComponentUpdate = PureRenderMixin.shouldComponentUpdate.bind(this)
  	}
  
  	render() {
  		return (
  			<div>
  				<HomeHeader cityName={this.props.userinfo.cityName} history={this.props.history}/>
  				<Category />
  				<br/>
  				<Ad />
  				<List cityName={this.props.userinfo.cityName}/>
  
  			</div>
  		)
  	}
  }
  
  // -------------------redux react 绑定--------------------
  
  function mapStateToProps (state) {
  	return {
  		userinfo: state.userinfo
  	}
  }
  
  function mapDispatchToProps (dispatch) {
  	return {}
  }
  
  export default connect(
  	mapStateToProps,
  	mapDispatchToProps
  )(Home)
  
  