xujing 5 년 전
부모
커밋
a1a53f39f4
2개의 변경된 파일11개의 추가작업 그리고 3개의 파일을 삭제
  1. 7
    2
      src/onlineSelling/pages/houseList/index.js
  2. 4
    1
      src/onlineSelling/pages/live/index.js

+ 7
- 2
src/onlineSelling/pages/houseList/index.js 파일 보기

@@ -297,6 +297,7 @@ export default class HouseList extends Component {
297 297
     const consultantId = personType == ROLE_CODE['CONSULTANT'] ? userId : ""
298 298
     const { salesBatchDetail: { shareContents } } = this.state
299 299
     const shareData = shareContents && shareContents.length ? shareContents[0] : { shareContentTitle: '房源列表', shareContentImg: null };
300
+    const buildingId = this.$router.params.buildingId || this.state.buildingId || ''
300 301
     // 分享埋点
301 302
     shareSavePoint({
302 303
       event: 'share',
@@ -305,6 +306,7 @@ export default class HouseList extends Component {
305 306
       consultantId: consultantId,
306 307
       sharePersonId: personId,
307 308
       targetId: id,
309
+      buildingId: buildingId,
308 310
       data: '{}'
309 311
     }, 'houseApp')
310 312
 
@@ -328,11 +330,13 @@ export default class HouseList extends Component {
328 330
           showShareMenu: false
329 331
         })
330 332
         const id = this.$router.params.id || this.state.id
333
+        const buildingId = this.$router.params.buildingId || this.state.buildingId || ''
331 334
         shareSavePoint({
332 335
           event: 'poster',
333 336
           eventType: 'house',
334 337
           propertyName: '生成房源列表海报',
335 338
           targetId: id,
339
+          buildingId: buildingId,
336 340
           data: '{}'
337 341
         }, 'housePoster')
338 342
       })
@@ -613,9 +617,10 @@ export default class HouseList extends Component {
613 617
       noRecord,
614 618
       loading,
615 619
       salesBatchDetail,
620
+      buildingId,
616 621
       dataType
617 622
     } = this.state
618
-    const buildingId = this.$router.params.buildingId || this.state.buildingId
623
+    const buildingIdProps = this.$router.params.buildingId || buildingId
619 624
 
620 625
     if (loading) {
621 626
       return <View style="margin: 80px auto;"><Loading color="#BB9C79" size={100} /></View>
@@ -632,7 +637,7 @@ export default class HouseList extends Component {
632 637
       <Block>
633 638
         {conditionVisible && this.renderCondition()}
634 639
         {/* 授权电话与头像 */}
635
-        <GrantProfile both person={person} buildingId={buildingId || ''} />
640
+        <GrantProfile both person={person} buildingId={buildingIdProps || ''} />
636 641
         {/* 置业顾问悬框 */}
637 642
         {
638 643
           consultShow && <Consultant style="bottom:150rpx" smallStyle="bottom:178rpx" personId={person.personId} name={person.name || person.nickname} data={consultData}></Consultant>

+ 4
- 1
src/onlineSelling/pages/live/index.js 파일 보기

@@ -198,7 +198,7 @@ export default class livePage extends Component {
198 198
     const id = this.$router.params.id || this.state.liveDetail.liveActivityId
199 199
     const { userInfo: { person: { personId, personType, userId } } } = this.props
200 200
     const consultantId = personType == ROLE_CODE['CONSULTANT'] ? userId : ""
201
-    const { liveDetail: { shareContents } } = this.state
201
+    const { liveDetail: { shareContents, buildingId } } = this.state
202 202
     const shareData = shareContents && shareContents.length ? shareContents[0] : { shareContentTitle: '精彩直播', shareContentImg: null };
203 203
     // 分享埋点
204 204
 
@@ -209,6 +209,7 @@ export default class livePage extends Component {
209 209
       propertyName: '直播详情页分享',
210 210
       consultantId: consultantId,
211 211
       sharePersonId: personId,
212
+      buildingId: buildingId || '',
212 213
       targetId: id,
213 214
       data: '{}',
214 215
     }, 'liveApp')
@@ -233,12 +234,14 @@ export default class livePage extends Component {
233 234
           showShareMenu: false
234 235
         })
235 236
         const id = this.$router.params.id || this.state.liveDetail.liveActivityId
237
+        const { liveDetail: { buildingId } } = this.state
236 238
         shareSavePoint({
237 239
           event: 'poster',
238 240
           eventType: 'activity',
239 241
           targetType: 'live',
240 242
           propertyName: '生成直播详情海报',
241 243
           targetId: id,
244
+          buildingId: buildingId || '',
242 245
           data: '{}'
243 246
         }, 'livePoster')
244 247
       })