|  |  | 
 |  |  |  | 
 |  |  | const { userDetail } = useUser(); | 
 |  |  | const router = Taro.useRouter(); | 
 |  |  | const launchOption = useLaunchOptions(); | 
 |  |  | const options = Taro.getLaunchOptionsSync(); | 
 |  |  | //灵工Id | 
 |  |  | const id = router.params?.id; | 
 |  |  | const code = launchOption?.query?.scene || router.params?.code; | 
 |  |  | const code = router.params?.code || options?.query?.scene; | 
 |  |  |  | 
 |  |  | const { | 
 |  |  |   isLoading, | 
 |  |  | 
 |  |  |  | 
 |  |  | const goToSign = useAccessReal(async () => { | 
 |  |  |   try { | 
 |  |  |     // if (detail.value?.contractTemplateAccess === EnumElectronSignAccess.BestSign) { | 
 |  |  |     let params: API.PersonalUserElectronSignCommand = { | 
 |  |  |       id: id, | 
 |  |  |       id: detail.value?.id, | 
 |  |  |     }; | 
 |  |  |     let res = await enterpriseEmployeeServices.personalUserElectronSign(params); | 
 |  |  |     if (res) { | 
 |  |  |       const encodedUrl = encodeURIComponent(res.signContractLongUrl); | 
 |  |  |       Taro.navigateTo({ url: `${RouterPath.mineAgreementSignExtraPage}?url=${encodedUrl}` }); | 
 |  |  |       if (detail.value?.contractTemplateAccess === EnumElectronSignAccess.AlipaySign) { | 
 |  |  |         try { | 
 |  |  |           await Message.confirm({ | 
 |  |  |             message: `签约短信已发送至您${hiddenPhone( | 
 |  |  |               detail.value?.contactPhoneNumber | 
 |  |  |             )}的手机,请及时查看并签约`, | 
 |  |  |             cancelText: '未收到短信', | 
 |  |  |           }); | 
 |  |  |         } catch (error) { | 
 |  |  |           goToSign(); | 
 |  |  |         } | 
 |  |  |       } else { | 
 |  |  |         const encodedUrl = encodeURIComponent(res.signContractLongUrl); | 
 |  |  |         Taro.navigateTo({ url: `${RouterPath.extraPage}?url=${encodedUrl}` }); | 
 |  |  |       } | 
 |  |  |     } | 
 |  |  |     // } | 
 |  |  |     // if (detail.value?.contractTemplateAccess === EnumElectronSignAccess.AlipaySign) { | 
 |  |  |     //   Message.confirm({ | 
 |  |  |     //     message: `签约短信已发送至您${hiddenPhone( | 
 |  |  |     //       detail.value?.contactPhoneNumber | 
 |  |  |     //     )}的手机,请及时查看并签约`, | 
 |  |  |     //     showCancelBtn: false, | 
 |  |  |     //   }); | 
 |  |  |     // } | 
 |  |  |   } catch (error) {} | 
 |  |  | }); | 
 |  |  | Taro.useDidShow(() => { |