<template>
  <div id="index">
    <el-row>
      <el-col :span="24" class="main">
        <div class="w_1200">
          <el-col :span="24" class="common one">
            <el-col :span="12" class="left">
              <one></one>
            </el-col>
            <el-col :span="12" class="left">
              <two></two>
            </el-col>
          </el-col>
          <el-col :span="24" class="common two">
            <el-col :span="12" class="left">
              <thr></thr>
            </el-col>
            <el-col :span="12" class="left">
              <four></four>
            </el-col>
          </el-col>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import one from './parts/one.vue';
import two from './parts/two.vue';
import thr from './parts/thr.vue';
import four from './parts/four.vue';
import { mapState, createNamespacedHelpers } from 'vuex';

export default {
  name: 'index',
  props: {},
  components: {
    one,
    two,
    thr,
    four,
  },
  data: function () {
    return {};
  },
  created() {},
  methods: {},
  computed: {
    ...mapState(['user']),
  },
  metaInfo() {
    return { title: this.$route.meta.title };
  },
  watch: {
    test: {
      deep: true,
      immediate: true,
      handler(val) {},
    },
  },
};
</script>

<style lang="less" scoped>
.main {
  min-height: 500px;
  margin: 10px 0 0 0;
  .common {
    margin: 0 0 10px 0;
    .left {
      width: 49.5%;
      height: 500px;
      overflow: hidden;
      box-shadow: 0 0 4px #409eff;
      border-radius: 10px;
      margin: 0 10px 10px 0;
      padding: 10px;
    }
    .left:nth-child(2n) {
      margin: 0 0 10px 0;
    }
  }
}
</style>
