|
@@ -87,9 +87,29 @@ export default class Detail extends Component {
|
87
|
87
|
const consultant = this.$router.params.consultant || router.query.consultant
|
88
|
88
|
const consultantId = this.$router.params.consultantId || router.query.consultantId || ""
|
89
|
89
|
const recommender = this.$router.params.recommender || router.query.recommender || ""
|
|
90
|
+
|
90
|
91
|
queryActivityDetail(id).then(res => {
|
91
|
92
|
Taro.hideLoading()
|
92
|
93
|
const { isSaved, isSign } = res
|
|
94
|
+
|
|
95
|
+ savePoint({
|
|
96
|
+ event: 'detail',
|
|
97
|
+ eventType: 'activity',
|
|
98
|
+ propertyName: '活动详情',
|
|
99
|
+ buildingId: res.buildingId,
|
|
100
|
+ targetId: res.dynamicId,
|
|
101
|
+ consultantId: consultantId,
|
|
102
|
+ sharePersonId: recommender,
|
|
103
|
+ data: '{}'
|
|
104
|
+ }).then(res1 => {
|
|
105
|
+ this.setState({
|
|
106
|
+ recordId: res1.recordId
|
|
107
|
+ })
|
|
108
|
+ console.log('活动详情')
|
|
109
|
+ }).catch(err => {
|
|
110
|
+ console.log(err, "err")
|
|
111
|
+ })
|
|
112
|
+
|
93
|
113
|
this.setState({
|
94
|
114
|
detail: res,
|
95
|
115
|
isSaved,
|
|
@@ -107,21 +127,7 @@ export default class Detail extends Component {
|
107
|
127
|
})
|
108
|
128
|
WxParse.wxParse('article', 'html', res.desc, this.$scope, 0)
|
109
|
129
|
|
110
|
|
- savePoint({
|
111
|
|
- event: 'detail',
|
112
|
|
- eventType: 'activity',
|
113
|
|
- propertyName: '活动详情',
|
114
|
|
- buildingId: res.buildingId,
|
115
|
|
- targetId: res.dynamicId,
|
116
|
|
- consultantId: consultantId,
|
117
|
|
- sharePersonId: recommender,
|
118
|
|
- data: '{}'
|
119
|
|
- }).then(res1 => {
|
120
|
|
- this.setState({
|
121
|
|
- recordId: res1.recordId
|
122
|
|
- })
|
123
|
|
- console.log('活动详情')
|
124
|
|
- })
|
|
130
|
+
|
125
|
131
|
})
|
126
|
132
|
|
127
|
133
|
if (consultant) {
|
|
@@ -177,6 +183,7 @@ export default class Detail extends Component {
|
177
|
183
|
})
|
178
|
184
|
const consultant = personType == ROLE_CODE['CONSULTANT'] ? personId : ""
|
179
|
185
|
const shareData = shareContents && shareContents.length ? shareContents[0] : { shareContentTitle: title, shareContentImg: imgUrl };
|
|
186
|
+ console.log(`/pages/activity/detail/index?id=${dynamicId}&from=dynamic_share&recommender=${personId}&consultant=${consultant}&consultantId=${consultantId}`)
|
180
|
187
|
return {
|
181
|
188
|
title: shareData.shareContentTitle,
|
182
|
189
|
path: `/pages/activity/detail/index?id=${dynamicId}&from=dynamic_share&recommender=${personId}&consultant=${consultant}&consultantId=${consultantId}`,//分享地址
|