|
@@ -2,7 +2,7 @@
|
|
|
<template>
|
|
|
<view class="business-details">
|
|
|
<!-- 导航栏 -->
|
|
|
- <u-navbar title="" :background="background" title-color="#fff" back-icon-color="#fff" :border-bottom="false"/>
|
|
|
+ <u-navbar title="" :background="background" title-color="#fff" back-icon-color="#fff" :border-bottom="false" />
|
|
|
<!-- 背景 -->
|
|
|
<view class="business-details-bg"></view>
|
|
|
<!-- 内容 -->
|
|
@@ -11,7 +11,8 @@
|
|
|
<!-- <image :src="companyInfo.logoUrl" mode=""></image> -->
|
|
|
<u-image :src="companyInfo.logoUrl" width="140" height="140" border-radius="70">
|
|
|
<view slot="error">
|
|
|
- <u-image src="../../static/img/default-company.png" width="140" height="140" border-radius="70"/>
|
|
|
+ <u-image src="../../static/img/default-company.png" width="140" height="140"
|
|
|
+ border-radius="70" />
|
|
|
</view>
|
|
|
</u-image>
|
|
|
</view>
|
|
@@ -91,14 +92,15 @@
|
|
|
<u-image :src="item.companyLogoUrl" mode="aspectFill" width="112" height="112"
|
|
|
border-radius="10">
|
|
|
<view slot="error">
|
|
|
- <u-image src="../../static/img/default-company.png" width="112" height="112" border-radius="10"/>
|
|
|
+ <u-image src="../../static/img/default-company.png" width="112" height="112"
|
|
|
+ border-radius="10" />
|
|
|
</view>
|
|
|
</u-image>
|
|
|
</view>
|
|
|
<view class="info">
|
|
|
<view>{{ item.postName }}</view>
|
|
|
<view>
|
|
|
- {{ `${ item.areaName ? item.areaName + ' |' : '' } 经验${item.workYear ? item.workYear + '年' : '不限'} | ${ getEducationBg(item.educationBg) || '' }` }}
|
|
|
+ {{ `${ item.areaName ? item.areaName + ' |' : '' } ${item.workYear ? getDictsLabel(workYearList, item.workYear) : '不限'} | ${ getEducationBg(item.educationBg) || '' }` }}
|
|
|
</view>
|
|
|
<view>{{ item.companyName }}</view>
|
|
|
</view>
|
|
@@ -131,13 +133,15 @@
|
|
|
companyTradeList: [],
|
|
|
// 公司职位
|
|
|
positionList: [],
|
|
|
- degrEducList: []
|
|
|
+ degrEducList: [],
|
|
|
+ workYearList: []
|
|
|
}
|
|
|
},
|
|
|
onLoad(page) {
|
|
|
this.getDict('company_scope');
|
|
|
this.getDict('company_trade');
|
|
|
this.getDict('degr_educ');
|
|
|
+ this.getDict('work_year');
|
|
|
if (page.id) {
|
|
|
this.companyId = page.id
|
|
|
}
|
|
@@ -206,6 +210,8 @@
|
|
|
this.companyTradeList = res.data;
|
|
|
} else if (key === 'degr_educ') {
|
|
|
this.degrEducList = res.data;
|
|
|
+ } else if (key === 'work_year') {
|
|
|
+ this.workYearList = res.data
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -276,6 +282,24 @@
|
|
|
current: index,
|
|
|
urls: this.companyInfo.environmentUrlList
|
|
|
})
|
|
|
+ },
|
|
|
+ /**
|
|
|
+ * 通过value获取label
|
|
|
+ * @param {Object} list
|
|
|
+ * @param {Object} value
|
|
|
+ */
|
|
|
+ getDictsLabel(list, value) {
|
|
|
+ let label = '-';
|
|
|
+ try {
|
|
|
+ list.forEach(item => {
|
|
|
+ if (Number(item.text) === Number(value)) {
|
|
|
+ throw (item)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ } catch (e) {
|
|
|
+ label = e.label
|
|
|
+ }
|
|
|
+ return label
|
|
|
}
|
|
|
}
|
|
|
}
|