wupengfei
2 天以前 8d973d050ba66a497ca763f9670aab457a74e2b1
apps/cMiniApp/src/subpackages/mine/mineAgreementSignDetail/InnerPage.vue
@@ -83,6 +83,7 @@
  name: 'InnerPage',
});
const { userDetail } = useUser();
const router = Taro.useRouter();
const id = router.params?.id;
const code = router.params?.code;
@@ -93,7 +94,7 @@
  data: detail,
  refetch,
} = useQuery({
  queryKey: ['enterpriseEmployeeServices/getTaskInfo', id, code],
  queryKey: ['enterpriseEmployeeServices/getPersonalUserElectronSign', id, code],
  queryFn: async () => {
    return await enterpriseEmployeeServices.getPersonalUserElectronSign(
      { id: id, code: code },
@@ -115,7 +116,18 @@
  });
}
const goToSign = useAccessReal(() => {});
const goToSign = useAccessReal(async () => {
  try {
    let params: API.PersonalUserElectronSignCommand = {
      id: id,
    };
    let res = await enterpriseEmployeeServices.personalUserElectronSign(params);
    if (res) {
      const encodedUrl = encodeURIComponent(res.signContractLongUrl);
      Taro.navigateTo({ url: `${RouterPath.extraPage}?url=${encodedUrl}` });
    }
  } catch (error) {}
});
</script>
<style lang="scss">