|
@@ -16,6 +16,7 @@ import * as actions from '@/actions/project'
|
16
|
16
|
import { transferImage } from '@/utils/tools'
|
17
|
17
|
import Notice from '@/components/Notice'
|
18
|
18
|
import NavIcons from './NavIcons'
|
|
19
|
+import { share as shareSavePoint } from '@/utils/shareSavePoint'
|
19
|
20
|
|
20
|
21
|
@connect(
|
21
|
22
|
state => ({ ...state.project, ...state.city, ...state.user, system: state.system }),
|
|
@@ -219,17 +220,19 @@ export default class Index extends Component {
|
219
|
220
|
userInfo: { person: { personId } }
|
220
|
221
|
} = this.props
|
221
|
222
|
|
222
|
|
- savePoint({
|
|
223
|
+ shareSavePoint({
|
223
|
224
|
event: 'share',
|
224
|
225
|
eventType: 'main',
|
225
|
226
|
propertyName: '首页分享',
|
|
227
|
+ sharePersonId: personId,
|
|
228
|
+ targetId: 'index',
|
226
|
229
|
data: '{}'
|
227
|
|
- }).then(res => {
|
|
230
|
+ }, 'main').then(res => {
|
228
|
231
|
console.log('首页分享')
|
229
|
232
|
})
|
230
|
233
|
return {
|
231
|
234
|
title: this.state.imgDocument || ` 精准获客—上${this.props.userInfo.miniApp.name || '橙蕉'},买好房`,//分享内容
|
232
|
|
- path: `/pages/project/index?from=share&recommender=${personId}`,//分享地址
|
|
235
|
+ path: `/pages/project/index?from=share&recommender=${personId}&id=index`,//分享地址
|
233
|
236
|
imageUrl: this.state.shareImg || 'https://njcj.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1574145199853-97feda7895c65be33aa234a7b81b37f.jpg',
|
234
|
237
|
}
|
235
|
238
|
}
|
|
@@ -493,6 +496,7 @@ export default class Index extends Component {
|
493
|
496
|
newsShow: visiable
|
494
|
497
|
})
|
495
|
498
|
}
|
|
499
|
+
|
496
|
500
|
render() {
|
497
|
501
|
const { achieve, helpGroupList, propagandaBanner, newsShow, iconList } = this.state
|
498
|
502
|
const { curCity, unReadNum, userInfo: { person: { personType } } } = this.props
|