|
@@ -299,16 +299,16 @@ export default class Index extends Component {
|
299
|
299
|
const consultantId = personType == ROLE_CODE['CONSULTANT'] ? userId : ""
|
300
|
300
|
// 分享埋点
|
301
|
301
|
addItemShareNum(buildingId)
|
302
|
|
- savePoint({
|
303
|
|
- event: 'share',
|
304
|
|
- eventType: 'building',
|
305
|
|
- propertyName: '项目详情分享',
|
306
|
|
- consultantId: consultantId,
|
307
|
|
- sharePersonId: personId,
|
308
|
|
- data: '{}'
|
309
|
|
- }).then(res => {
|
310
|
|
- console.log('项目详情分享')
|
311
|
|
- })
|
|
302
|
+ savePoint({
|
|
303
|
+ event: 'share',
|
|
304
|
+ eventType: 'building',
|
|
305
|
+ propertyName: '项目详情分享',
|
|
306
|
+ consultantId: consultantId,
|
|
307
|
+ sharePersonId: personId,
|
|
308
|
+ data: '{}'
|
|
309
|
+ }).then(res => {
|
|
310
|
+ console.log('项目详情分享')
|
|
311
|
+ })
|
312
|
312
|
const consultant = personType == ROLE_CODE['CONSULTANT'] ? personId : ""
|
313
|
313
|
return {
|
314
|
314
|
title: shareContents[0].shareContentTitle,//分享内容
|
|
@@ -334,12 +334,14 @@ export default class Index extends Component {
|
334
|
334
|
return
|
335
|
335
|
}
|
336
|
336
|
const {
|
337
|
|
- userInfo: { person: { avatarurl, nickname, personId }, miniApp },
|
|
337
|
+ userInfo: { person: { avatarurl, nickname, personId, personType, phone, tel }, miniApp },
|
338
|
338
|
projectDetail: { posters, buildingId, poster, price, buildingRestaurant, createDate, buildingName, tel, buildingTag, uvList = {} }
|
339
|
339
|
} = this.props
|
340
|
340
|
const { total = 0 } = uvList
|
|
341
|
+ const consultant = personType == ROLE_CODE['CONSULTANT'] ? personId : ""
|
|
342
|
+ const phoneNum = phone || tel
|
341
|
343
|
const payload = {
|
342
|
|
- "scene": `id=${buildingId}&from=building_share&recommender=${personId}`,
|
|
344
|
+ "scene": `id=${buildingId}&from=building_share&recommender=${personId}&consultant=${consultant}&phoneNum=${phoneNum}`,
|
343
|
345
|
"page": 'pages/project/detail/index',
|
344
|
346
|
}
|
345
|
347
|
const _avatarurl = getDownloadURL(avatarurl, 'avatar');
|