<template>
  <div id="index">
    <el-row>
      <el-col :sapn="24" class="top">
        <div class="w_1270">
          <top :info="info"></top>
        </div>
      </el-col>
      <el-col :sapn="24" class="banner">
        <banner :info="info"></banner>
      </el-col>
      <el-col :sapn="24" class="menu">
        <menuInfo :menuList="menuList" :backColor="backColor"></menuInfo>
      </el-col>
      <el-col :sapn="24" class="main">
        <div class="w_1270">
          <about :aboutInfo="aboutInfo"></about>
        </div>
      </el-col>
      <el-col :sapn="24" class="down">
        <down :info="info" :backColor="backColor"></down>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import top from '@/layout/index/top.vue';
import banner from '@/layout/index/banner.vue';
import menuInfo from '@/layout/index/menuInfo.vue';
import about from '@/layout/detail/about.vue';
import down from '@/layout/index/down.vue';
export default {
  name: 'index',
  props: {
    backColor: null, //背景颜色
    info: null, //站点信息
    menuList: null, //菜单
    aboutInfo: null, //关于我们
  },
  components: {
    top, //头部
    banner, //banner
    menuInfo, //菜单
    about, //关于我们
    down, //底部
  },
  data: () => ({}),
  created() {},
  computed: {},
  methods: {},
};
</script>

<style lang="less" scoped>
.w_1270 {
  width: 1270px;
  margin: 0 auto;
}
.top {
  height: 40px;
  overflow: hidden;
  background-color: #f5f5f54f;
}
.banner {
  height: 300px;
  overflow: hidden;
}
.menu {
  height: 50px;
  overflow: hidden;
}
.main {
  min-height: 1000px;
  background: #f6f6f6;
}
.down {
  min-height: 135px;
  overflow: hidden;
}
</style>
