|
@@ -26,14 +26,14 @@ import { Loading } from '@/components/Loading'
|
26
|
26
|
import * as houseActions from '@/actions/house'
|
27
|
27
|
|
28
|
28
|
@connect(s => s.user, { ...houseActions })
|
29
|
|
-@withDetail({
|
30
|
|
- track: {
|
31
|
|
- event: 'house_list',
|
32
|
|
- eventType: 'house',
|
33
|
|
- propertyName: '查看房源列表',
|
34
|
|
- data: '{}',
|
35
|
|
- }
|
36
|
|
-})
|
|
29
|
+// @withDetail({
|
|
30
|
+// track: {
|
|
31
|
+// event: 'house_list',
|
|
32
|
+// eventType: 'house',
|
|
33
|
+// propertyName: '查看房源列表',
|
|
34
|
+// data: '{}',
|
|
35
|
+// }
|
|
36
|
+// })
|
37
|
37
|
export default class HouseList extends Component {
|
38
|
38
|
config = {
|
39
|
39
|
navigationBarTitleText: '房源',
|
|
@@ -62,6 +62,7 @@ export default class HouseList extends Component {
|
62
|
62
|
noRecord: false,
|
63
|
63
|
loading: true,
|
64
|
64
|
dataType: 1,
|
|
65
|
+ recordId: undefined, // 埋点ID
|
65
|
66
|
}
|
66
|
67
|
|
67
|
68
|
|
|
@@ -75,6 +76,10 @@ export default class HouseList extends Component {
|
75
|
76
|
this.props.dispatchFlush2Cart([])
|
76
|
77
|
}
|
77
|
78
|
|
|
79
|
+ componentWillUnmount() {
|
|
80
|
+ const { recordId } = this.state
|
|
81
|
+ recordId && updatePoint(recordId)
|
|
82
|
+ }
|
78
|
83
|
|
79
|
84
|
componentWillReceiveProps() {
|
80
|
85
|
this.reportClientFn()
|
|
@@ -172,6 +177,8 @@ export default class HouseList extends Component {
|
172
|
177
|
this.reportClientFn()
|
173
|
178
|
let { qrcodeParams } = this.state
|
174
|
179
|
const consultant = this.$router.params.consultant || qrcodeParams.consultant
|
|
180
|
+ const consultantId = this.$router.params.consultantId || qrcodeParams.consultantId || ""
|
|
181
|
+ const recommender = this.$router.params.recommender || qrcodeParams.recommender || ""
|
175
|
182
|
|
176
|
183
|
if (consultant) {
|
177
|
184
|
getCardDetail(consultant).then(res => {
|
|
@@ -188,6 +195,22 @@ export default class HouseList extends Component {
|
188
|
195
|
salesBatchDetail: res || {},
|
189
|
196
|
noRecord: res.status == '1' ? false : true
|
190
|
197
|
})
|
|
198
|
+ savePoint({
|
|
199
|
+ event: 'house_list',
|
|
200
|
+ eventType: 'house',
|
|
201
|
+ propertyName: '查看房源列表',
|
|
202
|
+ targetId: res.salesBatchId || '',
|
|
203
|
+ buildingId: res.buildingId || '',
|
|
204
|
+ consultantId: consultantId,
|
|
205
|
+ sharePersonId: recommender,
|
|
206
|
+ data: '{}',
|
|
207
|
+
|
|
208
|
+ }).then(res => {
|
|
209
|
+ this.setState({
|
|
210
|
+ recordId: res.recordId
|
|
211
|
+ })
|
|
212
|
+ console.log('查看房源列表')
|
|
213
|
+ })
|
191
|
214
|
const { templates = [], posterImg = '' } = (res.posters || [])[0] || {}
|
192
|
215
|
|
193
|
216
|
this.setState({
|