From 56cf10c768841c4d36f0cfbd07daab45695b1d18 Mon Sep 17 00:00:00 2001 From: chashaobao Date: Wed, 25 Jun 2025 22:47:53 +0800 Subject: [PATCH] feat: --- project.config.json | 2 +- src/components/job-recommend-list/index.tsx | 4 +- src/components/partner-kanban/index.tsx | 8 +++- src/constants/city.ts | 50 ++++++++++++++++++--- src/utils/app.ts | 2 + 5 files changed, 56 insertions(+), 10 deletions(-) diff --git a/project.config.json b/project.config.json index fb8fdde..3481d02 100644 --- a/project.config.json +++ b/project.config.json @@ -44,4 +44,4 @@ }, "appid": "wxf0724a83f8e377d2", "simulatorPluginLibVersion": {} -} \ No newline at end of file +} diff --git a/src/components/job-recommend-list/index.tsx b/src/components/job-recommend-list/index.tsx index 95cf550..ae7aaf8 100644 --- a/src/components/job-recommend-list/index.tsx +++ b/src/components/job-recommend-list/index.tsx @@ -46,8 +46,8 @@ function JobRecommendList(props: IJobListProps) { setDataList([]); setLoading(true); setLoadError(false); - const { jobResults = [] } = await requestMyRecommendJobList({ ...requestProps.current }); - setDataList(jobResults); + const { jobResults } = await requestMyRecommendJobList({ ...requestProps.current }); + setDataList(jobResults || []); } catch (e) { setDataList([]); setLoadError(true); diff --git a/src/components/partner-kanban/index.tsx b/src/components/partner-kanban/index.tsx index ce43d1b..a9dc517 100644 --- a/src/components/partner-kanban/index.tsx +++ b/src/components/partner-kanban/index.tsx @@ -124,10 +124,14 @@ export default function PartnerKanban({ simple }: PartnerKanbanProps) { setStats(data); }, []); const handleViewWithdraw = useCallback(() => { - if (stats.availableBalance < 10 * 1000) { - Toast.error('提现金额需大于等于10元'); + if (stats.availableBalance < 0) { + Toast.info('提现金额需大于等于0元'); return; } + // if (stats.availableBalance < 10 * 1000) { + // Toast.error('提现金额需大于等于10元'); + // return; + // } setWithdrawOpen(true); }, [stats.availableBalance]); const handleWithdrawClose = useCallback(() => { diff --git a/src/constants/city.ts b/src/constants/city.ts index 77ac332..d046687 100644 --- a/src/constants/city.ts +++ b/src/constants/city.ts @@ -5861,6 +5861,16 @@ export const CITY_INDEXES_LIST = [ ]; export const GROUP_CITY_INDEXES_LIST = [ + { + letter: 'B', + data: [ + { + cityCode: '110100', + cityName: '北京', + keyword: 'BEIJING北京', + }, + ], + }, { letter: 'C', data: [ @@ -5874,6 +5884,11 @@ export const GROUP_CITY_INDEXES_LIST = [ cityName: '成都', keyword: 'CHENGDOU成都', }, + { + cityCode: '430100', + cityName: '长沙', + keyword: 'CHANGSHA长沙', + }, ], }, { @@ -5914,6 +5929,11 @@ export const GROUP_CITY_INDEXES_LIST = [ { letter: 'H', data: [ + { + cityCode: '330100', + cityName: '杭州', + keyword: 'HANGZHOU杭州', + }, { cityCode: '340100', cityName: '合肥', @@ -5921,6 +5941,16 @@ export const GROUP_CITY_INDEXES_LIST = [ }, ], }, + { + letter: 'K', + data: [ + { + cityCode: '530100', + cityName: '昆明', + keyword: 'KUNMING昆明', + }, + ], + }, { letter: 'N', data: [ @@ -5939,6 +5969,11 @@ export const GROUP_CITY_INDEXES_LIST = [ cityName: '青岛', keyword: 'QINGDAO青岛', }, + { + cityCode: '350500', + cityName: '泉州', + keyword: 'QUANZHOU泉州', + }, ], }, { @@ -5959,11 +5994,6 @@ export const GROUP_CITY_INDEXES_LIST = [ cityName: '苏州', keyword: 'SUZHOU苏州', }, - { - cityCode: '330300', - cityName: '温州', - keyword: 'WENZHOU温州', - }, ], }, { @@ -5979,6 +6009,11 @@ export const GROUP_CITY_INDEXES_LIST = [ { letter: 'W', data: [ + { + cityCode: '330300', + cityName: '温州', + keyword: 'WENZHOU温州', + }, { cityCode: '420100', cityName: '武汉', @@ -5994,6 +6029,11 @@ export const GROUP_CITY_INDEXES_LIST = [ cityName: '西安', keyword: 'XIAN西安', }, + { + cityCode: '350200', + cityName: '厦门', + keyword: 'XIAMEN厦门', + }, ], }, { diff --git a/src/utils/app.ts b/src/utils/app.ts index af7cd02..8248677 100644 --- a/src/utils/app.ts +++ b/src/utils/app.ts @@ -41,6 +41,8 @@ export const switchRoleType = async (appMode?: RoleType) => { const curMode = getRoleType(); appMode = curMode === RoleType.Anchor ? RoleType.Company : RoleType.Anchor; } + + console.log('switchRoleType', appMode); try { await postSwitchRoleType(appMode); store.dispatch(changeRoleType(appMode));