|  |  |  | 
|---|
|  |  |  | </div> | 
|---|
|  |  |  | </ContentScrollView> | 
|---|
|  |  |  | <PageFooter v-if="detail?.userSignContractStatus === EnumTaskUserSignContractStatus.Wait"> | 
|---|
|  |  |  | <PageFooterBtn type="primary" @click="goToSign">去签约</PageFooterBtn> | 
|---|
|  |  |  | <PageFooterBtn type="primary" @click="goToSign" :loading="btnLoading">去签约</PageFooterBtn> | 
|---|
|  |  |  | </PageFooter> | 
|---|
|  |  |  | </LoadingLayout> | 
|---|
|  |  |  | </template> | 
|---|
|  |  |  | 
|---|
|  |  |  | //灵工Id | 
|---|
|  |  |  | const id = router.params?.id; | 
|---|
|  |  |  | const code = router.params?.code || options?.query?.scene; | 
|---|
|  |  |  | const btnLoading = ref(false); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const { | 
|---|
|  |  |  | isLoading, | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const goToSign = useAccessReal(async () => { | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | Taro.showLoading({ title: '正在加载中' }); | 
|---|
|  |  |  | btnLoading.value = true; | 
|---|
|  |  |  | let params: API.PersonalUserElectronSignCommand = { | 
|---|
|  |  |  | id: detail.value?.id, | 
|---|
|  |  |  | returnUrl: `${RouterPath.mineAgreementSignDetail}?id=${id}`, | 
|---|
|  |  |  | 
|---|
|  |  |  | Taro.redirectTo({ url: `${RouterPath.extraPage}?url=${encodedUrl}` }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | Taro.hideLoading(); | 
|---|
|  |  |  | btnLoading.value = false; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } catch (error) { | 
|---|
|  |  |  | Taro.hideLoading(); | 
|---|
|  |  |  | btnLoading.value = false; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|