From ff90f4a3a1b34c266f5a83249a36ab7ca747253c Mon Sep 17 00:00:00 2001 From: xingyy <64720302+Concur-max@users.noreply.github.com> Date: Fri, 14 Mar 2025 10:07:39 +0800 Subject: [PATCH] 1231 --- app/pages/collectCode/signature/protocol/index.vue | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/pages/collectCode/signature/protocol/index.vue b/app/pages/collectCode/signature/protocol/index.vue index 857d6e2..653d781 100644 --- a/app/pages/collectCode/signature/protocol/index.vue +++ b/app/pages/collectCode/signature/protocol/index.vue @@ -4,14 +4,14 @@ import { contractView, signOffline } from "~/api/goods/index.js" import { codeAuthStore } from "~/stores-collect-code/auth/index.js" import { useI18n } from "vue-i18n" import { fddInfo } from "@/api-collect-code/goods/index.js" - +import { showLoadingToast } from 'vant'; definePageMeta({ i18n: 'signature.protocol.title' }) const { t } = useI18n() const { formData, number, qrData } = codeAuthStore() -const activeNames = ref([]) +const activeNames = ref('') const router = useRouter() const pmblUrl = ref('') @@ -74,6 +74,11 @@ const handleCollapseChange = (name) => { * - 其他用户: 走非大陆签署流程 */ const confirm = async () => { +const toast= showLoadingToast({ + message: '加载中...', + forbidClick: true, +}); + try { const fddResponse = await fddInfo({ phone: formData.value.phone }) @@ -100,6 +105,8 @@ const confirm = async () => { } } catch (error) { console.error('签署确认失败:', error) + }finally{ + toast1.close(); } }