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' - }) - } - }) -} -