Commit 4e5f4a3b by Lin

fix:补充完善关闭素材预览埋点事件

1 parent 607d51a2
...@@ -683,6 +683,15 @@ export default { ...@@ -683,6 +683,15 @@ export default {
this.longImagePopupVisible = true this.longImagePopupVisible = true
}, },
closeLongImagePopup () { closeLongImagePopup () {
const item = this.currentMaterial || {}
if (item?.id) {
const businessParam = {
materialId: item.id,
title: item.title || item.detailTitle || item.materialTitle
}
console.log('closeLongImagePopup 埋点:', { eventCode: 'app-longImage-close', businessParam })
uni.$track.add({ eventCode: 'app-longImage-close', businessParam })
}
this.longImagePopupVisible = false this.longImagePopupVisible = false
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!