From 882df88aee586342cbf2e406f9ef0015a044fbb1 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期二, 21 十月 2025 21:28:54 +0800
Subject: [PATCH] fix: bug
---
apps/cMiniApp/src/components/PageFooter/PageFooterBtn.vue | 2 +-
apps/cMiniApp/src/subpackages/mine/mineAgreementSignDetail/InnerPage.vue | 13 +++++--------
2 files changed, 6 insertions(+), 9 deletions(-)
diff --git a/apps/cMiniApp/src/components/PageFooter/PageFooterBtn.vue b/apps/cMiniApp/src/components/PageFooter/PageFooterBtn.vue
index 204c530..36c19da 100644
--- a/apps/cMiniApp/src/components/PageFooter/PageFooterBtn.vue
+++ b/apps/cMiniApp/src/components/PageFooter/PageFooterBtn.vue
@@ -1,5 +1,5 @@
<template>
- <nut-button class="page-footer-btn">
+ <nut-button class="page-footer-btn" $attrs>
<slot></slot>
</nut-button>
</template>
diff --git a/apps/cMiniApp/src/subpackages/mine/mineAgreementSignDetail/InnerPage.vue b/apps/cMiniApp/src/subpackages/mine/mineAgreementSignDetail/InnerPage.vue
index d1427d1..4fe18c7 100644
--- a/apps/cMiniApp/src/subpackages/mine/mineAgreementSignDetail/InnerPage.vue
+++ b/apps/cMiniApp/src/subpackages/mine/mineAgreementSignDetail/InnerPage.vue
@@ -62,7 +62,7 @@
</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>
@@ -91,6 +91,7 @@
//鐏靛伐Id
const id = router.params?.id;
const code = router.params?.code || options?.query?.scene;
+const btnLoading = ref(false);
const {
isLoading,
@@ -131,7 +132,7 @@
const goToSign = useAccessReal(async () => {
try {
- Taro.showLoading({ title: '姝e湪鍔犺浇涓�' });
+ btnLoading.value = true;
let params: API.PersonalUserElectronSignCommand = {
id: detail.value?.id,
returnUrl: `${RouterPath.mineAgreementSignDetail}?id=${id}`,
@@ -151,14 +152,10 @@
}
} else {
const encodedUrl = encodeURIComponent(res.signContractLongUrl);
- Taro.redirectTo({ url: `${RouterPath.extraPage}?url=${encodedUrl}` });
+ Taro.redirectTo({ url: `${RouterPath.extraPage}?url=${res.signContractLongUrl}` });
}
- } else {
- Taro.hideLoading();
}
- } catch (error) {
- Taro.hideLoading();
- }
+ } catch (error) {}
});
Taro.useDidShow(() => {
--
Gitblit v1.9.1