Sfoglia il codice sorgente

科研院所更新

wuhongyuq 5 anni fa
parent
commit
7c807345c9

+ 1 - 1
src/components/colleges.vue

@@ -20,7 +20,7 @@
             <fenlei></fenlei>
           </el-col>
           <el-col :span="19" class="rightcont">
-            <colleges :schoolList="schoolList"></colleges>
+            <colleges :schoolList="schoolList" columnTitle="高校院所"></colleges>
           </el-col>
         </div>
       </el-col>

+ 109 - 0
src/components/scientific.vue

@@ -0,0 +1,109 @@
+<template>
+  <div id="supermarket">
+    <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="fenlei">
+            <fenlei></fenlei>
+          </el-col>
+          <el-col :span="19" class="rightcont">
+            <colleges :schoolList="schoolList" columnTitle="科研院所"></colleges>
+          </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/supermarket/fenlei.vue';
+import colleges from '@/layout/supermarket/colleges.vue';
+import foot from '@/layout/index/foot.vue';
+
+export default {
+  name: 'supermarket',
+  props: {
+    info: null, //站点信息
+    schoolList: null,
+  },
+  components: {
+    top, //头部
+    logo, //logo
+    menuInfo, //导航
+    fenlei, //左侧导航
+    colleges, //科研院所
+    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: 600px;
+  overflow: hidden;
+  margin: 10px 0;
+}
+.main .fenlei {
+  float: left;
+  width: 240px;
+  height: 600px;
+  margin: 0 10px 10px 0;
+  overflow: hidden;
+  background-color: #ffffff;
+}
+.main .rightcont {
+  float: left;
+  width: 950px;
+  min-height: 600px;
+  margin: 0 0 10px 0;
+  overflow: hidden;
+}
+.foot {
+  float: left;
+  width: 100%;
+  height: 120px;
+  overflow: hidden;
+}
+</style>

+ 2 - 1
src/layout/supermarket/colleges.vue

@@ -21,7 +21,7 @@
       </el-col>
       <el-col :span="24" class="info">
         <el-col :span="24" class="infoTop">
-          {{ title }}
+          {{ columnTitle }}
         </el-col>
         <el-col :span="24" class="list">
           <ul>
@@ -63,6 +63,7 @@ export default {
   name: 'colleges',
   props: {
     schoolList: null,
+    columnTitle: null,
   },
   components: {},
   data: () => ({

+ 6 - 0
src/router/index.js

@@ -19,6 +19,12 @@ const routes = [
     name: 'supermarketColleges',
     component: () => import('../views/supermarketColleges.vue'),
   },
+  // 科技超市-科研院所
+  {
+    path: '/supermarketScientific',
+    name: 'supermarketSientific',
+    component: () => import('../views/supermarketScientific.vue'),
+  },
 ];
 
 const router = new VueRouter({

+ 77 - 0
src/views/supermarketScientific.vue

@@ -0,0 +1,77 @@
+<template>
+  <div id="supermarketScientific">
+    <colleges-detail :info="info" :schoolList="schoolList"></colleges-detail>
+  </div>
+</template>
+
+<script>
+import collegesDetail from '@/components/scientific.vue';
+export default {
+  name: 'supermarketScientific',
+  props: {},
+  components: {
+    collegesDetail,
+  },
+  data: () => ({
+    info: {
+      logo: require('@/assets/logo.png'),
+      banquan: '版权所有:吉林省计算中心',
+      jishu: '技术支持:长春市福瑞科技有限公司',
+      youbian: '邮编:130000',
+      chuanzhen: '传真:239823982',
+      address: '地址:吉林省长春市朝阳区前进大街1244号',
+      phone: '电话:0431-1234567',
+      email: '邮箱:123456@163.com',
+    },
+    schoolList: [
+      {
+        pic: require('@/assets/fabu.jpg'),
+        title: '长春工业大学',
+        com: 'www.baidu.com',
+        type: '二级本科',
+        address: '吉林省长春市力旺广场B座16楼',
+      },
+      {
+        pic: require('@/assets/fabu.jpg'),
+        title: '长春工业大学',
+        com: 'www.baidu.com',
+        type: '二级本科',
+        address: '吉林省长春市力旺广场B座16楼',
+      },
+      {
+        pic: require('@/assets/fabu.jpg'),
+        title: '长春工业大学',
+        com: 'www.baidu.com',
+        type: '二级本科',
+        address: '吉林省长春市力旺广场B座16楼',
+      },
+      {
+        pic: require('@/assets/fabu.jpg'),
+        title: '长春工业大学',
+        com: 'www.baidu.com',
+        type: '二级本科',
+        address: '吉林省长春市力旺广场B座16楼',
+      },
+      {
+        pic: require('@/assets/fabu.jpg'),
+        title: '长春工业大学',
+        com: 'www.baidu.com',
+        type: '二级本科',
+        address: '吉林省长春市力旺广场B座16楼',
+      },
+      {
+        pic: require('@/assets/fabu.jpg'),
+        title: '长春工业大学',
+        com: 'www.baidu.com',
+        type: '二级本科',
+        address: '吉林省长春市力旺广场B座16楼',
+      },
+    ],
+  }),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="scss" scoped></style>