瀏覽代碼

buildingId

xujing 5 年之前
父節點
當前提交
df711046bc

+ 5
- 3
src/pages/activity/detail/assemble.js 查看文件

@@ -114,7 +114,7 @@ export default class Detail extends Component {
114 114
 
115 115
       if (this.$router.params.scene) {
116 116
         getQrCodeParams(this.$router.params.scene).then(res => {
117
-          console.log(res,"扫码参数")
117
+          console.log(res, "扫码参数")
118 118
           this.setState({ id: res.id, recordId: res.recordId, qrcodeParams: res }, () => {
119 119
             this.loadDetail()
120 120
           })
@@ -207,7 +207,7 @@ export default class Detail extends Component {
207 207
       posterVisible: !posterVisible,
208 208
       actionSheetVisible: showActionSheet,
209 209
     })
210
-    const { detail: { groupActivityId } } = this.state
210
+    const { detail: { groupActivityId, buildingId } } = this.state
211 211
 
212 212
 
213 213
     shareSavePoint({
@@ -216,6 +216,7 @@ export default class Detail extends Component {
216 216
       targetType: 'group',
217 217
       propertyName: '生成拼团活动详情海报',
218 218
       targetId: groupActivityId,
219
+      buildingId: buildingId || '',
219 220
       data: '{}'
220 221
     }, 'group')
221 222
     // savePoint({
@@ -386,7 +387,7 @@ export default class Detail extends Component {
386 387
   }
387 388
 
388 389
   onShareAppMessage = (res) => {
389
-    const { shares, detail: { groupActivityId, activityName, mainImg } } = this.state
390
+    const { shares, detail: { groupActivityId, activityName, mainImg, buildingId } } = this.state
390 391
     const currentPage = `/${this.currentPageAndParams(res.from).join('?')}`
391 392
     const { userInfo: { person: { personId, personType, userId } } } = this.props
392 393
     const consultantId = personType == ROLE_CODE['CONSULTANT'] ? userId : ""
@@ -399,6 +400,7 @@ export default class Detail extends Component {
399 400
       consultantId: consultantId,
400 401
       sharePersonId: personId,
401 402
       targetId: groupActivityId,
403
+      buildingId: buildingId || '',
402 404
       data: '{}'
403 405
     }, 'group')
404 406
 

+ 6
- 4
src/pages/activity/detail/assistance.js 查看文件

@@ -117,7 +117,7 @@ export default class Detail extends Component {
117 117
 
118 118
       if (this.$router.params.scene) {
119 119
         getQrCodeParams(this.$router.params.scene).then(res => {
120
-          console.log(res,"扫码参数")
120
+          console.log(res, "扫码参数")
121 121
           this.setState({ id: res.id, initiateId: res.initiateId, qrcodeParams: res, }, () => {
122 122
             this.loadDetail()
123 123
           })
@@ -210,7 +210,7 @@ export default class Detail extends Component {
210 210
       posterVisible: !posterVisible,
211 211
       actionSheetVisible: showActionSheet,
212 212
     })
213
-    const { id } = this.state
213
+    const { id, detail: { buildingId } } = this.state
214 214
 
215 215
     shareSavePoint({
216 216
       event: 'poster',
@@ -218,6 +218,7 @@ export default class Detail extends Component {
218 218
       targetType: 'help',
219 219
       propertyName: '生成助力活动详情海报',
220 220
       targetId: id,
221
+      buildingId: buildingId || '',
221 222
       data: '{}'
222 223
     }, 'help')
223 224
     // savePoint({
@@ -327,7 +328,7 @@ export default class Detail extends Component {
327 328
         eventType: 'activity',
328 329
         targetType: 'help',
329 330
         propertyName: '助力详情',
330
-        buildingId: res.helpActivity.buildingId,
331
+        buildingId: res.helpActivity.buildingId || '',
331 332
         consultantId: consultantId,
332 333
         sharePersonId: recommender,
333 334
         targetId: id,
@@ -392,7 +393,7 @@ export default class Detail extends Component {
392 393
 
393 394
   onShareAppMessage = (res) => {
394 395
 
395
-    const { shares, id, detail: { title, img } } = this.state
396
+    const { shares, id, detail: { title, img, buildingId } } = this.state
396 397
     const currentPage = `/${this.currentPageAndParams(res.from).join('?')}`
397 398
     const { userInfo: { person: { personId, personType, userId } } } = this.props
398 399
     const consultantId = personType == ROLE_CODE['CONSULTANT'] ? userId : ""
@@ -404,6 +405,7 @@ export default class Detail extends Component {
404 405
       consultantId: consultantId,
405 406
       sharePersonId: personId,
406 407
       targetId: id,
408
+      buildingId: buildingId || '',
407 409
       data: '{}'
408 410
     }, 'help')
409 411
 

+ 6
- 4
src/pages/activity/detail/index.js 查看文件

@@ -68,7 +68,7 @@ export default class Detail extends Component {
68 68
       const id = this.$router.params.id
69 69
       if (this.$router.params.scene) {
70 70
         getQrCodeParams(this.$router.params.scene).then(res => {
71
-          console.log(res,"扫码参数")
71
+          console.log(res, "扫码参数")
72 72
           this.setState({ id: res.id, qrcodeParams: res }, () => {
73 73
             this.loadDetail()
74 74
           })
@@ -112,7 +112,7 @@ export default class Detail extends Component {
112 112
         eventType: 'activity',
113 113
         targetType: 'dynamic',
114 114
         propertyName: '活动详情',
115
-        buildingId: res.buildingId,
115
+        buildingId: res.buildingId || '',
116 116
         targetId: res.dynamicId,
117 117
         consultantId: consultantId,
118 118
         sharePersonId: recommender,
@@ -169,7 +169,7 @@ export default class Detail extends Component {
169 169
     }
170 170
   }
171 171
   onShareAppMessage = () => {
172
-    const { detail: { shareContents, title, dynamicId, imgUrl } } = this.state
172
+    const { detail: { shareContents, title, dynamicId, imgUrl, buildingId } } = this.state
173 173
     const { userInfo: { person: { personId, personType, userId } } } = this.props
174 174
     console.log(dynamicId, "path")
175 175
     console.log(personId, "personId")
@@ -183,6 +183,7 @@ export default class Detail extends Component {
183 183
       consultantId: consultantId,
184 184
       sharePersonId: personId,
185 185
       targetId: dynamicId,
186
+      buildingId: buildingId || '',
186 187
       data: '{}'
187 188
     }, 'activity')
188 189
 
@@ -334,13 +335,14 @@ export default class Detail extends Component {
334 335
         posterVisible: !!flag
335 336
       })
336 337
     }
337
-    const { detail: { dynamicId } } = this.state
338
+    const { detail: { dynamicId, buildingId } } = this.state
338 339
     shareSavePoint({
339 340
       event: 'poster',
340 341
       eventType: 'activity',
341 342
       targetType: 'dynamic',
342 343
       propertyName: '生成活动详情海报',
343 344
       targetId: dynamicId,
345
+      buildingId: buildingId || '',
344 346
       data: '{}'
345 347
     }, 'activity')
346 348
 

+ 5
- 3
src/pages/news/detail/index.js 查看文件

@@ -197,7 +197,7 @@ export default class NewsDetail extends Component {
197 197
   }
198 198
 
199 199
   onShareAppMessage = () => {
200
-    const { detail: { shareContents, newsName, newsId, newsImg } } = this.state
200
+    const { detail: { shareContents, newsName, newsId, newsImg, buildingId } } = this.state
201 201
     const { userInfo: { person: { personId, personType, userId } } } = this.props
202 202
     const consultantId = personType == ROLE_CODE['CONSULTANT'] ? userId : ""
203 203
     const consultant = personType == ROLE_CODE['CONSULTANT'] ? personId : ""
@@ -211,6 +211,7 @@ export default class NewsDetail extends Component {
211 211
       consultantId: consultantId,
212 212
       sharePersonId: personId,
213 213
       targetId: newsId,
214
+      buildingId: buildingId || '',
214 215
       data: '{}'
215 216
     }, 'news')
216 217
 
@@ -252,7 +253,7 @@ export default class NewsDetail extends Component {
252 253
         event: 'detail',
253 254
         eventType: 'news',
254 255
         propertyName: '资讯详情',
255
-        buildingId: res.buildingId,
256
+        buildingId: res.buildingId || '',
256 257
         targetId: res.newsId,
257 258
         consultantId: consultantId,
258 259
         sharePersonId: recommender,
@@ -343,12 +344,13 @@ export default class NewsDetail extends Component {
343 344
         posterVisible: !!flag
344 345
       })
345 346
     }
346
-    const { newsId } = this.state
347
+    const { newsId, detail: { buildingId } } = this.state
347 348
     shareSavePoint({
348 349
       event: 'poster',
349 350
       eventType: 'news',
350 351
       propertyName: '生成资讯详情海报',
351 352
       targetId: newsId,
353
+      buildingId: buildingId || '',
352 354
       data: '{}'
353 355
     }, 'news')
354 356
 

+ 3
- 1
src/pages/project/detail/index.js 查看文件

@@ -181,6 +181,7 @@ export default class Index extends Component {
181 181
       consultantId: consultantId,
182 182
       sharePersonId: personId,
183 183
       targetId: buildingId,
184
+      buildingId: buildingId || '',
184 185
       data: '{}'
185 186
     }, 'project')
186 187
 
@@ -503,7 +504,8 @@ export default class Index extends Component {
503 504
       eventType: 'building',
504 505
       propertyName: '生成项目详情海报',
505 506
       data: '{}',
506
-      targetId: buildingId
507
+      targetId: buildingId,
508
+      buildingId: buildingId || '',
507 509
     }, 'project')
508 510
 
509 511
     // addItemShareNum(buildingId)

+ 2
- 2
src/pages/project/h5Page.js 查看文件

@@ -142,7 +142,7 @@ export default class Index extends Component {
142 142
       event: 'detail',
143 143
       eventType: 'h5',
144 144
       propertyName: 'h5详情',
145
-      buildingId: buildingId,
145
+      buildingId: buildingId || '',
146 146
       consultantId: consultant,
147 147
       sharePersonId: sharePersonId,
148 148
       targetId: h5Id,
@@ -171,7 +171,7 @@ export default class Index extends Component {
171 171
       consultantId: consultantId,
172 172
       sharePersonId: personId,
173 173
       targetId: h5Id,
174
-      buildingId: buildingId,
174
+      buildingId: buildingId || '',
175 175
       data: '{}'
176 176
     }, 'h5')
177 177
     // savePoint({