Commit 7dd1a2fd by chenwq

员工

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