<template>
  <div id="link">
    <el-row>
      <el-col :span="24" class="link">
        <div class="w_1200">
          <el-col :span="24" class="one">
            <el-col :span="3" class="link">
              友情链接
            </el-col>
            <el-col :span="21" class="linkImg">
              <el-col :span="6" v-for="(item, index) in links" :key="index" class="links">
                <el-link :href="item.url" :underline="false">
                  <el-image :src="item.pic"></el-image>
                </el-link>
              </el-col>
            </el-col>
          </el-col>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { mapState, createNamespacedHelpers } from 'vuex';
export default {
  metaInfo() {
    return { title: this.$route.meta.title };
  },
  name: 'link1',
  props: {
    links: { type: Array },
  },
  components: {},
  data: function() {
    return {};
  },
  created() {},
  methods: {},
  computed: {
    ...mapState(['user']),
  },
};
</script>

<style lang="less" scoped>
.w_1200 {
  width: 1200px;
  margin: 0 auto;
}
.link {
  margin-bottom: 10px;
  .one {
    height: 100px;
    background-color: #fff;
    .link {
      font-size: 22px;
      font-weight: bold;
      color: #2c3250;
      height: 100px;
      line-height: 100px;
      text-align: center;
    }
    .linkImg {
      padding: 25px 0px;
      .links {
        text-align: center;
        .el-image {
          width: 245px;
          height: 50px;
        }
      }
    }
  }
}
</style>
