Bladeren bron

首页模板模块化

lrf402788946 5 jaren geleden
bovenliggende
commit
b789f40211

+ 1 - 1
src/components/verify.vue

@@ -13,7 +13,7 @@ export default {
   },
   model: {
     prop: 'value',
-    event: 'change', // 默认为input时间,此处改为change
+    event: 'change',
   },
   components: {},
   data: () => ({

+ 6 - 8
src/layout/index/calendar.vue

@@ -2,8 +2,7 @@
   <div id="calendar">
     <el-row>
       <el-col :span="24">
-        <el-calendar v-model="calendar">
-        </el-calendar>
+        <el-calendar v-model="calendar"> </el-calendar>
       </el-col>
     </el-row>
   </div>
@@ -13,7 +12,7 @@
 export default {
   name: 'calendar',
   props: {
-    calendar:null,
+    calendar: null,
   },
   components: {},
   data: () => ({}),
@@ -24,11 +23,10 @@ export default {
 </script>
 
 <style lang="less" scoped>
-/deep/.el-calendar__body{
-  padding:0;
+/deep/.el-calendar__body {
+  padding: 0;
 }
-/deep/.el-calendar-table .el-calendar-day{
-  height:39px;
+/deep/.el-calendar-table .el-calendar-day {
+  height: 39px;
 }
 </style>
-

+ 8 - 9
src/layout/index/cause.vue

@@ -6,26 +6,25 @@
           <el-tab-pane label="吉林省事业单位招聘" name="first">
             <el-col :span="24" v-for="(item, index) in enterList" :key="index" class="enterList">
               <el-col :span="20" class="title textOver">
-                <el-link :underline="false">{{item.title}}</el-link>
+                <el-link :underline="false">{{ item.title }}</el-link>
               </el-col>
               <el-col :span="4" class="time">
-                {{item.time}}
+                {{ item.time }}
               </el-col>
             </el-col>
           </el-tab-pane>
           <el-tab-pane label="吉林省教师招聘" name="second">
             <el-col :span="24" v-for="(item, index) in teacherList" :key="index" class="teacherList">
               <el-col :span="20" class="title textOver">
-                <el-link :underline="false">{{item.title}}</el-link>
+                <el-link :underline="false">{{ item.title }}</el-link>
               </el-col>
               <el-col :span="4" class="time">
-                {{item.time}}
+                {{ item.time }}
               </el-col>
             </el-col>
           </el-tab-pane>
         </el-tabs>
-        <el-link :inderline="false" class="moreLink" :style="`color:${Color}`">MORE<i class="el-icon-video-play"></i>
-        </el-link>
+        <el-link :inderline="false" class="moreLink" :style="`color:${Color}`">MORE<i class="el-icon-video-play"></i> </el-link>
       </el-col>
     </el-row>
   </div>
@@ -41,15 +40,15 @@ export default {
   components: {},
   data: () => ({
     activeName: 'first',
-    Color: '#850000'
+    Color: '#850000',
   }),
-  created() { },
+  created() {},
   computed: {},
   methods: {
     handleClick(tab, event) {
       // eslint-disable-next-line no-console
       console.log(tab, event);
-    }
+    },
   },
 };
 </script>

+ 1 - 1
src/layout/index/contact.vue

@@ -21,7 +21,7 @@ export default {
   data: () => ({
     Color: '#850000',
   }),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };

+ 25 - 26
src/layout/index/danwei.vue

@@ -2,80 +2,79 @@
   <div id="danwei">
     <el-row>
       <el-col :span="24">
-         <el-tabs v-model="activeName" @tab-click="handleClick">
+        <el-tabs v-model="activeName" @tab-click="handleClick">
           <el-tab-pane label="事业单位" name="first">
             <el-col :span="24" v-for="(item, index) in shiyeList" :key="index" class="shiyeList">
               <el-col :span="20" class="title textOver">
-                <el-link :underline="false">{{item.title}}</el-link>
+                <el-link :underline="false">{{ item.title }}</el-link>
               </el-col>
               <el-col :span="4" class="time">
-                {{item.time}}
+                {{ item.time }}
               </el-col>
             </el-col>
           </el-tab-pane>
           <el-tab-pane label="公务员" name="second">
             <el-col :span="24" v-for="(item, index) in gongwuyuanList" :key="index" class="shiyeList">
               <el-col :span="20" class="title textOver">
-                <el-link :underline="false">{{item.title}}</el-link>
+                <el-link :underline="false">{{ item.title }}</el-link>
               </el-col>
               <el-col :span="4" class="time">
-                {{item.time}}
+                {{ item.time }}
               </el-col>
             </el-col>
           </el-tab-pane>
           <el-tab-pane label="选调生" name="third">
             <el-col :span="24" v-for="(item, index) in xuantiaoList" :key="index" class="shiyeList">
               <el-col :span="20" class="title textOver">
-                <el-link :underline="false">{{item.title}}</el-link>
+                <el-link :underline="false">{{ item.title }}</el-link>
               </el-col>
               <el-col :span="4" class="time">
-                {{item.time}}
+                {{ item.time }}
               </el-col>
             </el-col>
           </el-tab-pane>
           <el-tab-pane label="西部计划" name="fourth">
             <el-col :span="24" v-for="(item, index) in xibuList" :key="index" class="shiyeList">
               <el-col :span="20" class="title textOver">
-                <el-link :underline="false">{{item.title}}</el-link>
+                <el-link :underline="false">{{ item.title }}</el-link>
               </el-col>
               <el-col :span="4" class="time">
-                {{item.time}}
+                {{ item.time }}
               </el-col>
             </el-col>
           </el-tab-pane>
           <el-tab-pane label="特岗教师" name="fifth">
             <el-col :span="24" v-for="(item, index) in teguangList" :key="index" class="shiyeList">
               <el-col :span="20" class="title textOver">
-                <el-link :underline="false">{{item.title}}</el-link>
+                <el-link :underline="false">{{ item.title }}</el-link>
               </el-col>
               <el-col :span="4" class="time">
-                {{item.time}}
+                {{ item.time }}
               </el-col>
             </el-col>
           </el-tab-pane>
           <el-tab-pane label="三支一扶" name="sith">
             <el-col :span="24" v-for="(item, index) in sanzhiList" :key="index" class="shiyeList">
               <el-col :span="20" class="title textOver">
-                <el-link :underline="false">{{item.title}}</el-link>
+                <el-link :underline="false">{{ item.title }}</el-link>
               </el-col>
               <el-col :span="4" class="time">
-                {{item.time}}
+                {{ item.time }}
               </el-col>
             </el-col>
           </el-tab-pane>
           <el-tab-pane label="大学生村官" name="seventh">
             <el-col :span="24" v-for="(item, index) in xueshengList" :key="index" class="shiyeList">
               <el-col :span="20" class="title textOver">
-                <el-link :underline="false">{{item.title}}</el-link>
+                <el-link :underline="false">{{ item.title }}</el-link>
               </el-col>
               <el-col :span="4" class="time">
-                {{item.time}}
+                {{ item.time }}
               </el-col>
             </el-col>
           </el-tab-pane>
         </el-tabs>
-        <el-link :inderline="false" class="moreLink" :style="`color:${Color}`">MORE<i class="el-icon-video-play"></i>
-        </el-link>
+        <el-link :inderline="false" class="moreLink" :style="`color:${Color}`">MORE<i class="el-icon-video-play"></i> </el-link>
       </el-col>
     </el-row>
   </div>
@@ -85,18 +84,18 @@
 export default {
   name: 'danwei',
   props: {
-    shiyeList:null,
-    gongwuyuanList:null,
-    xuantiaoList:null,
-    xibuList:null,
-    teguangList:null,
-    sanzhiList:null,
-    xueshengList:null,
+    shiyeList: null,
+    gongwuyuanList: null,
+    xuantiaoList: null,
+    xibuList: null,
+    teguangList: null,
+    sanzhiList: null,
+    xueshengList: null,
   },
   components: {},
   data: () => ({
     activeName: 'first',
-    Color: '#850000'
+    Color: '#850000',
   }),
   created() {},
   computed: {},
@@ -104,7 +103,7 @@ export default {
     handleClick(tab, event) {
       // eslint-disable-next-line no-console
       console.log(tab, event);
-    }
+    },
   },
 };
 </script>

+ 3 - 5
src/layout/index/fast.vue

@@ -2,9 +2,7 @@
   <div id="fast">
     <el-row>
       <el-col :span="24">
-        <el-col :span="24" class="fastTop" :style="`background:${backColor}`">
-          <i class="el-icon-user-solid"></i>快速通道
-        </el-col>
+        <el-col :span="24" class="fastTop" :style="`background:${backColor}`"> <i class="el-icon-user-solid"></i>快速通道 </el-col>
         <el-col :span="24" class="fastLink">
           <el-col :span="11" class="link">
             <el-link :underline="false" href="http://ccut.51langtu.com/improperBrowser.htm">职业测评</el-link>
@@ -32,7 +30,7 @@ export default {
   data: () => ({
     backColor: '#850000',
   }),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };
@@ -57,7 +55,7 @@ export default {
   border-radius: 7px;
   margin: 15px 7px;
 }
-.fastLink .link:hover{
+.fastLink .link:hover {
   border: 1px dashed #850000;
 }
 .fastLink .link:hover .el-link {

+ 12 - 12
src/layout/index/foot.vue

@@ -1,12 +1,12 @@
 <template>
   <div id="foot">
-    <el-row>
+    <el-row v-if="downList">
       <el-col :span="24" class="down">
         <el-col :span="24">
-          <p class="text">{{downList.copyright}}</p>
+          <p class="text">{{ downList.copyright }}</p>
         </el-col>
         <el-col :span="24">
-          <p class="text">域名备案信息:{{downList.domain}}</p>
+          <p class="text">域名备案信息:{{ downList.domain }}</p>
         </el-col>
       </el-col>
     </el-row>
@@ -17,7 +17,7 @@
 export default {
   name: 'foot',
   props: {
-    downList:null,
+    downList: null,
   },
   components: {},
   data: () => ({}),
@@ -28,16 +28,16 @@ export default {
 </script>
 
 <style lang="less" scoped>
-p{
-  margin:0;
-  padding:0;
+p {
+  margin: 0;
+  padding: 0;
 }
-.down{
-  padding:10px 0;
+.down {
+  padding: 10px 0;
   text-align: center;
-  color:#fff;
+  color: #fff;
 }
-.text{
-  padding:5px 0;
+.text {
+  padding: 5px 0;
 }
 </style>

+ 5 - 5
src/layout/index/friendLink.vue

@@ -14,7 +14,7 @@
           <ul class="link-list">
             <li class="link-item" v-for="(item, index) in linkImgList" :key="index">
               <a :href="item.link" class="link" title="新职业网" target="_blank" rel="nofollow">
-                <img :src="item.url" alt="">
+                <img :src="item.url" alt="" />
               </a>
             </li>
           </ul>
@@ -32,7 +32,7 @@ export default {
   },
   components: {},
   data: () => ({}),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };
@@ -54,9 +54,9 @@ export default {
   color: #850000;
   border: 1px solid #ccc;
 }
-.link-list{
-  margin:0;
-  padding:0;
+.link-list {
+  margin: 0;
+  padding: 0;
 }
 .link-list .link-item {
   float: left;

+ 5 - 5
src/layout/index/login.vue

@@ -44,17 +44,17 @@ export default {
 </script>
 
 <style lang="less" scoped>
-.login{
-  padding:10px;
+.login {
+  padding: 10px;
 }
-.login .common{
+.login .common {
   padding: 10px;
-  text-align:center;
+  text-align: center;
   border-radius: 17px;
   margin: 0 10px 0 0;
   width: 284px;
 }
-.mainTwoIcon{
+.mainTwoIcon {
   display: inline-block;
   width: 35px;
   height: 35px;

+ 2 - 2
src/layout/index/lunbo.vue

@@ -21,11 +21,11 @@
 export default {
   name: 'lunbo',
   props: {
-    lunboList:null,
+    lunboList: null,
   },
   components: {},
   data: () => ({}),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };

+ 12 - 10
src/layout/index/native.vue

@@ -21,10 +21,12 @@
         text-color="#fff"
         active-text-color="#fff"
         style="height:40px;"
-        >
+      >
         <el-menu-item index="1">首页</el-menu-item>
         <el-submenu index="2">
-          <template slot="title">招聘管理</template>
+          <template slot="title"
+            >招聘管理</template
+          >
           <el-menu-item index="2-1">宣讲会</el-menu-item>
           <el-menu-item index="2-2">招聘会</el-menu-item>
           <el-menu-item index="2-3">职位管理</el-menu-item>
@@ -42,26 +44,26 @@ export default {
   },
   components: {},
   data: () => ({
-    activeIndex2:'1'
+    activeIndex2: '1',
   }),
   created() {},
   computed: {},
   methods: {
     handleSelect(key, keyPath) {
-        // eslint-disable-next-line no-console
-        console.log(key, keyPath);
-      }
+      // eslint-disable-next-line no-console
+      console.log(key, keyPath);
+    },
   },
 };
 </script>
 
 <style lang="less" scoped>
-.el-menu--horizontal>.el-menu-item{
+.el-menu--horizontal > .el-menu-item {
   height: 40px;
-  line-height:40px;
+  line-height: 40px;
 }
-/deep/.el-menu--horizontal>.el-submenu .el-submenu__title{
+/deep/.el-menu--horizontal > .el-submenu .el-submenu__title {
   height: 40px;
-  line-height:40px;
+  line-height: 40px;
 }
 </style>

+ 25 - 25
src/layout/index/news.vue

@@ -14,16 +14,16 @@
           <el-col :span="14" class="block">
             <el-carousel ref="shubiao">
               <el-carousel-item v-for="(item, index) in newsList" :key="index" :name="`${index}`">
-                <el-link :underline="false" ><img :src="item.picurl" class="newsList" /></el-link>
+                <el-link :underline="false"><img :src="item.picurl" class="newsList"/></el-link>
               </el-carousel-item>
             </el-carousel>
           </el-col>
           <el-col :span="10" class="newsLi">
             <ul>
               <li v-for="(tag, index) in newsList" :key="index" :type="tag.type" @mouseover="shuYi(index)" :class="newListActive(tag)">
-                <el-link :underline="false" class="newsListTit" >{{ tag.title }}</el-link>
+                <el-link :underline="false" class="newsListTit">{{ tag.title }}</el-link>
               </li>
-            </ul>         
+            </ul>
           </el-col>
         </el-col>
       </el-col>
@@ -35,12 +35,12 @@
 export default {
   name: 'news',
   props: {
-    newsList:null,
+    newsList: null,
   },
   components: {},
   data: () => ({
-    borderColor:'#850000',
-    Color:'#850000'
+    borderColor: '#850000',
+    Color: '#850000',
   }),
   created() {},
   computed: {},
@@ -64,37 +64,37 @@ li {
   padding: 0;
   list-style: none;
 }
-.news{
-  padding:10px;
+.news {
+  padding: 10px;
 }
-.topTit{
-  border-bottom:1px solid #ccc;
+.topTit {
+  border-bottom: 1px solid #ccc;
 }
-.topTit span{
+.topTit span {
   display: inline-block;
   height: 30px;
-  border-bottom:1px solid transparent;
+  border-bottom: 1px solid transparent;
 }
-.newsMain{
-  padding:10px 0;
+.newsMain {
+  padding: 10px 0;
 }
-.block{
-  height:250px;
+.block {
+  height: 250px;
 }
-.newsList{
-  height:250px;
+.newsList {
+  height: 250px;
 }
-.newsLi ul li{
-  padding:9px;
-  border-bottom:1px dashed #ccc;
+.newsLi ul li {
+  padding: 9px;
+  border-bottom: 1px dashed #ccc;
 }
-.newsListTit{
-  color:#606266;
+.newsListTit {
+  color: #606266;
 }
-/deep/.newsListTit .el-link--inner{
+/deep/.newsListTit .el-link--inner {
   overflow: hidden;
   text-overflow: ellipsis;
   white-space: nowrap;
-  width:315px;
+  width: 315px;
 }
 </style>

+ 20 - 20
src/layout/index/notice.vue

@@ -4,7 +4,7 @@
       <el-col :span="24" class="notice">
         <el-col :span="24" class="topTit">
           <el-col :span="20">
-           <span :style="`border-color:${borderColor}`">最新公告</span>
+            <span :style="`border-color:${borderColor}`">最新公告</span>
           </el-col>
           <el-col :span="4">
             <el-link :underline="false" :style="`color:${Color}`">MORE<i class="el-icon-video-play"></i></el-link>
@@ -12,12 +12,12 @@
         </el-col>
         <el-col :span="24" class="noticeMain">
           <el-col :span="24" class="noticeList" v-for="(item, index) in noticeList" :key="index" :name="`${index}`">
-            <el-col :span="4" class="time" >
-              {{item.time}}
+            <el-col :span="4" class="time">
+              {{ item.time }}
             </el-col>
             <el-col :span="20" class="title">
               <el-link :underline="false">
-                <p class="textOver"> {{item.title}}</p>
+                <p class="textOver">{{ item.title }}</p>
               </el-link>
             </el-col>
           </el-col>
@@ -31,12 +31,12 @@
 export default {
   name: 'notice',
   props: {
-    noticeList:null,
+    noticeList: null,
   },
   components: {},
   data: () => ({
-    borderColor:'#850000',
-    Color:'#850000'
+    borderColor: '#850000',
+    Color: '#850000',
   }),
   created() {},
   computed: {},
@@ -45,31 +45,31 @@ export default {
 </script>
 
 <style lang="less" scoped>
-p{
-  margin:0;
-  padding:0;
+p {
+  margin: 0;
+  padding: 0;
 }
-.textOver{
+.textOver {
   overflow: hidden;
   text-overflow: ellipsis;
   white-space: nowrap;
 }
-.notice{
-  padding:10px;
+.notice {
+  padding: 10px;
 }
-.topTit{
-  border-bottom:1px solid #ccc;
+.topTit {
+  border-bottom: 1px solid #ccc;
 }
-.topTit span{
+.topTit span {
   display: inline-block;
   height: 30px;
-  border-bottom:1px solid transparent;
+  border-bottom: 1px solid transparent;
 }
-.noticeList{
+.noticeList {
   padding: 7px 0;
   border-bottom: 1px dashed #ccc;
 }
-.noticeList .time{
+.noticeList .time {
   height: 38px;
   line-height: 38px;
   text-align: center;
@@ -77,7 +77,7 @@ p{
   color: #fff;
   font-size: 18px;
 }
-.noticeList .title p{
+.noticeList .title p {
   width: 290px;
   padding: 10px;
 }

+ 24 - 25
src/layout/index/recruit.vue

@@ -8,19 +8,19 @@
               <el-col :span="12" v-for="(item, index) in talksList" :key="index" class="talksList">
                 <el-col :span="18">
                   <el-col :span="24" class="title textOver">
-                    <el-link :underline="false">{{item.title}}</el-link>
+                    <el-link :underline="false">{{ item.title }}</el-link>
                   </el-col>
                   <el-col :span="24" class="schname textOver">
-                    {{item.schname}}
+                    {{ item.schname }}
                   </el-col>
                   <el-col :span="24" class="address textOver">
-                    {{item.address}}
+                    {{ item.address }}
                   </el-col>
                 </el-col>
                 <el-col :span="6">
-                  <el-col :span="24" class="time">{{item.time}}</el-col>
-                  <el-col :span="24" class="timedian">{{item.timedian}}</el-col>
-                  <el-col :span="24" class="size"><i class="el-icon-view"></i>{{item.team_size}}</el-col>
+                  <el-col :span="24" class="time">{{ item.time }}</el-col>
+                  <el-col :span="24" class="timedian">{{ item.timedian }}</el-col>
+                  <el-col :span="24" class="size"><i class="el-icon-view"></i>{{ item.team_size }}</el-col>
                 </el-col>
               </el-col>
             </el-col>
@@ -29,12 +29,12 @@
             <el-col :span="24" v-for="(item, index) in fairsList" :key="index" class="fairsList">
               <el-col :span="19">
                 <el-col :span="24" class="title textOver">
-                  <el-link :underline="false">{{item.title}}</el-link>
+                  <el-link :underline="false">{{ item.title }}</el-link>
                 </el-col>
-                <el-col :span="24" class="schname textOver">主办方:{{item.schname}}</el-col>
-                <el-col :span="24" class="address textOver">{{item.address}}</el-col>
+                <el-col :span="24" class="schname textOver">主办方:{{ item.schname }}</el-col>
+                <el-col :span="24" class="address textOver">{{ item.address }}</el-col>
               </el-col>
-              <el-col :span="5" class="time">{{item.time}}&nbsp;{{item.timedian}}</el-col>
+              <el-col :span="5" class="time">{{ item.time }}&nbsp;{{ item.timedian }}</el-col>
             </el-col>
           </el-tab-pane>
           <el-tab-pane label="校外宣讲" name="third">
@@ -42,19 +42,19 @@
               <el-col :span="12" v-for="(item, index) in talksoutList" :key="index" class="talksList">
                 <el-col :span="18">
                   <el-col :span="24" class="title textOver">
-                    <el-link :underline="false">{{item.title}}</el-link>
+                    <el-link :underline="false">{{ item.title }}</el-link>
                   </el-col>
                   <el-col :span="24" class="schname textOver">
-                    {{item.schname}}
+                    {{ item.schname }}
                   </el-col>
                   <el-col :span="24" class="address textOver">
-                    {{item.address}}
+                    {{ item.address }}
                   </el-col>
                 </el-col>
                 <el-col :span="6">
-                  <el-col :span="24" class="time">{{item.time}}</el-col>
-                  <el-col :span="24" class="timedian">{{item.timedian}}</el-col>
-                  <el-col :span="24" class="size"><i class="el-icon-view"></i>{{item.team_size}}</el-col>
+                  <el-col :span="24" class="time">{{ item.time }}</el-col>
+                  <el-col :span="24" class="timedian">{{ item.timedian }}</el-col>
+                  <el-col :span="24" class="size"><i class="el-icon-view"></i>{{ item.team_size }}</el-col>
                 </el-col>
               </el-col>
             </el-col>
@@ -62,15 +62,14 @@
           <el-tab-pane label="招聘快讯" name="fourth">
             <el-col :span="24" v-for="(item, index) in infoList" :key="index" class="fairsList">
               <el-col :span="24" class="title textOver">
-                <el-link :underline="false">{{item.title}}</el-link>
+                <el-link :underline="false">{{ item.title }}</el-link>
               </el-col>
-              <el-col :span="24" class="schname textOver">主办方:{{item.schname}}</el-col>
-              <el-col :span="24" class="address textOver">{{item.corpname}}</el-col>
+              <el-col :span="24" class="schname textOver">主办方:{{ item.schname }}</el-col>
+              <el-col :span="24" class="address textOver">{{ item.corpname }}</el-col>
             </el-col>
           </el-tab-pane>
         </el-tabs>
-        <el-link :inderline="false" class="moreLink" :style="`color:${Color}`">MORE<i class="el-icon-video-play"></i>
-        </el-link>
+        <el-link :inderline="false" class="moreLink" :style="`color:${Color}`">MORE<i class="el-icon-video-play"></i> </el-link>
       </el-col>
     </el-row>
   </div>
@@ -83,20 +82,20 @@ export default {
     talksList: null,
     fairsList: null,
     talksoutList: null,
-    infoList:null,
+    infoList: null,
   },
   components: {},
   data: () => ({
     activeName: 'first',
-    Color: '#850000'
+    Color: '#850000',
   }),
-  created() { },
+  created() {},
   computed: {},
   methods: {
     handleClick(tab, event) {
       // eslint-disable-next-line no-console
       console.log(tab, event);
-    }
+    },
   },
 };
 </script>

+ 8 - 8
src/layout/index/top.vue

@@ -1,14 +1,14 @@
 <template>
   <div id="top">
     <el-row>
-      <el-col :span="24" class="top" :style="'background: url(' + topInfo.logoBei + ');height:300px;'">
+      <el-col :span="24" class="top" :style="`background: url('${topInfo && topInfo.logoBei ? topInfo.logoBei : ''} ');height:300px;`">
         <div class="w_1200">
           <el-col :span="2">
-            <el-image style="width:100px;height:100px" :src="topInfo.logo || ''"></el-image>
+            <el-image style="width:100px;height:100px" :src="topInfo.logo" v-if="topInfo && topInfo.logo"></el-image>
           </el-col>
           <el-col :span="22" class="topTit">
             <el-link :underline="false">
-              {{ topInfo.title }}
+              {{ topInfo && topInfo.title ? topInfo.title : '' }}
             </el-link>
           </el-col>
         </div>
@@ -32,14 +32,14 @@ export default {
 </script>
 
 <style lang="less" scoped>
-.w_1200{
-  width:1200px;
-  margin:0 auto;
+.w_1200 {
+  width: 1200px;
+  margin: 0 auto;
 }
-.top{
+.top {
   padding: 80px 0;
 }
-.top .topTit{
+.top .topTit {
   height: 104px;
   line-height: 104px;
   padding: 0 10px;

+ 5 - 5
src/layout/index/yizhanshi.vue

@@ -1,6 +1,6 @@
 <template>
   <div id="yizhanshi">
-    <el-row>
+    <el-row v-if="image">
       <el-col :span="24">
         <el-col class="ThrMainLogin" :span="24">
           <el-link :underline="false">
@@ -40,16 +40,16 @@ export default {
   },
   components: {},
   data: () => ({}),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };
 </script>
 
 <style lang="less" scoped>
-p{
-  margin:0;
-  padding:0;
+p {
+  margin: 0;
+  padding: 0;
 }
 .ThrMainLogin {
   float: left;

+ 37 - 33
src/views/index.vue

@@ -31,8 +31,7 @@
               <calendar :calendar="calendar"></calendar>
             </el-col>
             <el-col :span="16" class="recruit">
-              <recruit :talksList="talksList" :fairsList="fairsList" :talksoutList="talksoutList" :infoList="infoList">
-              </recruit>
+              <recruit :talksList="talksList" :fairsList="fairsList" :talksoutList="talksoutList" :infoList="infoList"> </recruit>
             </el-col>
           </el-col>
           <el-col :span="24" class="mainQuick">
@@ -54,9 +53,15 @@
             </el-col>
             <el-col :span="16" class="wheelRight">
               <el-col :span="24" class="danwei">
-                <danwei :shiyeList="shiyeList" :gongwuyuanList="gongwuyuanList" :xuantiaoList="xuantiaoList"
-                        :xibuList="xibuList" :teguangList="teguangList" :sanzhiList="sanzhiList"
-                        :xueshengList="xueshengList"></danwei>
+                <danwei
+                  :shiyeList="shiyeList"
+                  :gongwuyuanList="gongwuyuanList"
+                  :xuantiaoList="xuantiaoList"
+                  :xibuList="xibuList"
+                  :teguangList="teguangList"
+                  :sanzhiList="sanzhiList"
+                  :xueshengList="xueshengList"
+                ></danwei>
               </el-col>
               <el-col :span="24" class="yizhanshi">
                 <yizhanshi :image="image" :yizhanList="yizhanList"></yizhanshi>
@@ -78,32 +83,32 @@
 </template>
 
 <script>
-import top from '../../layout/index/top.vue';
-import native from '../../layout/index/native.vue';
-import news from '../../layout/index/news.vue';
-import notice from '../../layout/index/notice.vue';
-import login from '../../layout/index/login.vue';
-import calendar from '../../layout/index/calendar.vue';
-import recruit from '../../layout/index/recruit.vue';
-import fast from '../../layout/index/fast.vue';
-import cause from '../../layout/index/cause.vue';
-import danwei from '../../layout/index/danwei.vue';
-import yizhanshi from '../../layout/index/yizhanshi.vue';
-import lunbo from '../../layout/index/lunbo.vue';
-import contact from '../../layout/index/contact.vue';
-import friendLink from '../../layout/index/friendLink.vue';
-import footDown from '../../layout/index/foot.vue';
+import top from '@publics/src/layout/index/top.vue';
+import native from '@publics/src/layout/index/native.vue';
+import news from '@publics/src/layout/index/news.vue';
+import notice from '@publics/src/layout/index/notice.vue';
+import login from '@publics/src/layout/index/login.vue';
+import calendar from '@publics/src/layout/index/calendar.vue';
+import recruit from '@publics/src/layout/index/recruit.vue';
+import fast from '@publics/src/layout/index/fast.vue';
+import cause from '@publics/src/layout/index/cause.vue';
+import danwei from '@publics/src/layout/index/danwei.vue';
+import yizhanshi from '@publics/src/layout/index/yizhanshi.vue';
+import lunbo from '@publics/src/layout/index/lunbo.vue';
+import contact from '@publics/src/layout/index/contact.vue';
+import friendLink from '@publics/src/layout/index/friendLink.vue';
+import footDown from '@publics/src/layout/index/foot.vue';
 export default {
   name: 'index',
   props: {
-    topInfo: null,
-    newsList: null,
-    noticeList: null,
-    calendar: null,
-    talksList: null,
-    fairsList: null,
-    talksoutList: null,
-    infoList: null,
+    topInfo: null, //头部信息
+    newsList: null, //新闻模块
+    noticeList: null, //公告模块
+    calendar: null, //日历(这里应该是凹槽,允许自定义组件放入)
+    talksList: null, //校内宣讲会列表
+    fairsList: null, //校内招聘会列表
+    talksoutList: null,//校外宣讲会列表
+    infoList: null, //招聘信息列表
     enterList: null,
     teacherList: null,
     shiyeList: null,
@@ -113,9 +118,9 @@ export default {
     teguangList: null,
     sanzhiList: null,
     xueshengList: null,
-    image:null,
-    lunboList:null,
-    yizhanList:null,
+    image: null,
+    lunboList: null,
+    yizhanList: null,
     linkImgList: null,
     downList: null,
   },
@@ -135,12 +140,11 @@ export default {
     contact,
     friendLink,
     footDown,
-
   },
   data: () => ({
     backColor: '#850000',
   }),
-  created() { },
+  created() {},
   computed: {},
   methods: {},
 };