123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- <template>
- <div id="index">
- <el-row>
- <el-col :span="24" class="style">
- <el-col :span="24" class="top">
- 头部
- </el-col>
- <el-col :span="24" class="banner">
- <div class="w_1200">
- logo
- </div>
- </el-col>
- <el-col :span="24" class="menu">
- <div class="w_1200">
- 菜单
- </div>
- </el-col>
- <el-col :span="24" class="main">
- <div class="w_1200">
- <el-col :span="5" class="left">
- <newsQuestion></newsQuestion>
- </el-col>
- <el-col :span="18" class="right">
- <infoList :oneList="oneList" :twoList="twoList" :threeList="threeList"></infoList>
- </el-col>
- </div>
- </el-col>
- <el-col :span="24" class="foot">
- <div class="w_1200">
- 底部
- </div>
- </el-col>
- </el-col>
- </el-row>
- </div>
- </template>
- <script>
- import newsQuestion from '@/layout/news/newsQuestion.vue';
- import infoList from '@/layout/news/infoList.vue';
- import { mapState, createNamespacedHelpers } from 'vuex';
- export default {
- name: 'index',
- props: {},
- components: {
- newsQuestion,
- infoList,
- },
- data: function() {
- return {
- oneList: [
- {
- title: '標題',
- date: '2020-01-01',
- },
- {
- title: '八条数据',
- date: '2020-01-01',
- },
- ],
- twoList: [
- {
- title: '標題',
- date: '2020-01-01',
- },
- {
- title: '八条数据',
- date: '2020-01-01',
- },
- ],
- threeList: [
- {
- title: '標題',
- date: '2020-01-01',
- },
- {
- title: '八条数据',
- date: '2020-01-01',
- },
- ],
- };
- },
- 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 {
- .top {
- height: 40px;
- }
- .banner {
- height: 220px;
- }
- .menu {
- height: 70px;
- margin: 0 0 10px 0;
- }
- .main {
- min-height: 600px;
- margin: 0 0 10px 0;
- .left {
- min-height: 1050px;
- background: #fff;
- margin: 0 10px 0 0;
- }
- .right {
- width: 78%;
- min-height: 1050px;
- background: #fff;
- }
- }
- .foot {
- height: 120px;
- }
- }
- </style>
|