|
@@ -193,12 +193,11 @@ export default class Index extends Component {
|
193
|
193
|
projectDetail: { buildingId },
|
194
|
194
|
userInfo: { person: { personId, personType, userId } }
|
195
|
195
|
} = this.props
|
196
|
|
- const { sceneParams } = this.state
|
|
196
|
+ const sceneParams = this._$_scene || {}
|
197
|
197
|
const consultant1 = this.$router.params.consultant || sceneParams.consultant || Taro.getStorageSync('consultantId') || ''
|
198
|
198
|
const consultantId1 = this.$router.params.consultantId || sceneParams.consultantId || ''
|
199
|
199
|
const consultant = personType == ROLE_CODE['CONSULTANT'] ? personId : consultant1
|
200
|
200
|
const consultantId = personType == ROLE_CODE['CONSULTANT'] ? userId : consultantId1
|
201
|
|
-
|
202
|
201
|
const queryParams = [
|
203
|
202
|
`id=${buildingId}`,
|
204
|
203
|
'from=building_share',
|
|
@@ -218,7 +217,7 @@ export default class Index extends Component {
|
218
|
217
|
projectDetail: { shareContents, buildingName, buildingId, poster = '' },
|
219
|
218
|
userInfo: { person: { personId, personType, userId } }
|
220
|
219
|
} = this.props
|
221
|
|
- const { sceneParams } = this.state
|
|
220
|
+ const sceneParams = this._$_scene || {}
|
222
|
221
|
const consultantId1 = this.$router.params.consultantId || sceneParams.consultantId || ''
|
223
|
222
|
const consultantId = personType == ROLE_CODE['CONSULTANT'] ? userId : consultantId1
|
224
|
223
|
// 分享埋点
|
|
@@ -257,7 +256,7 @@ export default class Index extends Component {
|
257
|
256
|
addItemUv(id)
|
258
|
257
|
const { qrcodeParams } = this.state
|
259
|
258
|
// 埋点
|
260
|
|
- const consultant = Taro.getStorageSync('consultantId') || ''
|
|
259
|
+ const consultant = this.$router.params.consultant || sceneParams.consultant || Taro.getStorageSync('consultantId') || ''
|
261
|
260
|
// const consultant = this.$router.params.consultant || qrcodeParams.consultant
|
262
|
261
|
// const consultantId = this.$router.params.consultantId || qrcodeParams.consultantId || ""
|
263
|
262
|
// const recommender = this.$router.params.recommender || qrcodeParams.recommender || ""
|
|
@@ -351,6 +350,7 @@ export default class Index extends Component {
|
351
|
350
|
title: '正在加载数据',
|
352
|
351
|
icon: 'loading'
|
353
|
352
|
})
|
|
353
|
+ console.log('项目详情项目详情项目详情项目详情项目详情项目详情项目详情')
|
354
|
354
|
dispatchProjectDetail(buildingId, queryInfo, { header: { ['x-consultant']: consultant, ['x-recommender']: recommender } }).then(res => {
|
355
|
355
|
const connectId = (res.extendContent || [])[0] ? (res.extendContent || [])[0].contentId : null
|
356
|
356
|
const extendContentList = Taro.getStorageSync('extendContent') || []
|