diff --git a/common/globalFunction.js b/common/globalFunction.js
index 2dc5b90..9d4cb2e 100644
--- a/common/globalFunction.js
+++ b/common/globalFunction.js
@@ -539,6 +539,10 @@ function isInWechatMiniProgramWebview() {
return ua.includes('miniprogram') || window.__wxjs_environment === 'miniprogram'
}
+function isEmptyObject(obj) {
+ return obj && typeof obj === 'object' && !Array.isArray(obj) && Object.keys(obj).length === 0;
+}
+
export const $api = {
msg,
prePage,
@@ -579,5 +583,6 @@ export default {
parseQueryParams,
appendScriptTagElement,
insertSortData,
- isInWechatMiniProgramWebview
+ isInWechatMiniProgramWebview,
+ isEmptyObject
}
\ No newline at end of file
diff --git a/lib/.DS_Store b/lib/.DS_Store
index c099a9c..c38ac8f 100644
Binary files a/lib/.DS_Store and b/lib/.DS_Store differ
diff --git a/packageA/pages/post/post.vue b/packageA/pages/post/post.vue
index 7a98d83..c1ec723 100644
--- a/packageA/pages/post/post.vue
+++ b/packageA/pages/post/post.vue
@@ -11,7 +11,7 @@
-
+
{{ jobInfo.minSalary }}-{{ jobInfo.maxSalary }}/月
{{ jobInfo.jobTitle }}
@@ -136,7 +136,7 @@ import VideoPlayer from './component/videoPlayer.vue';
import { reactive, inject, watch, ref, onMounted, computed } from 'vue';
import { onLoad, onShow } from '@dcloudio/uni-app';
import dictLabel from '@/components/dict-Label/dict-Label.vue';
-const { $api, navTo, getLenPx, parseQueryParams, navBack } = inject('globalFunction');
+const { $api, navTo, getLenPx, parseQueryParams, navBack, isEmptyObject } = inject('globalFunction');
import RadarMap from './component/radarMap.vue';
const matchingDegree = ref(['一般', '良好', '优秀', '极好']);
const currentStep = ref(1);
@@ -167,7 +167,6 @@ function initLoad(option) {
if (jobId !== jobIdRef.value) {
jobIdRef.value = jobId;
getDetail(jobId);
- getCompetivetuveness(jobId);
}
}
@@ -184,6 +183,7 @@ function getDetail(jobId) {
const { latitude, longitude, companyName, companyId } = resData.data;
jobInfo.value = resData.data;
getCompanyIsAJobs(companyId);
+ getCompetivetuveness(jobId);
if (latitude && longitude) {
mapCovers.value = [
{
diff --git a/unpackage/dist/.DS_Store b/unpackage/dist/.DS_Store
index ac56028..0a582e8 100644
Binary files a/unpackage/dist/.DS_Store and b/unpackage/dist/.DS_Store differ
diff --git a/unpackage/dist/build/.DS_Store b/unpackage/dist/build/.DS_Store
index defd879..8614cff 100644
Binary files a/unpackage/dist/build/.DS_Store and b/unpackage/dist/build/.DS_Store differ