Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
yangchenggong1_wd
2024-05-25 10:27:24 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
462e5cc8b3dfadf080433d624875079d19a56121
462e5cc8
1 parent
8052f823
desc:埋点[个人主页(主态) - 个人主页(主)TAB点击]
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
sight_harmony/features/wdComponent/src/main/ets/pages/MineHomePage.ets
sight_harmony/features/wdComponent/src/main/ets/pages/MineHomePage.ets
View file @
462e5cc
...
...
@@ -7,7 +7,7 @@ import { HomePageBottomFollowComponent } from '../components/mine/home/HomePageB
import MinePageDatasModel from '../model/MinePageDatasModel';
import { EmptyComponent } from '../components/view/EmptyComponent';
import { CustomTitleUI } from '../components/reusable/CustomTitleUI';
import { TrackingPageBrowse, TrackConstants, TrackingButton } from 'wdTracking/Index';
import { TrackingPageBrowse, TrackConstants, TrackingButton
, ParamType, Tracking
} from 'wdTracking/Index';
const TAG = "MineHomePage"
...
...
@@ -251,6 +251,7 @@ struct MineHomePage {
.animationDuration(0)
.onChange((index: number) => {
this.currentIndex = index
trackTabFirstClick(index === 0 ? "评论":"关注")
})
.vertical(false)
.barHeight("77lpx")
...
...
@@ -437,6 +438,7 @@ struct MineHomePage {
}.onClick(()=>{
this.currentIndex = index
this.controller.changeIndex(this.currentIndex)
trackTabFirstClick(index === 0 ? "评论":"关注")
})
.height('77lpx')
.width('70lpx')
...
...
@@ -535,3 +537,12 @@ struct MineHomePage {
.lineHeight('31lpx')
}
function trackTabFirstClick(firstLevelTabName: string){
let params: ParamType = {}
params["firstLevelTabName"] = firstLevelTabName
params["pageName"] = TrackConstants.PageName.Main_Personal
params["pageId"] = TrackConstants.PageName.Main_Personal
Tracking.event("main_personal_home_page_tab_click", params)
}
...
...
Please
register
or
login
to post a comment