diff --git a/pages/team/business-card.vue b/pages/team/business-card.vue index 59dcecc..458c40d 100644 --- a/pages/team/business-card.vue +++ b/pages/team/business-card.vue @@ -7,22 +7,22 @@ - + 全周期管理 - + 联系电话 - + 邮箱 - + 地址 @@ -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; }