Showing
1 changed file
with
13 additions
and
1 deletions
| 1 | import router from '@ohos.router' | 1 | import router from '@ohos.router' |
| 2 | import { Params } from 'wdBean'; | 2 | import { Params } from 'wdBean'; |
| 3 | import { DateTimeUtils, NetworkUtil, StringUtils } from 'wdKit'; | 3 | import { DateTimeUtils, NetworkUtil, StringUtils } from 'wdKit'; |
| 4 | -import { TrackingPageBrowse, TrackConstants } from 'wdTracking/Index'; | 4 | +import { TrackingPageBrowse, TrackConstants, ParamType, Tracking } from 'wdTracking/Index'; |
| 5 | import { OtherHomePageBottomCommentComponent } from '../components/mine/home/OtherHomePageBottomCommentComponent'; | 5 | import { OtherHomePageBottomCommentComponent } from '../components/mine/home/OtherHomePageBottomCommentComponent'; |
| 6 | import { OtherHomePageBottomFollowComponent } from '../components/mine/home/OtherHomePageBottomFollowComponent'; | 6 | import { OtherHomePageBottomFollowComponent } from '../components/mine/home/OtherHomePageBottomFollowComponent'; |
| 7 | import { CustomTitleUI } from '../components/reusable/CustomTitleUI'; | 7 | import { CustomTitleUI } from '../components/reusable/CustomTitleUI'; |
| @@ -219,6 +219,7 @@ struct OtherNormalUserHomePage { | @@ -219,6 +219,7 @@ struct OtherNormalUserHomePage { | ||
| 219 | .animationDuration(0) | 219 | .animationDuration(0) |
| 220 | .onChange((index: number) => { | 220 | .onChange((index: number) => { |
| 221 | this.currentIndex = index | 221 | this.currentIndex = index |
| 222 | + trackTabFirstClick(index === 0 ? "评论":"关注") | ||
| 222 | }) | 223 | }) |
| 223 | .vertical(false) | 224 | .vertical(false) |
| 224 | .barHeight('77lpx') | 225 | .barHeight('77lpx') |
| @@ -370,6 +371,7 @@ struct OtherNormalUserHomePage { | @@ -370,6 +371,7 @@ struct OtherNormalUserHomePage { | ||
| 370 | }.onClick(()=>{ | 371 | }.onClick(()=>{ |
| 371 | this.currentIndex = index | 372 | this.currentIndex = index |
| 372 | this.controller.changeIndex(this.currentIndex) | 373 | this.controller.changeIndex(this.currentIndex) |
| 374 | + trackTabFirstClick(index === 0 ? "评论":"关注") | ||
| 373 | }) | 375 | }) |
| 374 | .height('77lpx') | 376 | .height('77lpx') |
| 375 | .width('70lpx') | 377 | .width('70lpx') |
| @@ -448,3 +450,13 @@ struct OtherNormalUserHomePage { | @@ -448,3 +450,13 @@ struct OtherNormalUserHomePage { | ||
| 448 | .lineHeight('31lpx') | 450 | .lineHeight('31lpx') |
| 449 | } | 451 | } |
| 450 | 452 | ||
| 453 | +function trackTabFirstClick(firstLevelTabName: string){ | ||
| 454 | + let params: ParamType = {} | ||
| 455 | + params["firstLevelTabName"] = firstLevelTabName | ||
| 456 | + params["pageName"] = TrackConstants.PageName.Customer_Personal | ||
| 457 | + params["pageId"] = TrackConstants.PageName.Customer_Personal | ||
| 458 | + | ||
| 459 | + Tracking.event("customer_personal_home_page_tab_click", params) | ||
| 460 | +} | ||
| 461 | + | ||
| 462 | + |
-
Please register or login to post a comment