guhongwei 5 年之前
父節點
當前提交
723d3719cf

+ 109 - 0
src/components/colleges.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"></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 {
+  height: 1240px;
+  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>

+ 1 - 1
src/components/supermarket.vue

@@ -110,7 +110,7 @@ export default {
 .main .rightcont {
   float: left;
   width: 950px;
-  height: 600px;
+  min-height: 600px;
   margin: 0 0 10px 0;
   overflow: hidden;
 }

+ 138 - 0
src/layout/supermarket/colleges.vue

@@ -0,0 +1,138 @@
+<template>
+  <div id="colleges">
+    <el-row>
+      <el-col :span="24" class="search">
+        <el-col :span="12" class="select">
+          <el-select v-model="region" placeholder="请选择搜索条件">
+            <el-option label="全部类型" value="zhengwu"></el-option>
+            <el-option label="重本大学" value="zhongben"></el-option>
+            <el-option label="二级本科" value="erji"></el-option>
+            <el-option label="三级本科" value="sanji"></el-option>
+            <el-option label="高等专科" value="zhuanke"></el-option>
+          </el-select>
+        </el-col>
+        <el-col :span="12" class="left">
+          <el-col :span="19" class="input"><el-input v-model="inputs" placeholder="请输入名称"></el-input></el-col>
+          <el-col :span="5" class="btn">
+            <i class="el-icon-search"></i>
+            <span>搜索</span>
+          </el-col>
+        </el-col>
+      </el-col>
+      <el-col :span="24" class="info">
+        <el-col :span="24" class="infoTop">
+          {{ title }}
+        </el-col>
+        <el-col :span="24" class="list">
+          <ul>
+            <li v-for="(item, index) in schoolList" :key="index">
+              <el-link :underline="false">
+                <el-col :span="4">
+                  <el-image style="width:130px;height:130px;" :src="item.pic"></el-image>
+                </el-col>
+                <el-col :span="20">
+                  <el-col :span="24">
+                    {{ item.title }}
+                  </el-col>
+                  <el-col :span="24"> 高校网站:{{ item.com }} </el-col>
+                  <el-col :span="24"> 高校类别:{{ item.type }} </el-col>
+                  <el-col :span="24"> 高校地址:{{ item.address }} </el-col>
+                </el-col>
+              </el-link>
+            </li>
+          </ul>
+        </el-col>
+      </el-col>
+    </el-row>
+  </div>
+</template>
+
+<script>
+export default {
+  name: 'colleges',
+  props: {
+    schoolList: null,
+  },
+  components: {},
+  data: () => ({
+    region: '',
+    inputs: '',
+    title: '高校院所',
+  }),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="less" scoped>
+ul {
+  padding: 0;
+  margin: 0;
+}
+li {
+  padding: 0;
+  margin: 0;
+  list-style: none;
+}
+.search {
+  height: 60px;
+  margin: 0 0 10px 0;
+}
+.search .left {
+  background: #fff;
+  height: 60px;
+  padding: 10px;
+  width: 470px;
+  margin: 0 10px 0 0;
+  border-radius: 0px;
+}
+.search .left:last-child {
+  margin: 0;
+}
+.search .btn {
+  height: 40px;
+  line-height: 40px;
+}
+/deep/.search .btn .el-icon-search {
+  font-size: 25px;
+  font-weight: bold;
+  color: blue;
+  padding: 0 10px;
+  float: left;
+  margin: 7px 0 0 0;
+}
+.search .btn span {
+  font-size: 16px;
+  color: #215199;
+  font-weight: bold;
+}
+/deep/.el-input__inner {
+  background: #f3f3f3;
+  border: none;
+  border-radius: 0;
+}
+.search .select {
+  background: #fff;
+  height: 60px;
+  padding: 10px;
+  width: 470px;
+  margin: 0 10px 0 0;
+}
+.el-select {
+  width: 450px;
+}
+.info {
+  height: 1170px;
+  overflow: hidden;
+  background-color: #fff;
+  padding: 0 20px;
+}
+.infoTop {
+  height: 60px;
+  line-height: 60px;
+  border-bottom: 1px dashed #ccc;
+  font-size: 22px;
+  color: #215299;
+}
+</style>

+ 5 - 0
src/layout/supermarket/rightcont.vue

@@ -134,6 +134,11 @@ export default {
   color: #215199;
   font-weight: bold;
 }
+/deep/.el-input__inner {
+  background: #f3f3f3;
+  border: none;
+  border-radius: 0;
+}
 .info {
   height: 530px;
   background: #fff;

+ 5 - 0
src/router/index.js

@@ -14,6 +14,11 @@ const routes = [
     name: 'supermarket',
     component: () => import('../views/supermarket.vue'),
   },
+  {
+    path: '/supermarketColleges',
+    name: 'supermarketColleges',
+    component: () => import('../views/supermarketColleges.vue'),
+  },
 ];
 
 const router = new VueRouter({

+ 42 - 0
src/views/supermarketColleges.vue

@@ -0,0 +1,42 @@
+<template>
+  <div id="supermarketColleges">
+    <colleges-detail :info="info" :schoolList="schoolList"></colleges-detail>
+  </div>
+</template>
+
+<script>
+import collegesDetail from '@/components/colleges.vue';
+export default {
+  name: 'supermarketColleges',
+  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楼',
+      },
+    ],
+  }),
+  created() {},
+  computed: {},
+  methods: {},
+};
+</script>
+
+<style lang="scss" scoped></style>