feat: banner

This commit is contained in:
eleanor.mao
2025-04-24 00:43:55 +08:00
parent 7988725223
commit 7aafc3a789
16 changed files with 367 additions and 52 deletions

View File

@ -9,7 +9,6 @@ export const postCertification = async (data: ICertificationRequest) => {
return result;
};
export const getPhone = async (code: string): Promise<{ code: string }> => {
const result = await http.post<{ code: string }>(API.GET_PHONE, { data: { code } });
return result;
export const getPhone = async (code: string) => {
return await http.post<{ phoneNumber: string }>(API.GET_PHONE, { data: { code } });
};

View File

@ -27,12 +27,12 @@ import { collectEvent } from '@/utils/event';
import { getCityValues } from '@/utils/location';
export const isFullTimePriceRequired = (employType?: JobDetails['employType']) => {
return employType === EmployType.Full || employType === EmployType.All
}
return employType === EmployType.Full || employType === EmployType.All;
};
export const isPartTimePriceRequired = (employType?: JobDetails['employType']) => {
return employType === EmployType.Part || employType === EmployType.All
}
return employType === EmployType.Part || employType === EmployType.All;
};
export const getJobSalary = (data: Partial<JobDetails>) => {
const { salary, employType, lowPriceForFullTime, highPriceForFullTime, lowPriceForPartyTime, highPriceForPartyTime } =

7
src/utils/partner.ts Normal file
View File

@ -0,0 +1,7 @@
import Taro from '@tarojs/taro';
import { CacheKey } from '@/constants/cache-key';
export const getPartnerBannerClose = (): boolean => Taro.getStorageSync(CacheKey.CLOSE_PARTNER_BANNER);
export const setPartnerBannerClose = () => Taro.setStorageSync(CacheKey.CLOSE_PARTNER_BANNER, true);