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:55:25 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
528c27f156641a2c0369bf1edd1ef2ae96a07fa3
528c27f1
1 parent
a1ec492e
desc:埋点[隐私设置页 - 页面浏览(浏览时长传空值)]
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
sight_harmony/features/wdComponent/src/main/ets/components/page/PrivacySettingPage.ets
sight_harmony/features/wdTracking/src/main/ets/common/TrackConstants.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/PrivacySettingPage.ets
View file @
528c27f
import { PermissionUtil } from 'wdKit'
import {
DateTimeUtils,
PermissionUtil } from 'wdKit'
import { PrivacySettingModel } from '../../model/PrivacySettingModel'
import { Params } from 'wdBean';
import { WDRouterPage, WDRouterRule } from 'wdRouter';
import { HttpUtils } from 'wdNetwork/Index';
import { TrackingPageBrowse, TrackConstants } from 'wdTracking/Index';
const TAG = 'PrivacySettingPage';
const DiyString = '开启个性化推荐'
...
...
@@ -15,9 +16,19 @@ export struct PrivacySettingPage {
tips: string = '设置前可查阅'
privacyTips: string = '《隐私政策》'
tipsEnd = '中相应权限使用规则'
pageShowTime:number = 0;
pageHideTime:number = 0;
onPageShow(): void {
this.getPermissionStatus();
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.Privacy_Setting,TrackConstants.PageName.Privacy_Setting,duration)
}
aboutToAppear() {
...
...
sight_harmony/features/wdTracking/src/main/ets/common/TrackConstants.ets
View file @
528c27f
...
...
@@ -97,7 +97,7 @@ export namespace TrackConstants {
/// 设置页
Setting = "settingPage",
/// 账号管理
/// 账号管理
//账户与安全
Account_Management = "accountManagementPage",
/// 注销账户
Cancel_Account = "cancelAccountPage",
...
...
Please
register
or
login
to post a comment