diff --git a/src/components/FirstJob/components/recommend.vue b/src/components/FirstJob/components/recommend.vue
index 428cbb8..1892851 100644
--- a/src/components/FirstJob/components/recommend.vue
+++ b/src/components/FirstJob/components/recommend.vue
@@ -52,14 +52,20 @@
>
- {{ item.hourlyPayTemp / 100 }}元/小时
{{ item.hourlyPayTemp / 100 }}元/日
+ > -->
@@ -67,7 +73,10 @@
diff --git a/src/components/FirstJob/detail.vue b/src/components/FirstJob/detail.vue
index ce06591..b302293 100644
--- a/src/components/FirstJob/detail.vue
+++ b/src/components/FirstJob/detail.vue
@@ -194,14 +194,20 @@
- {{ jobDetail.hourlyPay }}元/小时
{{ jobDetail.dayPay }}元/日
+ > -->
+ {{
+ getSalaryClassifyValue(
+ jobDetail.salaryClassify,
+ jobDetail.salaryClassifyValue
+ )
+ }}
@@ -649,7 +655,10 @@
diff --git a/src/components/FirstJob/joblist.vue b/src/components/FirstJob/joblist.vue
index e2c8102..33c921e 100644
--- a/src/components/FirstJob/joblist.vue
+++ b/src/components/FirstJob/joblist.vue
@@ -233,14 +233,21 @@
>元/月
- {{ item.hourlyPay }}元/小时
{{ item.dayPay }}元/日
+ > -->
@@ -335,7 +342,7 @@ import {
getProvinceApi,
// getCityApi,
} from "../../api/job";
-import { moneyToFixed } from "../../utils/commonUtil";
+import { moneyToFixed, getSalaryClassifyValue } from "../../utils/commonUtil";
import recommend from "@/components/FirstJob/components/recommend.vue";
import { nationlist } from "../../utils/datalist";
import recordbill from "@/components/FirstJob/components/recordbill.vue";
@@ -820,6 +827,9 @@ export default {
this.$router.push({ name: "recordbill", params: item });
sessionStorage.setItem("CURRENT_FIRM", JSON.stringify(item));
},
+ getSalaryClassifyValue(salaryClassify, salaryClassifyValue) {
+ return getSalaryClassifyValue(salaryClassify, salaryClassifyValue);
+ },
// todetail(item) {
// const routeURL = this.$router.resolve({
// name: "Detail",
diff --git a/src/utils/commonUtil.js b/src/utils/commonUtil.js
index c3586f6..b799ca8 100644
--- a/src/utils/commonUtil.js
+++ b/src/utils/commonUtil.js
@@ -1501,3 +1501,27 @@ export function disposeJobListData(jobList) {
return jobList;
}
+/**
+ * 根据薪资类型和薪资值获取薪资展示
+ */
+export function getSalaryClassifyValue(salaryClassify, salaryClassifyValue) {
+ var hourlyPay = moneyToFixed(salaryClassifyValue);
+ if (salaryClassify == 0) {
+ return `${hourlyPay}元/小时`;
+ } else if (salaryClassify == 1) {
+ return `${hourlyPay}元/天`;
+ } else if (salaryClassify == 2) {
+ return `补${hourlyPay}元`;
+ } else if (salaryClassify == 3) {
+ return `返${hourlyPay}元`;
+ } else if (salaryClassify == 4) {
+ return "计件";
+ } else if (salaryClassify == 5) {
+ return `保底${hourlyPay}元`;
+ } else if (salaryClassify == 6) {
+ return `面议`;
+ } else {
+ // return '请配置薪资';
+ return "-";
+ }
+}