From 14853bcda2707be19f84e82dbb5426d3006fdab7 Mon Sep 17 00:00:00 2001 From: chashaobao Date: Sat, 27 Dec 2025 16:21:33 +0800 Subject: [PATCH] feat: --- src/components/prejob-popup/index.tsx | 2 +- .../steps-ui/company-publish-job-buy.tsx | 2 +- .../product-dialog/steps-ui/job-buy.tsx | 4 ++-- src/fragments/user/anchor/index.less | 21 +++++++++++++++++++ src/fragments/user/anchor/index.tsx | 11 +++++++++- src/http/constant.ts | 1 + src/pages/invite-operations/index.tsx | 2 +- src/types/product.ts | 1 + 8 files changed, 38 insertions(+), 6 deletions(-) diff --git a/src/components/prejob-popup/index.tsx b/src/components/prejob-popup/index.tsx index 3e75fe5..587a810 100644 --- a/src/components/prejob-popup/index.tsx +++ b/src/components/prejob-popup/index.tsx @@ -45,7 +45,7 @@ const GET_CONTACT_TYPE_OPTIONS = [ { type: GET_CONTACT_TYPE.INVITE, icon: 'https://publiccdn.neighbourhood.com.cn/img/invite-operations.png', - title: '邀请运营进群(进会员)', + title: '邀请运营进群(送会员)', desc: '每邀请进一个主播群送一个日会员', btnText: '邀请', }, 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 2d197b4..8ebc141 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 @@ -161,7 +161,7 @@ export default function CompanyPublishJobBuy(props: IProps) {
handleClickItem(item)} diff --git a/src/components/product-dialog/steps-ui/job-buy.tsx b/src/components/product-dialog/steps-ui/job-buy.tsx index 498a48a..77dfd2c 100644 --- a/src/components/product-dialog/steps-ui/job-buy.tsx +++ b/src/components/product-dialog/steps-ui/job-buy.tsx @@ -167,9 +167,9 @@ export default function JobBuy(props: IProps) { {productList.map(item => { return (
handleClickItem(item)} diff --git a/src/fragments/user/anchor/index.less b/src/fragments/user/anchor/index.less index d575507..dc72799 100644 --- a/src/fragments/user/anchor/index.less +++ b/src/fragments/user/anchor/index.less @@ -17,4 +17,25 @@ border-radius: 16px; margin-top: 24px; } + + &__recommend { + display: inline-flex; + line-height: 36px; + padding: 0 8px; + height: 36px; + background: rgb(255, 80, 81); + border-radius: 4px; + font-size: 24px; + color: #fff; + align-items: center; + gap: 6px; + position: absolute; + left: 208px; + top: 8px; + width: 128px; + + &-cell { + position: relative; + } + } } diff --git a/src/fragments/user/anchor/index.tsx b/src/fragments/user/anchor/index.tsx index 0b9e112..db52ceb 100644 --- a/src/fragments/user/anchor/index.tsx +++ b/src/fragments/user/anchor/index.tsx @@ -1,6 +1,7 @@ import { Image } from '@tarojs/components'; import { Cell } from '@taroify/core'; +import { GoodJob } from '@taroify/icons'; import { useCallback } from 'react'; import MaterialCard from '@/components/material-card'; @@ -34,7 +35,15 @@ export default function AnchorFragment() { + 免费领主播会员 +
+ + 强烈推荐 +
+
+ } className={`${PREFIX}__cell`} onClick={handleClickInviteOperations} /> diff --git a/src/http/constant.ts b/src/http/constant.ts index 4d73434..28428f8 100644 --- a/src/http/constant.ts +++ b/src/http/constant.ts @@ -27,6 +27,7 @@ export enum RESPONSE_ERROR_CODE { INSUFFICIENT_FREE_BALANCE = 'INSUFFICIENT_FREE_BALANCE', // 免费查看次数(未购买会员)超限 BOSS_VIP_EXPIRED = 'BOSS_VIP_EXPIRED', // 会员过期 CHAT_MSG_SEND_NOT_ALLOW = 'CHAT_MSG_SEND_NOT_ALLOW', + JOB_EXIST_ONE_PUBLISHED = 'JOB_EXIST_ONE_PUBLISHED', } export const RESPONSE_ERROR_INFO: { [key in RESPONSE_ERROR_CODE]?: string } = { diff --git a/src/pages/invite-operations/index.tsx b/src/pages/invite-operations/index.tsx index cfa09a3..1a1fafd 100644 --- a/src/pages/invite-operations/index.tsx +++ b/src/pages/invite-operations/index.tsx @@ -19,7 +19,7 @@ const PREFIX = 'invite-operations'; export default function InviteOperations() { const location = useLocation(); const userInfo = useUserInfo(); - const [cityCode, setCityCode] = useState(location.cityCode); + const [cityCode, setCityCode] = useState(); const [staffInfo, setStaffInfo] = useState(null); const handleClickCityMenu = useCallback(() => { diff --git a/src/types/product.ts b/src/types/product.ts index fbd6f4f..dfc892f 100644 --- a/src/types/product.ts +++ b/src/types/product.ts @@ -114,6 +114,7 @@ export interface GetOrderInfoRequest { } export interface ProductSpecResult { + id: string; productId: string; productSpecId: ProductSpecId; productType: ProductType;