From 7f47745b0e81663b2c4f4d9f08a545223f250c6c Mon Sep 17 00:00:00 2001 From: huxuejian Date: Wed, 24 Jun 2026 10:59:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=90=8D=E7=89=87=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hooks/useGuard.js | 4 +- pages/team/business-card.vue | 124 +++++++++++++++----------- pages/team/components/teams-popup.vue | 72 +++++++++++++++ utils/api.js | 3 +- 4 files changed, 147 insertions(+), 56 deletions(-) create mode 100644 pages/team/components/teams-popup.vue diff --git a/hooks/useGuard.js b/hooks/useGuard.js index 7d0f41b..827d882 100644 --- a/hooks/useGuard.js +++ b/hooks/useGuard.js @@ -34,7 +34,9 @@ export default function useGuard() { async function useLoad(fn) { await promise; - fn(options.value); + if (typeof fn === 'function') { + fn(options.value); + } } async function triggleShowEvents() { diff --git a/pages/team/business-card.vue b/pages/team/business-card.vue index 689552f..49ea39d 100644 --- a/pages/team/business-card.vue +++ b/pages/team/business-card.vue @@ -6,26 +6,26 @@ - + 全周期管理 - - - - 门诊预约 - - + 联系电话 - + 邮箱 + + + + 地址 + @@ -132,10 +132,14 @@ - - {{ businessCard.externalContact }} - 📞 + + {{ businessCard.externalContact }} + + + 复制 + + 拨打 + 暂无电话信息 @@ -155,11 +159,14 @@ - - {{ accountInfo.email }} - ✉️ + + {{ businessCard.externalEmail }} + + 复制 + - + 暂无邮箱信息 ✉️ @@ -177,11 +184,14 @@ - - {{ accountInfo.address }} - 📍 + + {{ businessCard.externalAddress }} + + 复制 + - + 暂无地址信息 📍 @@ -225,29 +235,68 @@ - + + + \ No newline at end of file diff --git a/utils/api.js b/utils/api.js index 569fc3a..19cc641 100644 --- a/utils/api.js +++ b/utils/api.js @@ -16,7 +16,8 @@ const urlsConfig = { getMiniAppHomeStats: "getMiniAppHomeStats", getResponsiblePerson: 'getTeamResponsiblePerson', relateWxappTeamByExternalUserId: 'relateWxappTeamByExternalUserId', - getBusinessCard: 'getBusinessCard' + getBusinessCard: 'getBusinessCard', + getJoinedTeams: 'getJoinedTeams', }, knowledgeBase: {