| | |
| | | |
| | | const { locationCity } = useUser(); |
| | | |
| | | onMounted(async () => { |
| | | try { |
| | | await resetLocation(); |
| | | } catch (error) {} |
| | | }); |
| | | |
| | | const userStore = useUserStore(); |
| | | |
| | | const queryMenuState = reactive({ |
| | |
| | | page: pageParam, |
| | | orderInput: [ |
| | | queryState.orderType === HomeOrderType.Recommend |
| | | ? { property: 'createdTime', order: EnumPagedListOrder.Desc } |
| | | : {}, |
| | | ? { property: 'recommendStatus', order: EnumPagedListOrder.Desc } |
| | | : { property: 'createdTime', order: EnumPagedListOrder.Desc }, |
| | | ], |
| | | }, |
| | | // keywords: 'string', |
| | |
| | | // status: 10, |
| | | releaseStatus: EnumTaskReleaseStatus.InProcess, |
| | | }; |
| | | |
| | | if (queryState.orderType === HomeOrderType.Recommend) { |
| | | params.recommendStatus = EnumTaskRecommendStatus.Yes; |
| | | } |
| | | |
| | | return taskServices.getTaskInfos(params, { |
| | | showLoading: false, |
| | |
| | | selectPositionItem.value?.toggle?.(); |
| | | } |
| | | |
| | | function goFlexJobDetail(item: API.GetFlexTaskListOutput) { |
| | | function goFlexJobDetail(item: API.GetTaskInfosQueryResultItem) { |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.flexJobDetail}?id=${item.taskId}`, |
| | | url: `${RouterPath.flexJobDetail}?id=${item.id}`, |
| | | }); |
| | | } |
| | | |