yangchenggong1_wd

desc:埋点[个人主页(主态) - 个人主页(主)TAB点击]

@@ -7,7 +7,7 @@ import { HomePageBottomFollowComponent } from '../components/mine/home/HomePageB @@ -7,7 +7,7 @@ import { HomePageBottomFollowComponent } from '../components/mine/home/HomePageB
7 import MinePageDatasModel from '../model/MinePageDatasModel'; 7 import MinePageDatasModel from '../model/MinePageDatasModel';
8 import { EmptyComponent } from '../components/view/EmptyComponent'; 8 import { EmptyComponent } from '../components/view/EmptyComponent';
9 import { CustomTitleUI } from '../components/reusable/CustomTitleUI'; 9 import { CustomTitleUI } from '../components/reusable/CustomTitleUI';
10 -import { TrackingPageBrowse, TrackConstants, TrackingButton } from 'wdTracking/Index'; 10 +import { TrackingPageBrowse, TrackConstants, TrackingButton, ParamType, Tracking } from 'wdTracking/Index';
11 11
12 const TAG = "MineHomePage" 12 const TAG = "MineHomePage"
13 13
@@ -251,6 +251,7 @@ struct MineHomePage { @@ -251,6 +251,7 @@ struct MineHomePage {
251 .animationDuration(0) 251 .animationDuration(0)
252 .onChange((index: number) => { 252 .onChange((index: number) => {
253 this.currentIndex = index 253 this.currentIndex = index
  254 + trackTabFirstClick(index === 0 ? "评论":"关注")
254 }) 255 })
255 .vertical(false) 256 .vertical(false)
256 .barHeight("77lpx") 257 .barHeight("77lpx")
@@ -437,6 +438,7 @@ struct MineHomePage { @@ -437,6 +438,7 @@ struct MineHomePage {
437 }.onClick(()=>{ 438 }.onClick(()=>{
438 this.currentIndex = index 439 this.currentIndex = index
439 this.controller.changeIndex(this.currentIndex) 440 this.controller.changeIndex(this.currentIndex)
  441 + trackTabFirstClick(index === 0 ? "评论":"关注")
440 }) 442 })
441 .height('77lpx') 443 .height('77lpx')
442 .width('70lpx') 444 .width('70lpx')
@@ -535,3 +537,12 @@ struct MineHomePage { @@ -535,3 +537,12 @@ struct MineHomePage {
535 .lineHeight('31lpx') 537 .lineHeight('31lpx')
536 } 538 }
537 539
  540 +function trackTabFirstClick(firstLevelTabName: string){
  541 + let params: ParamType = {}
  542 + params["firstLevelTabName"] = firstLevelTabName
  543 + params["pageName"] = TrackConstants.PageName.Main_Personal
  544 + params["pageId"] = TrackConstants.PageName.Main_Personal
  545 +
  546 + Tracking.event("main_personal_home_page_tab_click", params)
  547 +}
  548 +