Update business-card.vue

This commit is contained in:
huxuejian 2026-06-26 09:48:52 +08:00
parent 44212df74a
commit 75bad6d0de

View File

@ -7,22 +7,22 @@
<view class="service-section">
<view class="service-grid">
<view class="service-item service-item-1" @click="showTeams()">
<image class="service-item-bg" src="/static/card/jzfwBack.png" mode="aspectFit"></image>
<image class="service-item-bg" src="/static/card/jzfwBack.png" mode="scaleToFill"></image>
<image class="service-icon" src="/static/card/jzfwIcon.png" mode="aspectFit"></image>
<text class="service-text">全周期管理</text>
</view>
<view class="service-item service-item-3" @click="displayPhone()">
<image class="service-item-bg" src="/static/card/gzhBack.png" mode="aspectFit"></image>
<image class="service-item-bg" src="/static/card/gzhBack.png" mode="scaleToFill"></image>
<image class="service-icon" src="/static/card/telephone.svg" mode="aspectFit"></image>
<text class="service-text">联系电话</text>
</view>
<view class="service-item service-item-4" @click="openEmailModal">
<image class="service-item-bg" src="/static/card/sphBack.png" mode="aspectFit"></image>
<image class="service-item-bg" src="/static/card/sphBack.png" mode="scaleToFill"></image>
<image class="service-icon" src="/static/card/email.svg" mode="aspectFit"></image>
<text class="service-text">邮箱</text>
</view>
<view class="service-item service-item-2" @click="openAddressModal">
<image class="service-item-bg" src="/static/card/gwBack.png" mode="aspectFit"></image>
<image class="service-item-bg" src="/static/card/gwBack.png" mode="scaleToFill"></image>
<image class="service-icon" src="/static/card/gwIcon.png" mode="aspectFit"></image>
<text class="service-text">地址</text>
</view>
@ -343,8 +343,23 @@ async function getVisitorAccount() {
}
useLoad((opt) => {
corpId.value = opt.corpId
userid.value = opt.userid
if (opt.q) {
const href = typeof opt.q === "string" ? decodeURIComponent(opt.q.trim()) : "";
const [, url = ""] = href.split("?");
const data = url.split("&").reduce((acc, cur) => {
if (!cur) return acc;
const [key, value] = cur.split("=");
if (!key) return acc;
acc[key] = value || ''
return acc;
}, {});
console.log(data)
corpId.value = data.corpId || ''
userid.value = data.userid || ''
} else {
corpId.value = opt.corpId
userid.value = opt.userid
}
})
useShow(() => {
@ -1130,9 +1145,11 @@ const updateCardCache = async (cardId) => {
.service-item-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
bottom: 0;
left: -10px;
right: -10px;
width: auto;
height: auto;
z-index: 0;
}