|
@@ -0,0 +1,125 @@
|
|
|
|
+<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>
|
|
|
|
+ 不知道
|
|
|
|
+ </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 foot from '@/layout/index/foot.vue';
|
|
|
|
+export default {
|
|
|
|
+ name: 'user',
|
|
|
|
+ props: {
|
|
|
|
+ info: null, //站点信息
|
|
|
|
+ type: null, //同一框架,不同类型引用不同组件
|
|
|
|
+ basicInfo: null, //基本信息
|
|
|
|
+ },
|
|
|
|
+ components: {
|
|
|
|
+ top, //头部
|
|
|
|
+ logo, //logo
|
|
|
|
+ menuInfo, //导航
|
|
|
|
+ fenlei, //左侧分类导航
|
|
|
|
+ question, //问卷调查
|
|
|
|
+ basic, //基本信息
|
|
|
|
+ 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>
|