Commit 607d51a2 by Lin

fix: 添加长图弹窗埋点跟踪功能

- 在 openLongImagePopup 方法中添加埋点逻辑,记录长图查看事件及相关业务参数。
1 parent 43e884bd
...@@ -670,6 +670,16 @@ export default { ...@@ -670,6 +670,16 @@ export default {
}, },
openLongImagePopup () { openLongImagePopup () {
if (!this.showLongImageBtn) return if (!this.showLongImageBtn) return
const item = this.currentMaterial || {}
const matchedDetail = this.getMatchedMaterialDetail(item)
if (item?.id) {
const businessParam = {
materialId: item.id,
title: item.title || item.detailTitle || item.materialTitle
}
console.log('openLongImagePopup 埋点:', { eventCode: 'app-longImage-detail', businessParam })
uni.$track.add({ eventCode: 'app-longImage-detail', businessParam })
}
this.longImagePopupVisible = true this.longImagePopupVisible = true
}, },
closeLongImagePopup () { closeLongImagePopup () {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!