From 9315d0c3716355ea9dbb60d270b6afd4c4411c33 Mon Sep 17 00:00:00 2001 From: xuchao <1151716571@qq.com> Date: Mon, 12 Jan 2026 17:32:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=A5=E5=90=8D=E6=8B=9B=E8=81=98=E4=BC=9A?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0loading=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packageA/pages/exhibitors/exhibitors.vue | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/packageA/pages/exhibitors/exhibitors.vue b/packageA/pages/exhibitors/exhibitors.vue index 792ff23..a15aa2d 100644 --- a/packageA/pages/exhibitors/exhibitors.vue +++ b/packageA/pages/exhibitors/exhibitors.vue @@ -105,9 +105,9 @@ @@ -161,6 +161,8 @@ // person个人 ent企业 const signRole = ref('ent'); const CompanySignPopup = ref(null) + // 报名loading状态 + const isLoading = ref(false) const jobFairId = ref(null) @@ -253,6 +255,7 @@ // 报名招聘会 function applyExhibitors() { + if (isLoading.value) return if (fairInfo.value.isSignUp == 1) { $api.msg('请勿重复报名'); return @@ -262,6 +265,7 @@ const headers = token ? { Authorization: raw.startsWith("Bearer ") ? raw : `Bearer ${token}` } : {}; + isLoading.value = true $api.myRequest("/dashboard/auth/heart", {}, "POST", 10100, headers).then((resData) => { if (resData.code == 200) { @@ -271,6 +275,7 @@ signRole.value = userInfo.userType; signDialogisshow.value = true CompanySignPopup.value.open() + isLoading.value = false }else{ $api.myRequest("/jobfair/public/job-fair-sign-up-person/sign-up", { personId: userInfo.value.info.userId, @@ -289,6 +294,7 @@ icon: 'none' }); } + isLoading.value = false }) } @@ -299,7 +305,10 @@ // url: '/packageB/login' // }) // }, 1000) + isLoading.value = false } + }).catch(() => { + isLoading.value = false }); }