Showing
1 changed file
with
12 additions
and
0 deletions
| 1 | import { EmitterUtils, EmitterEventId, Logger, NetworkUtil } from 'wdKit/Index' | 1 | import { EmitterUtils, EmitterEventId, Logger, NetworkUtil } from 'wdKit/Index' |
| 2 | +import { ParamType, TrackConstants, Tracking } from 'wdTracking/Index' | ||
| 2 | import MinePageDatasModel from '../../../model/MinePageDatasModel' | 3 | import MinePageDatasModel from '../../../model/MinePageDatasModel' |
| 3 | import { FollowListItem } from '../../../viewmodel/FollowListItem' | 4 | import { FollowListItem } from '../../../viewmodel/FollowListItem' |
| 4 | import { CustomTitleUI } from '../../reusable/CustomTitleUI' | 5 | import { CustomTitleUI } from '../../reusable/CustomTitleUI' |
| @@ -70,6 +71,7 @@ export struct FollowFirstTabsComponent{ | @@ -70,6 +71,7 @@ export struct FollowFirstTabsComponent{ | ||
| 70 | }.onClick(()=>{ | 71 | }.onClick(()=>{ |
| 71 | this.currentIndex = index | 72 | this.currentIndex = index |
| 72 | this.controller.changeIndex(this.currentIndex) | 73 | this.controller.changeIndex(this.currentIndex) |
| 74 | + trackTabFirstClick(item.directoryName) | ||
| 73 | }) | 75 | }) |
| 74 | .height('100%') | 76 | .height('100%') |
| 75 | .margin({right:'9lpx'}) | 77 | .margin({right:'9lpx'}) |
| @@ -103,6 +105,7 @@ export struct FollowFirstTabsComponent{ | @@ -103,6 +105,7 @@ export struct FollowFirstTabsComponent{ | ||
| 103 | .animationDuration(0) | 105 | .animationDuration(0) |
| 104 | .onChange((index: number) => { | 106 | .onChange((index: number) => { |
| 105 | this.currentIndex = index | 107 | this.currentIndex = index |
| 108 | + trackTabFirstClick(this.data[index].directoryName) | ||
| 106 | }) | 109 | }) |
| 107 | .width('100%') | 110 | .width('100%') |
| 108 | .layoutWeight(1) | 111 | .layoutWeight(1) |
| @@ -118,3 +121,12 @@ export struct FollowFirstTabsComponent{ | @@ -118,3 +121,12 @@ export struct FollowFirstTabsComponent{ | ||
| 118 | } | 121 | } |
| 119 | } | 122 | } |
| 120 | } | 123 | } |
| 124 | + | ||
| 125 | + function trackTabFirstClick(firstLevelTabName: string){ | ||
| 126 | + let params: ParamType = {} | ||
| 127 | + params["firstLevelTabName"] = firstLevelTabName | ||
| 128 | + params["pageName"] = TrackConstants.PageName.My_Follow | ||
| 129 | + params["pageId"] = TrackConstants.PageName.My_Follow | ||
| 130 | + | ||
| 131 | + Tracking.event("my_follow_page_tab_click", params) | ||
| 132 | + } |
-
Please register or login to post a comment