xujing 5 лет назад
Родитель
Сommit
218d72ec56
2 измененных файлов: 18 добавлений и 1 удалений
  1. 1
    1
      src/pages/activity/detail/index.js
  2. 17
    0
      src/pages/project/h5Page.js

+ 1
- 1
src/pages/activity/detail/index.js Просмотреть файл

@@ -393,7 +393,7 @@ export default class Detail extends Component {
393 393
               </View>
394 394
               <ScrollView
395 395
                 scrollY
396
-                className="detail-wrap" style="margin-top:-40rpx">
396
+                className="detail-wrap" >
397 397
                 <View className="detail bottom-box">
398 398
                   {detail.isEnlist == 0 &&
399 399
                     <View className="detail-sign__num">不需要报名</View>

+ 17
- 0
src/pages/project/h5Page.js Просмотреть файл

@@ -68,7 +68,24 @@ export default class Index extends Component {
68 68
   onShareAppMessage = () => {
69 69
     const { pageInfo } = this.state
70 70
     const currentPage = `/${this.currentPageAndParams().join('?')}`
71
+
72
+
73
+    const { userInfo: { person: { personId, personType, userId } } } = this.props
74
+
75
+    const consultantId = personType == ROLE_CODE['CONSULTANT'] ? userId : ""
76
+    const { h5Id } = this.state
71 77
     console.log(currentPage)
78
+    savePoint({
79
+      event: 'share',
80
+      eventType: 'h5',
81
+      propertyName: 'h5详情分享',
82
+      consultantId: consultantId,
83
+      sharePersonId: personId,
84
+      targetId: h5Id,
85
+      data: '{}'
86
+    }).then(res => {
87
+      console.info('h5详情分享')
88
+    })
72 89
     return {
73 90
       title: pageInfo.shareTitle,
74 91
       path: currentPage,