| | |
| | | 'mineCollectTask/mineCollectTask', |
| | | 'mineAgreementSign/mineAgreementSign', |
| | | 'mineAgreementSignDetail/mineAgreementSignDetail', |
| | | 'mineAgreementSignExtraPage/mineAgreementSignExtraPage', |
| | | 'setting/setting', |
| | | ], |
| | | }, |
| | |
| | | mineCollectTask = '/subpackages/mine/mineCollectTask/mineCollectTask', |
| | | mineAgreementSign = '/subpackages/mine/mineAgreementSign/mineAgreementSign', |
| | | mineAgreementSignDetail = '/subpackages/mine/mineAgreementSignDetail/mineAgreementSignDetail', |
| | | mineAgreementSignExtraPage = '/subpackages/mine/mineAgreementSignExtraPage/mineAgreementSignExtraPage', |
| | | setting = '/subpackages/mine/setting/setting', |
| | | |
| | | mineWallet = '/subpackages/wallet/mineWallet/mineWallet', |
| | |
| | | EnumTaskUserSignContractStatus, |
| | | EnumTaskUserSignContractStatusText, |
| | | } from '@12333/constants'; |
| | | import { format } from '@12333/utils'; |
| | | import { format, Message } from '@12333/utils'; |
| | | import Taro from '@tarojs/taro'; |
| | | |
| | | defineOptions({ |
| | |
| | | }); |
| | | |
| | | function checkAgreement() { |
| | | const encodedUrl = encodeURIComponent(detail?.value?.contractUrl); |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.mineAgreementSignDetail}?url=${encodedUrl}`, |
| | | }); |
| | | if (detail?.value?.userSignContractStatus === EnumTaskUserSignContractStatus.Wait) { |
| | | goToSign(); |
| | | } else { |
| | | const encodedUrl = encodeURIComponent(detail?.value?.contractUrl); |
| | | Taro.navigateTo({ |
| | | url: `${RouterPath.mineAgreementSignDetail}?url=${encodedUrl}`, |
| | | }); |
| | | } |
| | | } |
| | | |
| | | const goToSign = useAccessReal(async () => { |
| | |
| | | let res = await enterpriseEmployeeServices.personalUserElectronSign(params); |
| | | if (res) { |
| | | const encodedUrl = encodeURIComponent(res.signContractLongUrl); |
| | | Taro.navigateTo({ url: `${RouterPath.extraPage}?url=${encodedUrl}` }); |
| | | Taro.navigateTo({ url: `${RouterPath.mineAgreementSignExtraPage}?url=${encodedUrl}` }); |
| | | } |
| | | } catch (error) {} |
| | | }); |
| | |
| | | |
| | | export const hiddenIDNumberForEnd6 = (realIDNumber: string) => { |
| | | if (!realIDNumber) return ''; |
| | | realIDNumber.replace(/^(\d+)(.{6})$/, '$1******'); |
| | | return realIDNumber.replace(/^(\d+)(.{6})$/, '$1******'); |
| | | }; |