Showing
1 changed file
with
14 additions
and
1 deletions
| 1 | -import { CustomToast} from 'wdKit/Index'; | 1 | +import { CustomToast, DateTimeUtils} from 'wdKit/Index'; |
| 2 | import { WDRouterPage, WDRouterRule } from 'wdRouter/Index'; | 2 | import { WDRouterPage, WDRouterRule } from 'wdRouter/Index'; |
| 3 | import { LoginModel } from './LoginModel'; | 3 | import { LoginModel } from './LoginModel'; |
| 4 | import { ModifyPasswordRequestItem } from './ModifyPasswordRequestItem'; | 4 | import { ModifyPasswordRequestItem } from './ModifyPasswordRequestItem'; |
| 5 | import { router } from '@kit.ArkUI'; | 5 | import { router } from '@kit.ArkUI'; |
| 6 | import { encryptMessage } from '../../utils/cryptoUtil'; | 6 | import { encryptMessage } from '../../utils/cryptoUtil'; |
| 7 | +import { TrackingPageBrowse, TrackConstants } from 'wdTracking/Index'; | ||
| 7 | 8 | ||
| 8 | /** | 9 | /** |
| 9 | * 修改密码页面 | 10 | * 修改密码页面 |
| @@ -26,7 +27,19 @@ struct ModifyPasswordPage { | @@ -26,7 +27,19 @@ struct ModifyPasswordPage { | ||
| 26 | customStyle: true, | 27 | customStyle: true, |
| 27 | maskColor:"#00000000" | 28 | maskColor:"#00000000" |
| 28 | }) | 29 | }) |
| 30 | + pageShowTime:number = 0; | ||
| 31 | + pageHideTime:number = 0; | ||
| 29 | 32 | ||
| 33 | + onPageShow() { | ||
| 34 | + this.pageShowTime = DateTimeUtils.getTimeStamp() | ||
| 35 | + } | ||
| 36 | + | ||
| 37 | + onPageHide(): void { | ||
| 38 | + this.pageHideTime = DateTimeUtils.getTimeStamp() | ||
| 39 | + let duration = 0 | ||
| 40 | + duration = Math.floor((this.pageHideTime - this.pageShowTime)/1000) | ||
| 41 | + TrackingPageBrowse.trackCommonPageExposureEnd(TrackConstants.PageName.Change_Passwd,TrackConstants.PageName.Change_Passwd,duration) | ||
| 42 | + } | ||
| 30 | 43 | ||
| 31 | build() { | 44 | build() { |
| 32 | Row() { | 45 | Row() { |
-
Please register or login to post a comment