Browse Source

信息修改

1002884655 3 years ago
parent
commit
ef4ca23b47
2 changed files with 5 additions and 5 deletions
  1. 2
    2
      src/layout/index.js
  2. 3
    3
      src/pages/index/activityDetail/index.jsx

+ 2
- 2
src/layout/index.js View File

@@ -32,7 +32,7 @@ export default (ChildComponent) => (props) => {
32 32
   const [shareTimelineVisible, setShareTimelineVisible] = useState(false)
33 33
   const consultant = useSelector(s => s.system.consultant)
34 34
 
35
-  const { id, scene, qrInited } = router.params
35
+  const { id, scene, qrInited, type } = router.params
36 36
 
37 37
   const showConsultant = page.shortcut && page.shortcut.consultant
38 38
 
@@ -76,7 +76,7 @@ export default (ChildComponent) => (props) => {
76 76
     const consultantId = person?.personType === ROLE_CODE.CONSULTANT ? person.personId : undefined
77 77
 
78 78
     setTrackData({
79
-      eventType: page.type,
79
+      eventType: type || page.type,
80 80
       propertyName: page.name,
81 81
       consultantId,
82 82
       sharePersonId: person?.personId,

+ 3
- 3
src/pages/index/activityDetail/index.jsx View File

@@ -63,8 +63,8 @@ export default withLayout((props) => {
63 63
       savePoint({
64 64
         ...trackData,
65 65
         event: 'detail',
66
-        eventType,
67
-        targetType: eventType
66
+        eventType: detail.type || eventType,
67
+        targetType: detail.type || eventType
68 68
       })
69 69
     }
70 70
   }, [trackData, detail])
@@ -88,7 +88,7 @@ export default withLayout((props) => {
88 88
   useShare(
89 89
     {
90 90
       title: shareContent.shareContentTitle || detail?.title,
91
-      path: `${router.path}?${paramsRef.current}`,
91
+      path: `${router.path}?${paramsRef.current}&type=${detail.type || 'dymic'}`,
92 92
       // image: shareContent.shareContentImg || getImgURL(detail?.imgUrl),
93 93
       image: '',
94 94
     },