Showing
1 changed file
with
7 additions
and
0 deletions
| 1 | import { Params } from 'wdBean'; | 1 | import { Params } from 'wdBean'; |
| 2 | import { AppUtils, StringUtils } from 'wdKit/Index'; | 2 | import { AppUtils, StringUtils } from 'wdKit/Index'; |
| 3 | import { WDRouterPage, WDRouterRule } from 'wdRouter'; | 3 | import { WDRouterPage, WDRouterRule } from 'wdRouter'; |
| 4 | +import { TrackingButton, TrackConstants } from 'wdTracking/Index'; | ||
| 4 | import { CustomTitleUI } from '../reusable/CustomTitleUI'; | 5 | import { CustomTitleUI } from '../reusable/CustomTitleUI'; |
| 5 | import { EnvironmentCustomDialog } from './EnvironmentCustomDialog'; | 6 | import { EnvironmentCustomDialog } from './EnvironmentCustomDialog'; |
| 6 | 7 | ||
| @@ -58,9 +59,11 @@ export struct AboutPageUI { | @@ -58,9 +59,11 @@ export struct AboutPageUI { | ||
| 58 | this.getArrowCell(item, index) | 59 | this.getArrowCell(item, index) |
| 59 | }.onClick(() => { | 60 | }.onClick(() => { |
| 60 | if (index == 0) { | 61 | if (index == 0) { |
| 62 | + trackButtonClick("aboutPagePrivacyAgreement") | ||
| 61 | let bean = { contentID: "2", pageID: "" } as Params | 63 | let bean = { contentID: "2", pageID: "" } as Params |
| 62 | WDRouterRule.jumpWithPage(WDRouterPage.loginProtocolPage, bean) | 64 | WDRouterRule.jumpWithPage(WDRouterPage.loginProtocolPage, bean) |
| 63 | } else if(index == 1){ | 65 | } else if(index == 1){ |
| 66 | + trackButtonClick("aboutPageUserAgreement") | ||
| 64 | let bean = { contentID: "1", pageID: "" } as Params | 67 | let bean = { contentID: "1", pageID: "" } as Params |
| 65 | WDRouterRule.jumpWithPage(WDRouterPage.loginProtocolPage, bean) | 68 | WDRouterRule.jumpWithPage(WDRouterPage.loginProtocolPage, bean) |
| 66 | }else if(index == 2){ | 69 | }else if(index == 2){ |
| @@ -124,4 +127,8 @@ export struct AboutPageUI { | @@ -124,4 +127,8 @@ export struct AboutPageUI { | ||
| 124 | } | 127 | } |
| 125 | } | 128 | } |
| 126 | 129 | ||
| 130 | +function trackButtonClick(buttonName: string){ | ||
| 131 | + TrackingButton.click(buttonName, TrackConstants.PageName.About, TrackConstants.PageName.About) | ||
| 132 | +} | ||
| 133 | + | ||
| 127 | 134 |
-
Please register or login to post a comment