|
@@ -5,8 +5,8 @@ import {
|
|
|
View, Image, Button
|
|
|
} from '@tarojs/components'
|
|
|
import Route from '@/class/Route'
|
|
|
-import { DETAIL_PAGESOURCE, CATEGORY_PAGESOURCE, VIEW_AUTO_TYPE } from '@/const'
|
|
|
-import { videoViewReport, videoPlayReport, videoActionReport, shareContactReport,shareReport, weixinFriend } from '@/logger'
|
|
|
+import { CATEGORY_PAGESOURCE, VIEW_AUTO_TYPE, USER_SHARE_PAGESOURCE } from '@/const'
|
|
|
+import { videoViewReport, videoPlayReport, videoActionReport, shareContactReport, shareReport, weixinFriend } from '@/logger'
|
|
|
import { once, formatSecondsAsTime } from '@/utils'
|
|
|
import { VideoInfo, PlayState } from '@/constants/commentTypes'
|
|
|
import { shareTimeline } from '@/shareHelper'
|
|
@@ -562,7 +562,7 @@ function logReportVideoView(video, current, index) {
|
|
|
flowPool: video.flowPool || '',
|
|
|
measureId: video.measure || '',
|
|
|
measureType: video.measureType || '',
|
|
|
- pageSource: DETAIL_PAGESOURCE,
|
|
|
+ pageSource: video.pageSource || USER_SHARE_PAGESOURCE,
|
|
|
recommendLogVO: video.recommendLogVO || '',
|
|
|
recommendSource: video.recommendSource || '',
|
|
|
rootPageSource: '', // TODO: 分享之后加上
|
|
@@ -578,7 +578,7 @@ function logReportVideoPlay(video) {
|
|
|
|
|
|
videoPlayReport({
|
|
|
videoId: video.id,
|
|
|
- pageSource: DETAIL_PAGESOURCE,
|
|
|
+ pageSource: video.pageSource || USER_SHARE_PAGESOURCE,
|
|
|
rootPageSource: CATEGORY_PAGESOURCE,
|
|
|
shareDepth: '', // TODO: 分享之后
|
|
|
rootPageTimestamp: '', // TODO: 分享之后
|
|
@@ -602,7 +602,7 @@ function logReportVideoPlaySuccess(video) {
|
|
|
videoActionReport({
|
|
|
businessType: 'videoPlaySuccess',
|
|
|
videoId: video.id,
|
|
|
- pageSource: DETAIL_PAGESOURCE,
|
|
|
+ pageSource: video.pageSource || USER_SHARE_PAGESOURCE,
|
|
|
rootPageSource: CATEGORY_PAGESOURCE,
|
|
|
shareDepth: '', // TODO: 分享之后
|
|
|
rootPageTimestamp: '', // TODO: 分享之后
|
|
@@ -626,7 +626,7 @@ function logReportVideoRealPlay(video) {
|
|
|
videoActionReport({
|
|
|
businessType: 'videoRealPlay',
|
|
|
videoId: video.id,
|
|
|
- pageSource: DETAIL_PAGESOURCE,
|
|
|
+ pageSource: video.pageSource || USER_SHARE_PAGESOURCE,
|
|
|
rootPageSource: CATEGORY_PAGESOURCE,
|
|
|
shareDepth: '', // TODO: 分享之后
|
|
|
rootPageTimestamp: '', // TODO: 分享之后
|
|
@@ -650,7 +650,7 @@ function logReportVideoPlayEnd(video) {
|
|
|
videoActionReport({
|
|
|
businessType: 'videoPlayEnd',
|
|
|
videoId: video.id,
|
|
|
- pageSource: DETAIL_PAGESOURCE,
|
|
|
+ pageSource: video.pageSource || USER_SHARE_PAGESOURCE,
|
|
|
rootPageSource: CATEGORY_PAGESOURCE,
|
|
|
shareDepth: '', // TODO: 分享之后
|
|
|
rootPageTimestamp: '', // TODO: 分享之后
|