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: {