<template>
  <div id="unit">
    <el-row>
      <el-col :span="24" class="unit" :style="'background: url(' + unittop.logoBei + ');height:360px;'">
        <div class="w_1200">
          <el-col :span="24" class="topTitle">
            {{ unittop.title }}
          </el-col>
          <el-col :span="24" class="info">
            <el-col :span="3" class="list" v-for="(item, index) in unitlist" :key="index">
              <el-link :underline="false">
                <el-image style="width:85px;height:85px;border-radius:90px;" :src="item.pic" @click="toOpen(item.url)"></el-image>
              </el-link>
            </el-col>
          </el-col>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'unit',
  props: {
    unittop: null,
    unitlist: null,
  },
  components: {},
  data: () => ({
    pic: require('../../../assets/shengyuan.png'),
  }),
  created() {},
  computed: {},
  methods: {
    toOpen(url) {
      window.open(url);
    },
  },
};
</script>

<style lang="less" scoped>
.w_1200 {
  width: 1200px;
  margin: 0 auto;
}
.unit {
  height: 360px;
}
.topTitle {
  font-size: 36px;
  color: #fff;
  text-align: center;
  height: 120px;
  line-height: 120px;
}
.info {
  padding: 0 55px;
}
.list {
  text-align: center;
  width: 85px;
  margin: 10px 18px;
}
</style>
