<template>
  <card title="校友故事">
    <template #header-aside><nuxt-link to="">查看更多+</nuxt-link></template>
    <p class="tips">You are What you together， 结识5000+ 同样优秀的人！</p>
    <van-swipe class="my-swipe" :loop="false" :show-indicators="false">
      <template v-for="(item, index) in list">
        <van-swipe-item :key="index"><img :src="item.src" class="banner-img" /></van-swipe-item>
      </template>
    </van-swipe>
  </card>
</template>

<script>
import Card from '@/components/Card'
export default {
  components: { Card },
  data() {
    return {
      list: []
    }
  },
  fetch() {
    this.list = [
      { src: '/images/banner.png', href: '' },
      { src: '/images/banner.png', href: '' }
    ]
  }
}
</script>

<style lang="scss" scoped>
.tips {
  font-size: 0.1rem;
  font-weight: 500;
  color: #424242;
  margin-bottom: 0.1rem;
}
.banner-img {
  display: block;
  width: 100%;
  height: 1.51rem;
  object-fit: cover;
}
</style>
