Merge remote-tracking branch 'origin/feature/20250910-all' into feature/20251017_cl_GR_DETAIL
This commit is contained in:
@@ -63,6 +63,26 @@ const isPassVideo = (item: PageDataTemplateComponentSet, index: number) => {
|
||||
|
||||
const handleVideoClick = (index: number) => {
|
||||
playingSlideIndex.value = index
|
||||
|
||||
const group = getComponentGroup(props.components, 'videoPlay')
|
||||
const base = group?.tracking?.click_item || ''
|
||||
const next = base
|
||||
? base.replace(/(^.*_)(\d+)$/, `$1${index}`) === base
|
||||
? `${base}_${index}`
|
||||
: base.replace(/(^.*_)(\d+)$/, `$1${index}`)
|
||||
: `${index}`
|
||||
|
||||
const sendingGroup = group
|
||||
? { ...group, tracking: { ...group.tracking, click_item: next } }
|
||||
: group
|
||||
|
||||
sendLog(
|
||||
locale.value,
|
||||
useAnalyticsLogDataDirect(
|
||||
(sendingGroup as any) || getComponentGroup(props.components, 'videoPlay'),
|
||||
1
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
const stopVideo = () => {
|
||||
|
||||
Reference in New Issue
Block a user