Commit 7dd1a2fd by chenwq

员工

1 parent 15e6feb9
<template>
<div id="staff" class="staff">
<img class="icon-head" :src="detail.activityBigImg" />
<div class="name">余皖平</div>
<img class="icon-head" :src="shareInfo.shareImageUrl || require('@/assets/images/default-head.png')" />
<div class="name text-hide">{{ shareInfo.shareName || ''}}</div>
邀请您参加本次团购
</div>
</template>
......@@ -17,7 +17,7 @@ export default {
},
props: {
detail: {
shareInfo: {
type: Object,
default: () => { }
},
......@@ -50,8 +50,9 @@ export default {
z-index: 2;
display: flex;
box-sizing: border-box;
max-width: 80%;
height: 48px;
line-height: 24px;
line-height: 28px;
opacity: 0.9;
background: #ffffff;
box-shadow: 0 4px 12px 0 rgba(159, 166, 209, 0.25);
......@@ -66,6 +67,7 @@ export default {
border-radius: 50%;
}
.name {
max-width: 120px;
margin: 0 4px;
font-size: 16px;
font-weight: 600;
......
......@@ -39,9 +39,9 @@
<page-btns :detail="detail" />
</template>
<!-- 👇 员工浮窗 -->
<div class="staff">
<div class="staff" v-if="shareInfo.shareName">
<staff
:detail="detail"
:shareInfo="shareInfo"
:scrollY="scrollY"
></staff>
</div>
......@@ -285,6 +285,7 @@ export default {
return {
id: null,
detail: {},
shareInfo: {},
groupInfo: {},
currentVideoIndex: 0,
musicOff: true,
......@@ -643,13 +644,12 @@ export default {
//获取分享人信息
async getStaffInfo (params) {
if (params.exclusiveUuid || params.shareStaffUuid || params.openId) {
const res = await shopmallApi.getStaffInfo({
this.shareInfo = await shopmallApi.getStaffInfo({
merchantId: params.merchantId,
exclusiveUuid: params.exclusiveUuid,
shareStaffUuid: params.shareStaffUuid,
shareOpenId: params.openId
})
console.log(res)
}) || {}
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!