guhongwei %!s(int64=5) %!d(string=hai) anos
pai
achega
3247e6b313
Modificáronse 2 ficheiros con 101 adicións e 0 borrados
  1. 6 0
      src/router/index.js
  2. 95 0
      src/views/news/listDetail.vue

+ 6 - 0
src/router/index.js

@@ -20,6 +20,12 @@ const routes = [
     meta: { title: '新闻动态', subSite: true },
     meta: { title: '新闻动态', subSite: true },
     component: () => import('../views/news/index.vue'),
     component: () => import('../views/news/index.vue'),
   },
   },
+  // 新闻动态列表+详情
+  {
+    path: '/news/listDetail',
+    meta: { title: '新闻详情', subSite: true },
+    component: () => import('../views/news/listDetail.vue'),
+  },
 ];
 ];
 
 
 const router = new VueRouter({
 const router = new VueRouter({

+ 95 - 0
src/views/news/listDetail.vue

@@ -0,0 +1,95 @@
+<template>
+  <div id="listDetail">
+    <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">
+              左侧列表
+            </el-col>
+            <el-col :span="18" class="right">
+              右侧详情
+            </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 { mapState, createNamespacedHelpers } from 'vuex';
+export default {
+  name: 'listDetail',
+  props: {},
+  components: {},
+  data: function() {
+    return {};
+  },
+  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: 600px;
+      background: #fff;
+      margin: 0 10px 0 0;
+    }
+    .right {
+      width: 78%;
+      min-height: 600px;
+      background: #fff;
+    }
+  }
+  .foot {
+    height: 120px;
+  }
+}
+</style>