1002884655 3 лет назад
Родитель
Сommit
ef4ca23b47
2 измененных файлов: 5 добавлений и 5 удалений
  1. 2
    2
      src/layout/index.js
  2. 3
    3
      src/pages/index/activityDetail/index.jsx

+ 2
- 2
src/layout/index.js Просмотреть файл

32
   const [shareTimelineVisible, setShareTimelineVisible] = useState(false)
32
   const [shareTimelineVisible, setShareTimelineVisible] = useState(false)
33
   const consultant = useSelector(s => s.system.consultant)
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
   const showConsultant = page.shortcut && page.shortcut.consultant
37
   const showConsultant = page.shortcut && page.shortcut.consultant
38
 
38
 
76
     const consultantId = person?.personType === ROLE_CODE.CONSULTANT ? person.personId : undefined
76
     const consultantId = person?.personType === ROLE_CODE.CONSULTANT ? person.personId : undefined
77
 
77
 
78
     setTrackData({
78
     setTrackData({
79
-      eventType: page.type,
79
+      eventType: type || page.type,
80
       propertyName: page.name,
80
       propertyName: page.name,
81
       consultantId,
81
       consultantId,
82
       sharePersonId: person?.personId,
82
       sharePersonId: person?.personId,

+ 3
- 3
src/pages/index/activityDetail/index.jsx Просмотреть файл

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