links.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <div id="links">
  3. <el-row>
  4. <el-col :span="24" class="links">
  5. <el-col :span="3" class="txt">
  6. 友情链接
  7. </el-col>
  8. <el-col :span="21" class="info">
  9. <el-col :span="6" class="list" v-for="(item, index) in linkList" :key="index">
  10. <el-link :href="item.url" :underline="false">
  11. <el-image :src="item.pic" style="width:245px;height:53px;"></el-image>
  12. </el-link>
  13. </el-col>
  14. </el-col>
  15. </el-col>
  16. </el-row>
  17. </div>
  18. </template>
  19. <script>
  20. import { mapState, createNamespacedHelpers } from 'vuex';
  21. export default {
  22. name: 'links',
  23. props: {
  24. linkList: { type: Array },
  25. },
  26. components: {},
  27. data: function() {
  28. return {};
  29. },
  30. created() {},
  31. methods: {},
  32. computed: {
  33. ...mapState(['user']),
  34. },
  35. watch: {},
  36. };
  37. </script>
  38. <style lang="less" scoped>
  39. .links {
  40. .txt {
  41. height: 100px;
  42. text-align: center;
  43. line-height: 100px;
  44. font-size: 22px;
  45. font-weight: bold;
  46. color: #2c3250;
  47. }
  48. .info {
  49. .list {
  50. text-align: center;
  51. padding: 21px 0;
  52. }
  53. }
  54. }
  55. </style>