<template>
  <div class="materialist">
    <el-carousel :interval="4000" type="card" height="200px" :autoplay="false" trigger="click" arrow="never">
      <el-carousel-item v-for="(item, index) in MateriaList" :key="index">
        <img :src="item.imgUrl">
      </el-carousel-item>
    </el-carousel>
  </div>
</template>
<script>
export default {
  data () {
    return {
      MateriaList: [
        {
          imgUrl: 'http://img.zcool.cn/community/0125fd5770dfa50000018c1b486f15.jpg@1280w_1l_2o_100sh.jpg'
        },
        {
          imgUrl: 'http://img.zcool.cn/community/0125fd5770dfa50000018c1b486f15.jpg@1280w_1l_2o_100sh.jpg'
        },
        {
          imgUrl: 'http://img.zcool.cn/community/0125fd5770dfa50000018c1b486f15.jpg@1280w_1l_2o_100sh.jpg'
        },
        {
          imgUrl: 'http://img.zcool.cn/community/0125fd5770dfa50000018c1b486f15.jpg@1280w_1l_2o_100sh.jpg'
        },
        {
          imgUrl: 'http://img.zcool.cn/community/0125fd5770dfa50000018c1b486f15.jpg@1280w_1l_2o_100sh.jpg'
        }
      ]
    }
  }
}
</script>
<style lang="stylus" scoped>
.materialist
  .el-carousel__item:nth-child(2n)
    background-color #99a9bf
  .el-carousel__item:nth-child(2n+1)
    background-color #d3dce6
</style>
