<template>
  <div id="supermarket">
    <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="5" class="fenlei">
            <fenlei v-on="$listeners" :nativeList="nativeList"></fenlei>
          </el-col>
          <span v-if="display === 'first'">
            <el-col :span="19" class="rightcont">
              <rightcont :jishuList="jishuList" :chanpinList="chanpinList" :serviceList="serviceList"></rightcont>
            </el-col>
            <el-col :span="24" class="fabu">
              <fabu :fabuList="chanpinList"></fabu>
            </el-col>
            <el-col :span="24" class="jiaoyi">
              <jiaoyi :tableData="tableData"></jiaoyi>
            </el-col>
          </span>
          <span v-else-if="display === 'second'">
            <el-col :span="19" class="second">
              <schoolInfo :schoolList="schoolList" :schoolTotal="schoolTotal"></schoolInfo>
            </el-col>
          </span>
          <span v-else-if="display === 'thirth'">
            <el-col :span="19" class="second">
              <scientific :scientificList="scientificList" :scientificTotal="scientificTotal"></scientific>
            </el-col>
          </span>
          <span v-else-if="display === 'fourth'">
            <el-col :span="19" class="second">
              <company :companyList="companyList" :companyTotal="companyTotal"></company>
            </el-col>
          </span>
          <span v-else-if="display === 'fivth'">
            <el-col :span="19" class="second">
              <mechanism :mechanismList="mechanismList" :mechanismTotal="mechanismTotal"></mechanism>
            </el-col>
          </span>
          <span v-else-if="display === 'sixth'">
            <el-col :span="19" class="second">
              <serve :serveList="serviceList" :serveTotal="serveTotal"></serve>
            </el-col>
          </span>
          <span v-else-if="display === 'seventh'">
            <el-col :span="19" class="second">
              <technology :serveList="jishuList" :serveTotal="jishuTotal"></technology>
            </el-col>
          </span>
          <span v-else-if="display === 'eighth'">
            <el-col :span="19" class="second">
              <product :serveList="chanpinList" :serveTotal="chanpinTotal"></product>
            </el-col>
          </span>
          <span v-else-if="display === 'nineth'">
            <el-col :span="19" class="second">
              <infomate :serveList="serviceList" :serveTotal="serveTotal"></infomate>
            </el-col>
          </span>
        </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 fenlei from '@/layout/supermarket/fenlei.vue';
import rightcont from '@/layout/supermarket/rightcont.vue';
import schoolInfo from '@/layout/supermarket/schoolInfo.vue';
import scientific from '@/layout/supermarket/scientific.vue';
import company from '@/layout/supermarket/company.vue';
import mechanism from '@/layout/supermarket/mechanism.vue';
import serve from '@/layout/supermarket/serve.vue';
import technology from '@/layout/supermarket/technology.vue';
import product from '@/layout/supermarket/product.vue';
import infomate from '@/layout/supermarket/infomate.vue';
import fabu from '@/layout/supermarket/fabu.vue';
import jiaoyi from '@/layout/supermarket/jiaoyi.vue';
import foot from '@/layout/index/foot.vue';

export default {
  name: 'supermarket',
  props: {
    info: null, //站点信息
    nativeList: null, //商务分类
    display: { type: String, default: 'first' },
    jishuList: null, //技术供求
    jishuTotal: null, //技术分页
    chanpinList: null, //产品供求，最新发布
    chanpinTotal: null, //产品分页
    serviceList: null, //服务供求
    serveTotal: null, //服务分页
    tableData: null, //交易展示
    schoolList: null, //高校院所
    schoolTotal: null, //分页
    scientificList: null, //科研院所
    scientificTotal: null, //分页
    companyList: null, //科技企业
    companyTotal: null, //分页
    mechanismList: null, //机构团体
    mechanismTotal: null, //分页
  },
  components: {
    top, //头部
    logo, //logo
    menuInfo, //导航
    fenlei, //商务分类
    rightcont, //商务分类右侧信息列表
    schoolInfo, //高校院所
    scientific, //科研院所
    mechanism, //机构团体
    company, //科技企业
    serve, //资讯服务
    technology, //技术成果
    product, //创新产品
    infomate, //资讯服务
    fabu, //发布信息列表
    jiaoyi, //交易展示
    foot, //底部
  },
  data: () => ({}),
  created() {},
  computed: {},
  methods: {},
};
</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;
  height: 600px;
  margin: 0 10px 10px 0;
  overflow: hidden;
  background-color: #ffffff;
}
.main .rightcont {
  float: left;
  width: 950px;
  min-height: 600px;
  margin: 0 0 10px 0;
  overflow: hidden;
}
.second {
  float: left;
  width: 950px;
  min-height: 1000px;
  margin: 0 0 10px 0;
  overflow: hidden;
  background-color: #fff;
}
.main .fabu {
  float: left;
  width: 1200px;
  min-height: 10px;
  background-color: #ffffff;
  margin: 0 0 10px 0;
}
.main .jiaoyi {
  float: left;
  width: 1200px;
  min-height: 10px;
  background-color: #ffffff;
}
.foot {
  float: left;
  width: 100%;
  height: 120px;
  overflow: hidden;
}
</style>
