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
wangliang_wd
2024-06-18 16:29:05 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
38c23757617d625f82079ddaa5a1afb2c9a2a777
38c23757
1 parent
01731490
feat:调整一键登录埋点
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
sight_harmony/features/wdLogin/src/main/ets/pages/login/OneKeyLoginPage.ets
sight_harmony/features/wdLogin/src/main/ets/pages/login/OneKeyLoginPage.ets
View file @
38c2375
...
...
@@ -50,7 +50,7 @@ struct OneKeyLoginPage {
// 获取到Authorization Code
let authorizationCode = response.authorizationCode;
// hilog.info(0x0000, 'testTag', 'response: %{public}s', JSON.stringify(response));
TrackingButton.click("oneClickLoginPageLoginButton",
this.pageName, this.pageName
)
TrackingButton.click("oneClickLoginPageLoginButton",
TrackConstants.PageName.OneClick_Login, TrackConstants.PageName.OneClick_Login
)
this.requestLogin()
return;
}
...
...
@@ -58,7 +58,6 @@ struct OneKeyLoginPage {
// 埋点计算页面浏览时长
private pageStartDate: number = 0
private pageName = TrackConstants.PageName.OneClick_Login
aboutToAppear(): void {
this.anonymousPhone = HuaweiAuth.sharedInstance().anonymousPhone||""
...
...
@@ -70,7 +69,7 @@ struct OneKeyLoginPage {
onPageHide(): void {
const duration = Math.floor((Date.now() - this.pageStartDate!)/1000)
TrackingPageBrowse.trackCommonPageExposureEnd(
this.pageName, this.pageName
, duration)
TrackingPageBrowse.trackCommonPageExposureEnd(
TrackConstants.PageName.OneClick_Login, TrackConstants.PageName.OneClick_Login
, duration)
}
// pageTransition() {
...
...
Please
register
or
login
to post a comment