Update business-card.vue
This commit is contained in:
parent
44212df74a
commit
75bad6d0de
@ -7,22 +7,22 @@
|
|||||||
<view class="service-section">
|
<view class="service-section">
|
||||||
<view class="service-grid">
|
<view class="service-grid">
|
||||||
<view class="service-item service-item-1" @click="showTeams()">
|
<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>
|
<image class="service-icon" src="/static/card/jzfwIcon.png" mode="aspectFit"></image>
|
||||||
<text class="service-text">全周期管理</text>
|
<text class="service-text">全周期管理</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="service-item service-item-3" @click="displayPhone()">
|
<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>
|
<image class="service-icon" src="/static/card/telephone.svg" mode="aspectFit"></image>
|
||||||
<text class="service-text">联系电话</text>
|
<text class="service-text">联系电话</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="service-item service-item-4" @click="openEmailModal">
|
<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>
|
<image class="service-icon" src="/static/card/email.svg" mode="aspectFit"></image>
|
||||||
<text class="service-text">邮箱</text>
|
<text class="service-text">邮箱</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="service-item service-item-2" @click="openAddressModal">
|
<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>
|
<image class="service-icon" src="/static/card/gwIcon.png" mode="aspectFit"></image>
|
||||||
<text class="service-text">地址</text>
|
<text class="service-text">地址</text>
|
||||||
</view>
|
</view>
|
||||||
@ -343,8 +343,23 @@ async function getVisitorAccount() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
useLoad((opt) => {
|
useLoad((opt) => {
|
||||||
corpId.value = opt.corpId
|
if (opt.q) {
|
||||||
userid.value = opt.userid
|
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(() => {
|
useShow(() => {
|
||||||
@ -1130,9 +1145,11 @@ const updateCardCache = async (cardId) => {
|
|||||||
.service-item-bg {
|
.service-item-bg {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
bottom: 0;
|
||||||
width: 100%;
|
left: -10px;
|
||||||
height: 100%;
|
right: -10px;
|
||||||
|
width: auto;
|
||||||
|
height: auto;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user