浏览代码

热门企业

Xiao_123 1 年之前
父节点
当前提交
d01d8b3a0f

+ 3 - 3
src/components/Enterprise/hotPromoted.vue

@@ -4,10 +4,10 @@
       <!-- 公司信息 -->
       <div class="company-info-top" @click="handleClickEnterprise(item)">
         <div class="float-left">
-          <v-img src="../../assets/logo.png" :alt="item.anotherName" :width="40" style="height: 40px;border-radius: 4px;"/>
+          <v-img src="../../assets/logo.png" :alt="item.enterprise.anotherName" :width="40" style="height: 40px;border-radius: 4px;"/>
         </div>
         <div class="company-info">
-          <h3>{{ item.anotherName }}</h3>
+          <h3>{{ item.enterprise.anotherName }}</h3>
           <p>{{ item.financingName }}<span class="vline"></span>{{ item.scaleName }}<span class="vline"></span>{{ item.industryName }}</p>
         </div>
       </div>
@@ -62,7 +62,7 @@ const handleClickPosition = (k) => {
 }
 // 企业详情
 const handleClickEnterprise = (item) => {
-  window.open(`/enterprise/details/${item.id}`)
+  window.open(`/enterprise/details/${item.enterprise.id}`)
 }
 
 // 查看更多职位

+ 2 - 2
src/views/Home/personal/components/popularEnterprises.vue

@@ -42,12 +42,12 @@ const getHotEnterpriseList = async () => {
       if (item.isEnter) {
         const valueKey = item.nameKey ? item.nameKey : 'label'
         const idKey = item.valueKey ? item.valueKey : 'value'
-        e[item.label] = dictObj[item.value].find(k => Number(k[idKey]) === e[item.key])[valueKey]
+        e[item.label] = dictObj[item.value].find(k => Number(k[idKey]) === e.enterprise[item.key])[valueKey]
       }
       const list = e.jobList
       if (!item.isEnter) {
         // 职位列表
-        e.jobList = dealDictData(e.jobList, list)
+        e.jobList = dealDictData(e.jobList, list).slice(0, 3)
       }
       return e
     })