- {HOT_CITY.map(city => (
-
- {city.cityName}
+ {!!HOT_CITY_LIST.length && (
+
+ 热门城市
+
+ {HOT_CITY_LIST.map(city => {
+ return (
+
+ {city.cityName}
+
+ );
+ })}
- ))}
-
+
+ )}
{CITY_LIST.map(item => {
return (
diff --git a/src/constants/job.ts b/src/constants/job.ts
index 28b7041..5d2e6c5 100644
--- a/src/constants/job.ts
+++ b/src/constants/job.ts
@@ -75,7 +75,7 @@ export const EMPLOY_TYPE_TITLE_MAP = {
export const JOB_SOURCE_TYPE_TITLE_MAP = {
[JobSourceType.All]: '全部',
- [JobSourceType.BL]: '认证通告',
+ [JobSourceType.BL]: '急招',
[JobSourceType.VX]: '群通告',
};
@@ -122,10 +122,10 @@ export const JOB_PAGE_TABS = [
type: JobSourceType.BL,
title: JOB_SOURCE_TYPE_TITLE_MAP[JobSourceType.BL],
},
- {
- type: JobSourceType.VX,
- title: JOB_SOURCE_TYPE_TITLE_MAP[JobSourceType.VX],
- },
+ // {
+ // type: JobSourceType.VX,
+ // title: JOB_SOURCE_TYPE_TITLE_MAP[JobSourceType.VX],
+ // },
];
export const JOB_EMPLOY_TYPE_OPTIONS = [
diff --git a/src/fragments/user/company/index.less b/src/fragments/user/company/index.less
index cb28159..8e6be9f 100644
--- a/src/fragments/user/company/index.less
+++ b/src/fragments/user/company/index.less
@@ -13,6 +13,21 @@
.taroify-cell__value {
color: @blColor;
}
+
+ &-icon {
+ width: 40px;
+ height: 40px;
+ border-radius: 50%;
+ background: rgba(255, 80, 81, 0.16);
+ display: inline-flex;
+ justify-content: center;
+ align-items: center;
+ margin-right: 16px;
+ > image {
+ width: 18px;
+ height: 24px;
+ }
+ }
}
&__go-publish-cell {
@@ -24,4 +39,6 @@
color: @blHighlightColor;
}
}
+
+
}
diff --git a/src/fragments/user/company/index.tsx b/src/fragments/user/company/index.tsx
index 899cfab..8c15e42 100644
--- a/src/fragments/user/company/index.tsx
+++ b/src/fragments/user/company/index.tsx
@@ -1,3 +1,5 @@
+import { Image } from '@tarojs/components';
+
import { Cell } from '@taroify/core';
import classNames from 'classnames';
import { useCallback } from 'react';
@@ -27,7 +29,14 @@ export default function CompanyFragment() {
+
+
+
+ 发布急招通告,优先展示
+ |
+ }
className={classNames(`${PREFIX}__cell`, `${PREFIX}__go-publish-cell`)}
onClick={handlePublishJob}
>
diff --git a/src/http/index.ts b/src/http/index.ts
index 0a1643d..c1cdd52 100644
--- a/src/http/index.ts
+++ b/src/http/index.ts
@@ -107,7 +107,7 @@ class Http {
url: BASE_URL + url,
data,
method: method,
- header: { 'content-type': contentType /*'user-Id': '588002047871053824' */ },
+ header: { 'content-type': contentType /*,'user-Id': '588002047871053824'*/ },
};
return this.request(option);
};
diff --git a/src/pages/group-owner-certification/index.tsx b/src/pages/group-owner-certification/index.tsx
index e281363..e9777e9 100644
--- a/src/pages/group-owner-certification/index.tsx
+++ b/src/pages/group-owner-certification/index.tsx
@@ -30,10 +30,10 @@ export default function GroupOwnerCertification() {
const { authCode } = await generateGroupAuthCode();
return getCommonShareMessage({
useCapture: false,
- title: `群主测试 ${authCode}`,
+ title: `我在认证群主,宝子帮我点击下 ${authCode}`,
inviteCode,
params: { authCode },
- path: PageUrl.GroupOwnerCertificate,
+ path: PageUrl.Job,
imageUrl: 'https://publiccdn.neighbourhood.com.cn/img/share-group-owner-certificate.png',
});
});
diff --git a/src/pages/job/index.less b/src/pages/job/index.less
index 3b6073f..3b48ccd 100644
--- a/src/pages/job/index.less
+++ b/src/pages/job/index.less
@@ -28,4 +28,19 @@
position: absolute;
}
}
+
+ &__tab-icon {
+ width: 32px;
+ height: 32px;
+ border-radius: 50%;
+ background: rgba(255, 80, 81, 0.16);
+ display: inline-flex;
+ justify-content: center;
+ align-items: center;
+ margin-right: 8px;
+ > image {
+ width: 14.4px;
+ height: 19.2px;
+ }
+ }
}
diff --git a/src/pages/job/index.tsx b/src/pages/job/index.tsx
index 67d3b67..3d8f97a 100644
--- a/src/pages/job/index.tsx
+++ b/src/pages/job/index.tsx
@@ -1,3 +1,4 @@
+import { Image } from '@tarojs/components';
import Taro, { useDidShow, useLoad, useShareAppMessage } from '@tarojs/taro';
import { Tabs } from '@taroify/core';
@@ -156,7 +157,20 @@ export default function Job() {
style={{ height: barHeight.current, paddingTop: statusBarHeight.current }}
>
{JOB_PAGE_TABS.map(tab => (
-
+
+ {tab.type === JobSourceType.BL ? (
+
+
+
+ ) : null}
+ {tab.title}
+ >
+ }
+ key={tab.type}
+ >
{
return Array.isArray(result) ? result : [];
return [];
};
-export const formatMoney = (cents: number) => {
+export const formatMoney = (cents: number, fraction = 2) => {
if (!cents) {
return '0';
}
const yuan = cents / 100;
- return yuan.toFixed(2);
+ return yuan.toFixed(fraction);
};
export function formatTimestamp(timestamp: string, dateOnly?: boolean): string {
// 创建 Date 对象