<template>
  <div id="user">
    <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="left">
            <el-col :span="24" class="fenlei">
              <fenlei></fenlei>
            </el-col>
            <el-col :span="24" class="question">
              <question></question>
            </el-col>
          </el-col>
          <el-col :span="19" class="right">
            <span v-if="type === 'basic'">
              <basic :basicInfo="basicInfo"></basic>
            </span>
            <span v-else-if="type === 'message'">
              <message></message>
            </span>
            <span v-else-if="type === 'userMange'">
              <userMange :shenheList="shenheList" :yishenList="yishenList"></userMange>
            </span>
            <span v-else-if="type === 'release'">
              <release :xuqiuForm="xuqiuForm" :gongjiForm="gongjiForm" :chanpinForm="chanpinForm"></release>
            </span>
            <span v-else-if="type === 'myRelease'">
              <myRelease :xuqiuYishenList="xuqiuYishenList"></myRelease>
            </span>
            <span v-else-if="type === 'audit'">
              <myRelease :xuqiuYishenList="xuqiuYishenList"></myRelease>
            </span>
            <span v-else-if="type === 'order'">
              <order :orderList="orderList"></order>
            </span>
            <span v-else-if="type === 'census'">
              <census :orderList="orderList"></census>
            </span>
            <span v-else>
              不知道
            </span>
          </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 fenlei from '@/layout/personCenter/fenlei.vue';
import question from '@/layout/personCenter/question.vue';
import basic from '@/layout/personCenter/basic.vue';
import message from '@/layout/personCenter/message.vue';
import userMange from '@/layout/personCenter/userMange.vue';
import release from '@/layout/personCenter/release.vue';
import myRelease from '@/layout/personCenter/myRelease.vue';
import order from '@/layout/personCenter/order.vue';
import census from '@/layout/personCenter/census.vue';
import foot from '@/layout/index/foot.vue';
export default {
  name: 'user',
  props: {
    info: null, //站点信息
    type: null, //同一框架，不同类型引用不同组件
    basicInfo: null, //基本信息
    shenheList: null, //用户管理-待审核用户
    yishenList: null, //用户管理-已审核用户
    xuqiuForm: null, //我要发布-需求发布
    gongjiForm: null, //我要发布-供给需求
    chanpinForm: null, //我要发布-产品发布
    xuqiuYishenList: null, //我的发布-我的需求-已审核
    orderList: null, //我的订购
  },
  components: {
    top, //头部
    logo, //logo
    menuInfo, //导航
    fenlei, //左侧分类导航
    question, //问卷调查
    basic, //基本信息
    message, //信息管理
    userMange, //用户管理
    release, //我要发布
    myRelease, //我的发布,我的审核
    order, //我的订购
    census, //统计信息
    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: 900px;
  overflow: hidden;
  margin: 10px 0;
}
.main .left {
  width: 240px;
  min-height: 900px;
  margin: 0 10px 0 0;
}
.main .left .fenlei {
  min-height: 60px;
  background-color: #fff;
  margin: 0 0 10px 0;
}
.main .left .question {
  height: 350px;
  background-color: #fff;
}
.main .right {
  min-height: 1080px;
  background-color: #fff;
}
.foot {
  float: left;
  width: 100%;
  height: 120px;
  overflow: hidden;
}
</style>
