Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
8280cdf8
Commit
8280cdf8
authored
Jul 07, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:埋点添加
parent
400f50ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
HotSearchActivity.kt
m-consultant/src/main/java/com/yidianling/consultant/HotSearchActivity.kt
+4
-0
ConsultBIConstants.kt
m-consultant/src/main/java/com/yidianling/consultant/constants/ConsultBIConstants.kt
+10
-4
No files found.
m-consultant/src/main/java/com/yidianling/consultant/HotSearchActivity.kt
View file @
8280cdf8
...
...
@@ -318,6 +318,7 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon
.
inflate
(
R
.
layout
.
consultant_item_expert_hot_search
,
flHotSearch
,
false
)
view
.
tvHotSearch
.
text
=
wordList
[
index
].
word
view
.
setOnClickListener
{
ActionCountUtils
.
count
(
HOT_SEARCH_DOCTOR_NAME
,
wordList
[
index
].
word
!!
,
"热门搜索"
)
getSearchWords
(
wordList
[
index
].
word
!!
,
true
)
}
flHotSearch
.
addView
(
view
)
...
...
@@ -360,6 +361,7 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon
}
}
view
.
setOnClickListener
{
ActionCountUtils
.
count
(
HOT_SEARCH_DOCTOR_NAME
,
etSearch
.
text
.
toString
(),
"热门专家"
)
getSearchWords
(
etSearch
.
text
.
toString
(),
true
)
}
flHotExpert
.
addView
(
view
)
...
...
@@ -422,6 +424,8 @@ class HotSearchActivity : BaseMvpActivity<IHotSearchContract.View, IHotSearchCon
break
}
view
.
setOnClickListener
{
//历史搜索
ActionCountUtils
.
count
(
HOT_SEARCH_DOCTOR_NAME
,
historyStr
,
"历史搜索"
)
getSearchWords
(
historyStr
,
true
)
}
fl_search_history
.
addView
(
view
)
...
...
m-consultant/src/main/java/com/yidianling/consultant/constants/ConsultBIConstants.kt
View file @
8280cdf8
...
...
@@ -56,10 +56,16 @@ class ConsultBIConstants {
const
val
YDL_USER_CONSULT_TYPE_CLICK
:
String
=
APP_CONSULT_LIST_PAGE
+
"ydl_user_consult_type_click"
//咨询师顶部ICON 厌学专题、限时特惠、精神心理
const
val
POSITION_CONSULT_COUNSELOR_CARD_CLICK
=
"consult_counselor_card_click"
// 咨询师列表点击position
const
val
POSITION_CHOICE_FILTER_CLICK
=
"choice_filter_click"
// 热门点击项position
const
val
POSITION_TWO_CATEGORY_CLICK
=
"two_category_click"
// 八大类标签选择埋点
const
val
POSITION_GOODAT_CROWD_CLICK
=
"goodat_crowd_click"
// 擅长人群埋点
const
val
POSITION_CONSULT_COUNSELOR_CARD_CLICK
=
"consult_counselor_card_click"
// 咨询师列表点击position
const
val
POSITION_CHOICE_FILTER_CLICK
=
"choice_filter_click"
// 热门点击项position
const
val
POSITION_TWO_CATEGORY_CLICK
=
"two_category_click"
// 八大类标签选择埋点
const
val
POSITION_GOODAT_CROWD_CLICK
=
"goodat_crowd_click"
// 擅长人群埋点
const
val
SEARCH_BANNERWORD_CLICK
=
"$PART_ID_YDL_USER_MAIN_PAGE|search_bannerword_click"
//历史搜索、热门搜索、本周热门专家搜索
}
}
class
ConsultSearchListEvent
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment