Showing
1 changed file
with
2 additions
and
3 deletions
| @@ -50,7 +50,7 @@ struct OneKeyLoginPage { | @@ -50,7 +50,7 @@ struct OneKeyLoginPage { | ||
| 50 | // 获取到Authorization Code | 50 | // 获取到Authorization Code |
| 51 | let authorizationCode = response.authorizationCode; | 51 | let authorizationCode = response.authorizationCode; |
| 52 | // hilog.info(0x0000, 'testTag', 'response: %{public}s', JSON.stringify(response)); | 52 | // hilog.info(0x0000, 'testTag', 'response: %{public}s', JSON.stringify(response)); |
| 53 | - TrackingButton.click("oneClickLoginPageLoginButton", this.pageName, this.pageName) | 53 | + TrackingButton.click("oneClickLoginPageLoginButton", TrackConstants.PageName.OneClick_Login, TrackConstants.PageName.OneClick_Login) |
| 54 | this.requestLogin() | 54 | this.requestLogin() |
| 55 | return; | 55 | return; |
| 56 | } | 56 | } |
| @@ -58,7 +58,6 @@ struct OneKeyLoginPage { | @@ -58,7 +58,6 @@ struct OneKeyLoginPage { | ||
| 58 | 58 | ||
| 59 | // 埋点计算页面浏览时长 | 59 | // 埋点计算页面浏览时长 |
| 60 | private pageStartDate: number = 0 | 60 | private pageStartDate: number = 0 |
| 61 | - private pageName = TrackConstants.PageName.OneClick_Login | ||
| 62 | 61 | ||
| 63 | aboutToAppear(): void { | 62 | aboutToAppear(): void { |
| 64 | this.anonymousPhone = HuaweiAuth.sharedInstance().anonymousPhone||"" | 63 | this.anonymousPhone = HuaweiAuth.sharedInstance().anonymousPhone||"" |
| @@ -70,7 +69,7 @@ struct OneKeyLoginPage { | @@ -70,7 +69,7 @@ struct OneKeyLoginPage { | ||
| 70 | 69 | ||
| 71 | onPageHide(): void { | 70 | onPageHide(): void { |
| 72 | const duration = Math.floor((Date.now() - this.pageStartDate!)/1000) | 71 | const duration = Math.floor((Date.now() - this.pageStartDate!)/1000) |
| 73 | - TrackingPageBrowse.trackCommonPageExposureEnd(this.pageName, this.pageName, duration) | 72 | + TrackingPageBrowse.trackCommonPageExposureEnd(TrackConstants.PageName.OneClick_Login, TrackConstants.PageName.OneClick_Login, duration) |
| 74 | } | 73 | } |
| 75 | 74 | ||
| 76 | // pageTransition() { | 75 | // pageTransition() { |
-
Please register or login to post a comment