<template>
  <div id="index">
    <el-row>
      <el-col :span="24" class="style">
        <el-col :span="24" class="top">
          <top></top>
        </el-col>
        <el-col :span="24" class="menu">
          <div class="w_1200">
            <menus></menus>
          </div>
        </el-col>
        <el-col :span="24" class="main">
          <div class="w_1200">
            <el-col :span="24">
              <el-col :span="8" class="left">
                <demand :demandlist="demandlist"></demand>
              </el-col>
              <el-col :span="16" class="right"><right :ztytList="ztytList" :jswdList="jswdList" :hyyjList="hyyjList" :kjpxList="kjpxList"></right></el-col>
            </el-col>
          </div>
        </el-col>
        <el-col :span="24" class="foot">
          <div class="w_1200">
            <foot></foot>
          </div>
        </el-col>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import top from '@/layout/common/top.vue';
import menus from '@/layout/common/menus.vue';
import foot from '@/layout/common/foot.vue';
import demand from './parts/demand.vue';
import right from './parts/right.vue';

import { mapState, createNamespacedHelpers } from 'vuex';
export default {
  name: 'index',
  props: {},
  components: {
    top,
    menus,
    demand,
    right,

    foot,
  },
  data: function() {
    return {
      demandlist: [
        {
          title: 'ceshiceceshiceshichiceshiceshiceshiceshiceshiceshi',
          date: '2019-03-04',
        },
        { title: '16条', date: '2019-03-04' },
      ],
      ztytList: [
        {
          title: '试测试测',
          date: '2013-12-03',
        },
        {
          title: '16条',
          date: '2013-12-03',
        },
      ],

      jswdList: [
        {
          title: '测试测试测试测',
          date: '2013-12-03',
        },
        {
          title: '8条',
          date: '2013-12-03',
        },
      ], //技术问答
      hyyjList: [
        {
          title: '测试测试',
          date: '2013-12-03',
        },
        {
          title: '16条',
          date: '2013-12-03',
        },
      ], //行业研究
      kjpxList: [
        {
          title: '16条',
          date: '2013-12-03',
        },
      ], //科技培训
    };
  },
  created() {},
  methods: {},
  computed: {
    ...mapState(['user']),
    pageTitle() {
      return `${this.$route.meta.title}`;
    },
  },
  metaInfo() {
    return { title: this.$route.meta.title };
  },
};
</script>

<style lang="less" scoped>
.w_1200 {
  width: 1200px;
  margin: 0 auto;
}
.style {
  .menu {
    height: 70px;
    margin: 0 0 10px 0;
  }
  .main {
    min-height: 420px;
    margin: 0 0 10px 0;
    .left {
      min-height: 420px;
      background: #fff;
      margin: 0 10px 0 0;
    }
    .right {
      width: 65.8%;
      min-height: 730px;
      background: #fff;
    }
  }
  .foot {
    height: 135px;
  }
}
</style>
