lrf402788946 5 лет назад
Родитель
Сommit
56ff302824

+ 6 - 3
src/layout/master/index/huodong.vue

@@ -14,7 +14,7 @@
             <el-tabs v-model="activeName" @tab-click="handleClick">
               <el-tab-pane label="双选会" name="1">
                 <el-col :span="24" class="list">
-                  <el-col :span="24" class="talksList" v-for="(item, index) in fairsList" :key="index">
+                  <el-col :span="24" class="talksList" v-for="(item, index) in fairsList" :key="index" @click.native="toPath('jobfair', item.id)">
                     <el-col :span="24" style="padding:0 0 12px 0;">
                       <el-col :span="20">
                         <span class="qiu"></span>
@@ -36,7 +36,7 @@
               </el-tab-pane>
               <el-tab-pane label="宣讲会" name="2">
                 <el-col :span="24" class="list">
-                  <el-col :span="24" class="talksList" v-for="(item, index) in talksList" :key="index">
+                  <el-col :span="24" class="talksList" v-for="(item, index) in talksList" :key="index" @click.native="toPath('talk', item.id)">
                     <el-col :span="24" style="padding:0 0 12px 0;">
                       <el-col :span="20">
                         <span class="qiu"></span>
@@ -58,7 +58,7 @@
               </el-tab-pane>
               <el-tab-pane label="招聘快讯" name="3">
                 <el-col :span="24" class="list">
-                  <el-col :span="24" class="talksList" v-for="(item, index) in infoList" :key="index">
+                  <el-col :span="24" class="talksList" v-for="(item, index) in infoList" :key="index" @click.native="toPath('jobinfo', item.id)">
                     <el-col :span="24" style="padding:0 0 12px 0;">
                       <el-col :span="20">
                         <span class="qiu"></span>
@@ -112,6 +112,9 @@ export default {
       else if (this.activeName === `3`) type = `jobinfo`;
       this.$router.push({ path: `/master/jobs/${type}` });
     },
+    toPath(type, id) {
+      this.$router.push({ path: `/master/detail/${type}/${id}` });
+    },
   },
 };
 </script>

+ 2 - 2
src/layout/master/index/news.vue

@@ -9,7 +9,7 @@
           <el-col :span="13" class="block">
             <el-carousel ref="shubiao">
               <el-carousel-item v-for="(item, index) in newsList" :key="index" :name="`${index}`">
-                <el-link :underline="false" @click="$router.push({ path: `/info/detail?id=${item.id}` })">
+                <el-link :underline="false" @click="$router.push({ path: `/master/detail/news/${item.id}` })">
                   <el-image style="width:620px;height:350px;" :src="item.pic" class="newsList"></el-image>
                 </el-link>
               </el-carousel-item>
@@ -28,7 +28,7 @@
                 :type="tag.type"
                 @mouseover="shuYi(index)"
                 :class="newListActive(tag)"
-                @click="$router.push({ path: `/info/detail?id=${tag.id}` })"
+                @click="$router.push({ path: `/master/detail/news/${tag.id}` })"
               >
                 <span class="qiu"></span>
                 <el-link :underline="false" class="newsListTit">{{ tag.title }}</el-link>

+ 1 - 1
src/layout/master/index/notice.vue

@@ -17,7 +17,7 @@
             </el-col>
             <el-col :span="24" class="noticelist">
               <el-col :span="8" class="content" v-for="(item, index) in noticelist" :key="index">
-                <el-link :underline="false" @click.native="$router.push({ path: `/info/detail?id=${item.id}` })">
+                <el-link :underline="false" @click.native="$router.push({ path: `/master/detail/news/${item.id}` })">
                   <el-col :span="24" class="image">
                     <el-image style="width:100%;height:226px;" :src="item.pic"></el-image>
                   </el-col>

+ 7 - 1
src/layout/master/index/other.vue

@@ -11,7 +11,13 @@
           <el-tabs v-model="activeName" @tab-click="handleClick">
             <el-tab-pane v-for="(item, index) in otherList" :key="index" :label="item.title" :name="`${index}`">
               <el-col :span="24" class="list">
-                <el-col :span="24" class="listinfo" v-for="(child, index) in item.children" :key="index">
+                <el-col
+                  :span="24"
+                  class="listinfo"
+                  v-for="(child, index) in item.children"
+                  :key="index"
+                  @click.native="$router.push({ path: `/master/detail/news/${item.id}` })"
+                >
                   <el-col :span="21">
                     <span class="qiu"></span>
                     <el-link :underline="false">

+ 7 - 1
src/layout/master/index/recruit.vue

@@ -9,7 +9,13 @@
           <el-tabs v-model="activeName" @tab-click="handleClick">
             <el-tab-pane v-for="(item, index) in recruitList" :key="index" :label="item.title" :name="`${index}`">
               <el-col :span="24" class="list">
-                <el-col :span="24" class="listinfo" v-for="(child, index) in item.children" :key="index">
+                <el-col
+                  :span="24"
+                  class="listinfo"
+                  v-for="(child, index) in item.children"
+                  :key="index"
+                  @click.native="$router.push({ path: `/master/detail/news/${item.id}` })"
+                >
                   <el-col :span="21">
                     <span class="qiu"></span>
                     <el-link :underline="false">

+ 1 - 1
src/layout/master/news/banner.vue

@@ -2,7 +2,7 @@
   <div id="banner">
     <el-row>
       <el-col :span="24">
-        <el-image style="width:100%;height:529px;" :src="bannerinfo.banner"></el-image>
+        <img style="width:100%;height:529px;" :src="bannerinfo.banner" />
       </el-col>
     </el-row>
   </div>

+ 1 - 1
src/layout/master/news/newsright.vue

@@ -36,7 +36,7 @@
                   <p>举办地址:{{ item.address }}</p>
                 </el-col>
               </span>
-              <span v-if="type === 'jobfair'">
+              <span v-else-if="type === 'jobfair'">
                 <el-col :span="24" class="time">
                   <p>举办时间:{{ item.time }}</p>
                 </el-col>

+ 7 - 1
src/layout/master/notice/maininfo.vue

@@ -4,7 +4,13 @@
       <el-col :span="24" class="top" id="list_top">
         <span>{{ title }}</span>
       </el-col>
-      <el-col :span="24" class="noticelist" v-for="(item, index) in noticelist" :key="index">
+      <el-col
+        :span="24"
+        class="noticelist"
+        v-for="(item, index) in noticelist"
+        :key="index"
+        @click.native="$router.push({ name: 'master_detail', params: { type: 'news', id: item.id } })"
+      >
         <el-col :span="5" class="image">
           <el-image style="width:222px;height:141px" :src="item.pic"></el-image>
         </el-col>