From fde202758886fe069b7b003ef222d85a98bf9049 Mon Sep 17 00:00:00 2001 From: chashaobao Date: Sun, 26 Oct 2025 22:23:14 +0800 Subject: [PATCH] feat: --- .../group-certification-list/index.less | 8 ++++- src/components/partner-banner/index.tsx | 4 +-- src/components/partner-intro/index.less | 1 + src/components/partner-intro/index.tsx | 4 +-- .../steps-ui/company-publish-job-buy.tsx | 8 ++--- src/components/search-city/index.tsx | 34 ++++++++++++------- src/constants/job.ts | 10 +++--- src/fragments/user/company/index.less | 17 ++++++++++ src/fragments/user/company/index.tsx | 11 +++++- src/http/index.ts | 2 +- src/pages/group-owner-certification/index.tsx | 4 +-- src/pages/job/index.less | 15 ++++++++ src/pages/job/index.tsx | 16 ++++++++- src/utils/partner.ts | 4 +-- 14 files changed, 104 insertions(+), 34 deletions(-) diff --git a/src/components/group-certification-list/index.less b/src/components/group-certification-list/index.less index 9d2fde6..9f70755 100644 --- a/src/components/group-certification-list/index.less +++ b/src/components/group-certification-list/index.less @@ -5,10 +5,16 @@ &__banner { font-weight: 400; font-size: 24px; - height: 72px; + height: 74px; padding: 32px 32px 25px; line-height: 36px; color: #999999; + background: #F5F6FA; + position: fixed; + z-index: 1; + top: 99px; + left: 0; + right: 0; } &__title { height: 72px; diff --git a/src/components/partner-banner/index.tsx b/src/components/partner-banner/index.tsx index cb6d40d..84244a9 100644 --- a/src/components/partner-banner/index.tsx +++ b/src/components/partner-banner/index.tsx @@ -52,8 +52,8 @@ export default function PartnerBanner({ isBoss = false }) { className={`${PREFIX}__image`} src={ isBoss - ? 'https://publiccdn.neighbourhood.com.cn/img/partner-banner-boss.png' - : 'https://publiccdn.neighbourhood.com.cn/img/partner_banner.png' + ? 'https://publiccdn.neighbourhood.com.cn/img/partner_banner.png' + : 'https://publiccdn.neighbourhood.com.cn/img/partner-banner-boss.png' } mode="scaleToFill" /> diff --git a/src/components/partner-intro/index.less b/src/components/partner-intro/index.less index 1e60a28..47820d6 100644 --- a/src/components/partner-intro/index.less +++ b/src/components/partner-intro/index.less @@ -97,6 +97,7 @@ } &-details { margin-top: 5px; + white-space: nowrap; } &-id { font-size: 24px; diff --git a/src/components/partner-intro/index.tsx b/src/components/partner-intro/index.tsx index fa3c2bb..96b270f 100644 --- a/src/components/partner-intro/index.tsx +++ b/src/components/partner-intro/index.tsx @@ -87,10 +87,10 @@ export default function PartnerIntro() { {[EarnType.CHAT_ACTIVITY_SHARE_L1, EarnType.CHAT_ACTIVITY_SHARE_L2].includes(item.earnType) ? '主播被开聊' : '会员支付'} -
+{formatMoney(item.total)}
+
+{formatMoney(item.amount, 1)}
- 累计
{formatMoney(item.amount)}
+ 累计
{formatMoney(item.total, 1)}
diff --git a/src/components/product-dialog/steps-ui/company-publish-job-buy.tsx b/src/components/product-dialog/steps-ui/company-publish-job-buy.tsx index e4fd2e2..daddf71 100644 --- a/src/components/product-dialog/steps-ui/company-publish-job-buy.tsx +++ b/src/components/product-dialog/steps-ui/company-publish-job-buy.tsx @@ -48,8 +48,8 @@ const LIST: Item[] = [ { id: ProductSpecId.BOSS_VIP_NEW_2, title: '推荐一月', - price: '480播豆', - amt: 48, + price: '680播豆', + amt: 68, badge: '限时体验', contents: [ { content: '-通告每日优先展示', highlight: true }, @@ -61,8 +61,8 @@ const LIST: Item[] = [ { id: ProductSpecId.BOSS_VIP_NEW_3, title: '推荐一季', - price: '960播豆', - amt: 96, + price: '1360播豆', + amt: 136, badge: '6.7折', contents: [ { content: '-通告每日优先展示', highlight: true }, diff --git a/src/components/search-city/index.tsx b/src/components/search-city/index.tsx index 9e4ebe3..7a3c210 100644 --- a/src/components/search-city/index.tsx +++ b/src/components/search-city/index.tsx @@ -2,7 +2,7 @@ import { BaseEventOrig, InputProps, ScrollView } from '@tarojs/components'; import Taro from '@tarojs/taro'; import { Search } from '@taroify/core'; -import { useCallback, useEffect, useState } from 'react'; +import { Fragment, useCallback, useEffect, useState } from 'react'; import { CITY_CODE_TO_NAME_MAP, CITY_INDEXES_LIST } from '@/constants/city'; import useCityOperators from '@/hooks/use-city-operators'; @@ -81,6 +81,8 @@ export default function SearchCity({ }).filter(item => item.data.length > 0) : CITY_INDEXES_LIST; + const HOT_CITY_LIST = forGroup ? HOT_CITY.filter(it => groupCityCodes.includes(`${it.cityCode}`)) : HOT_CITY; + const handleSearchChange = useCallback((event: BaseEventOrig) => { const value = event.detail.value; log('handleSearchChange', value); @@ -183,19 +185,25 @@ export default function SearchCity({
当前城市
{CITY_CODE_TO_NAME_MAP.get(currentCity)}
-
热门城市
-
- {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 对象