content: import React from 'react';
  import {  Icon, Tag, Button, Carousel } from 'antd';
  
  
  class Slider extends React.Component {
      constructor(props) {
          super(props);
      }
  
      render(){
      	/*let settings ={
      		dots: true,
        		infinite: true,
        		speed: 20,
        		slidesToShow: 1,
        		slidesToScroll: 1
      	};*/
        let carbg1 = require('../../../images/slider1.jpg');
        let carbg2 = require('../../../images/slider2.jpg');
      	return (
  			<div className='slider' >
  				<Carousel className='carousel' autoplay effect="fade">
      				{/*<div><SliderImage src='http://pic.c-ctrip.com/h5/supplier_vshop/home_bg.jpg'/></div>
      				<div><SliderImage src='https://oerugfbxb.qnssl.com/wp-content/themes/Earthshaker-1/images/slide/eco.jpg'/></div>*/}
      				<div><SliderImage src={ carbg1 } /></div>
              <div><SliderImage src={ carbg2 } /></div>
    				</Carousel>
           {/* <VendorInfo />*/}
  			</div>
      	);
      	
      }
  }
  
  class VendorInfo extends React.Component{
    render(){
      return (
          <div className='vendorinfo' data-flex='dir:top cross:center mian:center'>
              <div><h2>华为笑租车</h2></div>
              <div><span>上海市长宁区凯旋路448号</span></div>
              <div><span>客服热线:021-62410215</span></div>
              <div className='borderline'></div>
              <div><span>华为笑租车--您的租车旅游顾问</span></div>
          </div>
      );
    }
  }
  
  class SliderImage extends React.Component{
  	render(){
  		let {src} = this.props;
    //   if(src.indexOf('http') == -1){
    //     src = require(src);
    //   }
  		return (
  				<img src={src} />
  		);
  	}
  }
  
  export default Slider;