From 02c3c7366b042f5ced78de45752f048f1c88eef2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E5=85=B8=E5=8D=93?= Date: Tue, 10 Jun 2025 09:36:04 +0800 Subject: [PATCH] =?UTF-8?q?flat:=E6=98=BE=E7=A4=BA=E6=80=A7=E8=83=BD?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/globalFunction.js | 7 ++++++- lib/.DS_Store | Bin 6148 -> 6148 bytes packageA/pages/post/post.vue | 6 +++--- unpackage/dist/.DS_Store | Bin 6148 -> 6148 bytes unpackage/dist/build/.DS_Store | Bin 6148 -> 6148 bytes 5 files changed, 9 insertions(+), 4 deletions(-) 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 c099a9cf32cd6dcae4ce95fc639e788abebf39d8..c38ac8f4df67587e0d65fed8c4a61b3e6355c687 100644 GIT binary patch delta 40 wcmZoMXfc@J&&ahgU^g=(*Jd7;NXE%OS*0e2vuRDXXFsvAVH)FRc8|khEj$UhD?ThAiIbml_43(Dguh6 z0!ar3Lk2wt10Xh^?7%9b!{Erkz%cJW7ywxe3<5wy%7IEV87hD{4`>8PgE0^rfi$o| zG)#_SRb@>D+Lntd=+7<+)RW3kJ~@rmNRHty(7+84!~g#WvbmAnGueh!!i8ZyP#D>M seq<$JC+mT|rN@v9^jLvsPJVJyPJR;Dr3{R+Al;Mav0mQH&heKY0Oxi^qW}N^ 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 ac56028c8819583893eab5689e5c38438e8fa18b..0a582e887839a10772c38d154f957da027399dc2 100644 GIT binary patch delta 47 zcmZoMXffE}&&0T6asX2yw?uWdiIJs_f|-HE0{>QSJo#QV* E0BaTx2><{9 diff --git a/unpackage/dist/build/.DS_Store b/unpackage/dist/build/.DS_Store index defd879a61685c1cdea80be3352e4a916d2fd92e..8614cffd888d7e99e7f058d853f2df28ac76a4d8 100644 GIT binary patch delta 27 fcmZoMXfc?ulzTk`1B2dwFxa>;jD0g3$3K1muaFH5 delta 27 fcmZoMXfc?ul-rSkfkE#-7;M}a#=e=2;~zf&ruYn>