From c0a108ec237be78c27cb17059320782a2f37e216 Mon Sep 17 00:00:00 2001 From: huxuejian Date: Mon, 29 Jun 2026 13:51:48 +0800 Subject: [PATCH] Update business-card.vue --- pages/team/business-card.vue | 62 ++++++------------------------------ 1 file changed, 10 insertions(+), 52 deletions(-) diff --git a/pages/team/business-card.vue b/pages/team/business-card.vue index 604be76..14a1376 100644 --- a/pages/team/business-card.vue +++ b/pages/team/business-card.vue @@ -113,7 +113,8 @@ {{ businessCard.externalContact }} - + 复制 拨打 @@ -137,10 +138,9 @@ - + {{ businessCard.externalEmail }} - + 复制 @@ -152,32 +152,6 @@ - - - - - - × - 地址 - - - - - {{ businessCard.externalAddress }} - - 复制 - - - - 暂无地址信息 - 📍 - - - - - - @@ -234,7 +208,12 @@ function makePhoneCall(phone) { }) } -function setClipboardData(data) { +function setClipboardData(data, type) { + if (type === 'mobile') { + showPhoneModal.value = false + } else if (type === 'email') { + showEmailModal.value = false + } uni.setClipboardData({ data: data, success: () => { @@ -392,27 +371,6 @@ const closeAddressModal = () => { showAddressModal.value = false } - -// 复制邮箱地址 -const copyEmail = (email) => { - closeEmailModal() - uni.setClipboardData({ - data: email, - success: () => { - uni.showToast({ - title: '邮箱已复制', - icon: 'none' - }) - }, - fail: () => { - uni.showToast({ - title: '复制失败', - icon: 'none' - }) - } - }) -} -