| | |
| | | "watchPostEffect": true, |
| | | "watchSyncEffect": true, |
| | | "useUpdateResume": true, |
| | | "useAccessReal": true |
| | | "useAccessReal": true, |
| | | "useLaunchOptions": true |
| | | } |
| | | } |
| | |
| | | const useGoLogin: typeof import('./src/hooks/user')['useGoLogin'] |
| | | const useId: typeof import('vue')['useId'] |
| | | const useIsLogin: typeof import('./src/hooks/user')['useIsLogin'] |
| | | const useLaunchOptions: typeof import('./src/hooks/app')['useLaunchOptions'] |
| | | const useLink: typeof import('vue-router')['useLink'] |
| | | const useLoginedJump: typeof import('./src/hooks/login')['useLoginedJump'] |
| | | const useModel: typeof import('vue')['useModel'] |
| | |
| | | readonly useGoLogin: UnwrapRef<typeof import('./src/hooks/user')['useGoLogin']> |
| | | readonly useId: UnwrapRef<typeof import('vue')['useId']> |
| | | readonly useIsLogin: UnwrapRef<typeof import('./src/hooks/user')['useIsLogin']> |
| | | readonly useLaunchOptions: UnwrapRef<typeof import('./src/hooks/app')['useLaunchOptions']> |
| | | readonly useLink: UnwrapRef<typeof import('vue-router')['useLink']> |
| | | readonly useLoginedJump: UnwrapRef<typeof import('./src/hooks/login')['useLoginedJump']> |
| | | readonly useModel: UnwrapRef<typeof import('vue')['useModel']> |
| | |
| | | "miniprogram": { |
| | | "list": [ |
| | | { |
| | | "name": "subpackages/mine/mineAgreementSignDetail/mineAgreementSignDetail", |
| | | "pathName": "subpackages/mine/mineAgreementSignDetail/mineAgreementSignDetail", |
| | | "query": "scene=66688", |
| | | "launchMode": "default", |
| | | "scene": 1047 |
| | | }, |
| | | { |
| | | "name": "实名认证", |
| | | "pathName": "subpackages/authentication/authenticationRealName/authenticationRealName", |
| | | "query": "type=realName", |
New file |
| | |
| | | import Taro from '@tarojs/taro'; |
| | | import { useUserStoreWithOut } from '@/stores/modules/user'; |
| | | |
| | | export function useLaunchOptions() { |
| | | const options = Taro.getLaunchOptionsSync(); |
| | | const userStore = useUserStoreWithOut(); |
| | | console.log('userStore: ', userStore); |
| | | if (userStore.firstLaunch) { |
| | | userStore.setFirstLaunch(false); |
| | | return options; |
| | | } |
| | | return {} as Taro.getLaunchOptionsSync.LaunchOptions; |
| | | } |
| | |
| | | export * from './access'; |
| | | export * from './login'; |
| | | export * from './authentication'; |
| | | export * from './app'; |
| | |
| | | refreshToken?: Nullable<string>; |
| | | userDetail?: Nullable<API.GetPersonalLoginInfoQueryResult>; |
| | | firstGetUserDetail?: boolean; |
| | | firstLaunch?: boolean; |
| | | |
| | | locationCity?: string; |
| | | locationProvince?: string; |
| | |
| | | refreshToken: userInfo?.refreshToken ?? '', |
| | | userDetail: userDetail, |
| | | firstGetUserDetail: true, |
| | | firstLaunch: true, |
| | | locationCity: storageLocation?.city ?? '北京市', |
| | | locationProvince: storageLocation?.province ?? '北京', |
| | | firstSetLocation: true, |
| | |
| | | // } |
| | | LocationUtils.currentProvinceName = provinceName; |
| | | }, |
| | | |
| | | setFirstLaunch(firstLaunch: boolean) { |
| | | this.firstLaunch = firstLaunch; |
| | | }, |
| | | }, |
| | | }); |
| | | |
| | |
| | | page: pageParam, |
| | | orderInput: [{ property: 'id', order: EnumPagedListOrder.Desc }], |
| | | }, |
| | | userSignContractStatus: queryState.userSignContractStatus, |
| | | userSignContractStatus: Number(queryState.userSignContractStatus) |
| | | ? queryState.userSignContractStatus |
| | | : null, |
| | | }; |
| | | |
| | | return enterpriseEmployeeServices.getPersonalUserElectronSigns(params, { |
| | |
| | | EnumTaskUserSignContractStatus, |
| | | EnumTaskUserSignContractStatusSignText, |
| | | } from '@12333/constants'; |
| | | import { format, hiddenPhone, Message, setOSSLink } from '@12333/utils'; |
| | | import { format, hiddenPhone, Message, setOSSLink, openDocument } from '@12333/utils'; |
| | | import Taro from '@tarojs/taro'; |
| | | |
| | | defineOptions({ |
| | |
| | | |
| | | const { userDetail } = useUser(); |
| | | const router = Taro.useRouter(); |
| | | const launchOption = useLaunchOptions(); |
| | | //灵工Id |
| | | const id = router.params?.id; |
| | | const code = router.params?.code; |
| | | const code = launchOption?.query?.scene || router.params?.code; |
| | | |
| | | const { |
| | | isLoading, |
| | |
| | | detail?.value?.userSignContractStatus === EnumTaskUserSignContractStatus.Stop || |
| | | detail?.value?.userSignContractStatus === EnumTaskUserSignContractStatus.Pass |
| | | ) { |
| | | const encodedUrl = encodeURIComponent(setOSSLink(detail?.value?.contractUrl)); |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.mineAgreementSignExtraPage}?url=${encodedUrl}`, |
| | | }); |
| | | if (!detail?.value?.contractUrl) { |
| | | Message.warning('协议无法查看,请稍后再试'); |
| | | return; |
| | | } |
| | | openDocument(setOSSLink(detail?.value?.contractUrl)); |
| | | } |
| | | } |
| | | |
| | |
| | | return fileName; |
| | | }); |
| | | } |
| | | |
| | | export function openDocument(url: string) { |
| | | Taro.downloadFile({ |
| | | url: url, |
| | | success: function (res) { |
| | | var filePath = res.tempFilePath; |
| | | Taro.openDocument({ |
| | | filePath: filePath, |
| | | }); |
| | | }, |
| | | }); |
| | | } |