feat: banner
This commit is contained in:
@ -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 } });
|
||||
};
|
||||
|
||||
@ -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
7
src/utils/partner.ts
Normal 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);
|
||||
Reference in New Issue
Block a user