Browse Source

添加企业详情

lrf402788946 5 years ago
parent
commit
cefb9f7baf
2 changed files with 10 additions and 3 deletions
  1. 6 2
      src/components/detail/corp-list.vue
  2. 4 1
      src/pages/jobs/views/detail.vue

+ 6 - 2
src/components/detail/corp-list.vue

@@ -2,7 +2,7 @@
   <div id="corp-list">
     <el-row class="jobfairPar">
       <!-- TODO:查看企业详情 -->
-      <el-col :span="24" class="jobfairParLi" v-for="(item, index) in info" :key="index">
+      <el-col :span="24" class="jobfairParLi" v-for="(item, index) in info" :key="index" @click.native="toHtml(item)">
         <el-col :span="21" class="jobfairParLiDiv text-owt">
           <p>
             {{ item.corpname ? item.corpname : '' }}
@@ -29,7 +29,11 @@ export default {
   data: () => ({}),
   created() {},
   computed: {},
-  methods: {},
+  methods: {
+    toHtml(item) {
+      window.location.href = `corp.html#/${item.corpid}`;
+    },
+  },
 };
 </script>
 

+ 4 - 1
src/pages/jobs/views/detail.vue

@@ -2,7 +2,7 @@
   <div id="detail">
     <detail-layout typeInfo="职位详情">
       <template v-slot:header>
-        <el-row :span="24" class="talkTop">
+        <el-row :span="24" class="talkTop" @click.native="toHtml">
           <el-col :span="5" class="talkTopImage">
             <div class="demo-image">
               <el-image style="width: 3.75rem; height: 3.75rem" :src="url" :fit="`cover`"></el-image>
@@ -181,6 +181,9 @@ export default {
         message: `${result.errcode}` === '0' ? '投递简历成功' : result.errmsg === '数据已存在' ? '已投递简历,不能重复投递' : result.errmsg,
       });
     },
+    toHtml() {
+      window.location.href = `corp.html#/${this.info.corpid}`;
+    },
   },
   filters: {
     getData({ data, search }) {