| | |
| | | @click="goCompanyDetail" |
| | | :enterpriseName="detail?.enterpriseName ?? ''" |
| | | :taskCount="detail?.taskCount ?? 0" |
| | | :isReal="detail?.isReal ?? false" |
| | | ></CompanyDesc> |
| | | </CellChunk> |
| | | </Cell> |
| | |
| | | } |
| | | }); |
| | | |
| | | const handleApply = useAccessLogin(async () => { |
| | | try { |
| | | let params: API.ApplyTaskCommand = { |
| | | ids: [id], |
| | | }; |
| | | let res = await taskUserServices.applyTask(params); |
| | | if (res) { |
| | | Message.success('报名成功'); |
| | | refetch({ type: 'inactive' }); |
| | | } |
| | | } catch (error) {} |
| | | }); |
| | | const handleApply = useAccessReal( |
| | | async () => { |
| | | try { |
| | | let params: API.ApplyTaskCommand = { |
| | | ids: [id], |
| | | }; |
| | | let res = await taskUserServices.applyTask(params); |
| | | if (res) { |
| | | Message.success('报名成功'); |
| | | refetch({ type: 'inactive' }); |
| | | } |
| | | } catch (error) {} |
| | | }, |
| | | { message: '实名成功后才可报名,请前往实名认证' } |
| | | ); |
| | | |
| | | const handleAttention = useAccessLogin(async () => { |
| | | try { |
| | |
| | | scale: 18, |
| | | }); |
| | | } |
| | | |
| | | Taro.useDidShow(() => { |
| | | refetch(); |
| | | }); |
| | | </script> |