| | |
| | | </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}`, |
| | |
| | | } |
| | | } else { |
| | | const encodedUrl = encodeURIComponent(res.signContractLongUrl); |
| | | Taro.redirectTo({ url: `${RouterPath.extraPage}?url=${encodedUrl}` }); |
| | | Taro.redirectTo({ url: `${RouterPath.extraPage}?url=${res.signContractLongUrl}` }); |
| | | } |
| | | } else { |
| | | Taro.hideLoading(); |
| | | btnLoading.value = false; |
| | | } |
| | | } catch (error) { |
| | | Taro.hideLoading(); |
| | | btnLoading.value = false; |
| | | } |
| | | }); |
| | | |