From 6f7e78896a89d9f9d34f31457ad743eed60a9fd9 Mon Sep 17 00:00:00 2001 From: chashaobao Date: Wed, 10 Sep 2025 21:37:20 +0800 Subject: [PATCH] feat: distance --- src/components/job-card/index.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/job-card/index.tsx b/src/components/job-card/index.tsx index 7045fd7..4145f7c 100644 --- a/src/components/job-card/index.tsx +++ b/src/components/job-card/index.tsx @@ -11,7 +11,7 @@ import { EMPLOY_TYPE_TITLE_MAP, EmployType } from '@/constants/job'; import { JobInfo } from '@/types/job'; // import { LocationInfo } from '@/types/location'; import { getJobSalary, getJobTitle } from '@/utils/job'; -// import { calcDistance } from '@/utils/location'; +import { calcDistance } from '@/utils/location'; import { navigateTo, redirectTo } from '@/utils/route'; import './index.less'; @@ -45,7 +45,7 @@ function JobCard(props: IProps) { publisher, publisherAvatar, jobLocation, - // distance, + distance, isAuthed = false, } = data; @@ -84,12 +84,12 @@ function JobCard(props: IProps) {
{jobDescription || sourceText}
{jobLocation?.address}
- {/*{distance && (*/} - {/* <>*/} - {/* */} - {/*
{calcDistance(distance)}
*/} - {/* */} - {/*)}*/} + {distance && ( + <> + +
{calcDistance(distance)}
+ + )}