<template>
  <div id="policy">
    <el-row>
      <el-col :span="24" class="top">
        <top></top>
      </el-col>
      <el-col :span="24" class="logo">
        <div class="w_1200">
          <logo :info="info"></logo>
        </div>
      </el-col>
      <el-col :span="24" class="menu">
        <div class="w_1200">
          <menuInfo></menuInfo>
        </div>
      </el-col>
      <el-col :span="24" class="main">
        <div class="w_1200">
          <el-col :span="24" class="rightcont">
            <listcontext v-on="$listeners" :contentList="contentList" :columnName="columnName" v-if="display === 'list'" :total="total"></listcontext>
            <detali v-else :policyInfo="policyInfo"></detali>
          </el-col>
        </div>
      </el-col>
      <el-col :span="24" class="foot">
        <div class="w_1200">
          <foot :info="info"></foot>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import top from '@/layout/index/top.vue';
import logo from '@/layout/index/logo.vue';
import menuInfo from '@/layout/index/menuInfo.vue';
import foot from '@/layout/index/foot.vue';
import fenlei from '@/layout/policy/fenlei.vue';
import listcontext from '@/layout/supermarket/listcontext.vue';
import detali from '@/layout/supermarket/detali.vue';
export default {
  name: 'policy',
  props: {
    info: null, //站点信息
    columnName: null, //栏目标题
    contentList: null, //内容
    total: null,
    display: { type: String, default: 'list' },
    policyInfo: null,
  },
  components: {
    top, //头部
    logo, //logo
    menuInfo, //导航
    foot, //底部
    listcontext, //右边栏
    detali,
  },
  data: () => ({}),
  created() {},
  computed: {},
  methods: {
    clickList({ id }) {
      console.log(id);
    },
  },
};
</script>

<style lang="less" scoped>
.w_1200 {
  width: 1200px;
  margin: 0 auto;
}
.top {
  height: 40px;
  overflow: hidden;
  background-color: rgba(11, 58, 125, 0.8);
}
.logo {
  height: 200px;
  overflow: hidden;
}
.menu {
  height: 70px;
  overflow: hidden;
}

.main {
  min-height: 600px;
  overflow: hidden;
  margin: 10px 0;
}
.main .fenlei {
  float: left;
  width: 240px;
  min-height: 600px;
  margin: 0 10px 0 0;
  overflow: hidden;
  background-color: #ffffff;
}
.main .rightcont {
  float: left;
  width: 1200px;
  min-height: 600px;
  overflow: hidden;
  background-color: #fff;
}

.main .link {
  float: left;
  width: 100%;
  height: 100px;
  overflow: hidden;
  background-color: #fff;
}
.foot {
  float: left;
  width: 100%;
  height: 120px;
  overflow: hidden;
}
</style>
