Feat(页面):监听页面打开次数和页面停留时长接口对接

This commit is contained in:
lifizer
2024-06-14 17:59:10 +08:00
parent 344e0aa888
commit 2f217e8dc1
2 changed files with 17 additions and 9 deletions
+2 -2
View File
@@ -15,12 +15,12 @@ export const pageListenMixins = {
this.pageToWatchShowCount(this.pageKeyId)
},
onHide() {
this.clearPageTimerFn()
this.pageToHideHandle()
},
methods: {
pageToWatchShowCount,
pageToWatchShowTimer,
clearPageTimerFn() {
pageToHideHandle() {
const visitTime = TimeDifference(this.pageViewDateTime, getCurrDateTime())
if (visitTime > 0) {
this.pageToWatchShowTimer(this.pageKeyId, {