<template>
  <div id="top">
    <el-row>
      <el-col :span="24" class="top" :style="`background: url('${topInfo && topInfo.banner ? topInfo.banner : ''} ') center center;min-height:300px;`">
        <div class="w_1200">
          <el-col :span="2">
            <el-image style="width:100px;height:100px" :src="topInfo.logo" v-if="topInfo && topInfo.logo"></el-image>
          </el-col>
          <el-col :span="22" class="topTit">
            <el-link :underline="false">
              {{ topInfo && topInfo.name ? topInfo.name : '' }}
            </el-link>
          </el-col>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'top',
  props: {
    topInfo: null,
  },
  components: {},
  data: () => ({}),
  created() {},
  computed: {},
  methods: {},
};
</script>

<style lang="less" scoped>
.w_1200 {
  width: 1200px;
  margin: 0 auto;
}
.top {
  padding: 80px 0;
}
.top .topTit {
  height: 104px;
  line-height: 104px;
  padding: 0 10px;
}
.top .topTit .el-link.el-link--default {
  font-size: 3em;
  font-family: cursive;
  color: #850000;
  text-shadow: 2px 2px 0 #fff;
}
</style>
