feat: 加群+一些bug+样式+job list改default sort
This commit is contained in:
@ -40,7 +40,7 @@ import { isNeedCreateMaterial } from '@/utils/user';
|
||||
import './index.less';
|
||||
import { Dialog } from '@taroify/core';
|
||||
import CompanyPublishJobBuy from '@/components/product-dialog/steps-ui/company-publish-job-buy';
|
||||
import { requestProductBalance } from '@/utils/product';
|
||||
import { requestProductBalance, requestProductUseRecord } from '@/utils/product';
|
||||
import { ProductType } from '@/constants/product';
|
||||
import store from '@/store';
|
||||
import { cacheJobId } from '@/store/actions';
|
||||
@ -85,10 +85,13 @@ const AnchorFooter = (props: { data: JobDetails }) => {
|
||||
|
||||
if (data.sourcePlat !== 'bl') {
|
||||
if (needCreateMaterial) {
|
||||
const [time] = await requestProductBalance(ProductType.VIP);
|
||||
if (time <= 0) {
|
||||
setShowMaterialGuide(true);
|
||||
return;
|
||||
const result = await requestProductUseRecord(ProductType.VIP, { jobId: data.id });
|
||||
if (!result) {
|
||||
const [time, isPaidVip] = await requestProductBalance(ProductType.VIP);
|
||||
if (time <= 0 || !isPaidVip) {
|
||||
setShowMaterialGuide(true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -33,7 +33,7 @@ export default function Job() {
|
||||
const inviteCode = useInviteCode();
|
||||
const [tabType, setTabType] = useState<JobSourceType>(JobSourceType.All);
|
||||
const [employType, setEmployType] = useState<EmployType>(EmployType.All);
|
||||
const [sortType, setSortType] = useState<SortType>(SortType.RECOMMEND);
|
||||
const [sortType, setSortType] = useState<SortType>(SortType.CREATE_TIME);
|
||||
const [cityCode, setCityCode] = useState<string>(location.cityCode);
|
||||
const [coordinate, setCoordinate] = useState<Coordinate>({
|
||||
latitude: location.latitude,
|
||||
|
||||
Reference in New Issue
Block a user