<template>
  <div id="links">
    <el-row>
      <el-col :span="24" class="links">
        <el-col :span="3" class="txt">
          友情链接
        </el-col>
        <el-col :span="21" class="info">
          <el-col :span="6" class="list" v-for="(item, index) in linkList" :key="index">
            <el-link :href="item.url" :underline="false">
              <el-image :src="item.pic" style="width:245px;height:53px;"></el-image>
            </el-link>
          </el-col>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import { mapState, createNamespacedHelpers } from 'vuex';
export default {
  name: 'links',
  props: {
    linkList: { type: Array },
  },
  components: {},
  data: function() {
    return {};
  },
  created() {},
  methods: {},
  computed: {
    ...mapState(['user']),
  },
  watch: {},
};
</script>

<style lang="less" scoped>
.links {
  .txt {
    height: 100px;
    text-align: center;
    line-height: 100px;
    font-size: 22px;
    font-weight: bold;
    color: #2c3250;
  }
  .info {
    .list {
      text-align: center;
      padding: 21px 0;
    }
  }
}
</style>
