Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
yangchenggong1_wd
2024-05-21 15:26:42 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
77e98b0463f9d9857ef346618378ff4f1fc21524
77e98b04
1 parent
4933ab4f
desc:埋点[预约列表(我的)-页面浏览(浏览时长传空值)]
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
sight_harmony/features/wdComponent/src/main/ets/components/page/AppointmentListPage.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/AppointmentListPage.ets
View file @
77e98b0
import { DateTimeUtils } from 'wdKit/Index';
import { TrackingPageBrowse, TrackConstants } from 'wdTracking/Index';
import { AppointmentListUI } from '../mine/appointment/AppointmentListUI'
const TAG = "AppointmentListPage"
...
...
@@ -5,6 +7,19 @@ const TAG = "AppointmentListPage"
@Entry
@Component
struct AppointmentListPage {
pageShowTime:number = 0;
pageHideTime:number = 0;
onPageShow() {
this.pageShowTime = DateTimeUtils.getTimeStamp()
}
onPageHide(): void {
this.pageHideTime = DateTimeUtils.getTimeStamp()
let duration = 0
duration = Math.floor((this.pageHideTime - this.pageShowTime)/1000)
TrackingPageBrowse.trackCommonPageExposureEnd(TrackConstants.PageName.My_Saved_Live,TrackConstants.PageName.My_Saved_Live,duration)
}
build() {
Column(){
...
...
Please
register
or
login
to post a comment