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
8c1ea6ce
Commit
8c1ea6ce
authored
Jul 08, 2022
by
刘鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 咨询页顶部banner埋点
parent
a1c54a42
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
4 deletions
+42
-4
ConsultBIConstants.kt
m-consultant/src/main/java/com/yidianling/consultant/constants/ConsultBIConstants.kt
+2
-0
BigShotOneView.kt
m-consultant/src/main/java/com/yidianling/consultant/ui/view/topView/BigShotOneView.kt
+6
-1
BigShotThreeView.kt
m-consultant/src/main/java/com/yidianling/consultant/ui/view/topView/BigShotThreeView.kt
+17
-0
BigShotTwoView.kt
m-consultant/src/main/java/com/yidianling/consultant/ui/view/topView/BigShotTwoView.kt
+10
-0
RecommendItemView.kt
m-consultant/src/main/java/com/yidianling/consultant/ui/view/topView/RecommendItemView.kt
+7
-3
No files found.
m-consultant/src/main/java/com/yidianling/consultant/constants/ConsultBIConstants.kt
View file @
8c1ea6ce
...
...
@@ -25,6 +25,8 @@ class ConsultBIConstants {
const
val
POSITION_CONSULT_COUNSELOR_LIST_PAGE_VISIT
=
"consult_counselor_list_page_visit"
// 咨询师列表页面浏览position
const
val
POSITION_YDL_USER_ASSOCIATE_WORD_VISIT
=
"ydl_user_associate_word_visit"
// 联想词曝光position
const
val
POSITION_YDL_USER_ASSOCIATE_WORD_CLICK
=
"ydl_user_associate_word_click"
// 联想词点击position
// 咨询师列表页 banner 点击事件
const
val
POSITION_CONSULT_COUNSELOR_LIST_BANNER_CLICK
=
"consult_counselor_list_banner_click"
}
//====================APP咨询列表页(app_consult_list_page)====================
...
...
m-consultant/src/main/java/com/yidianling/consultant/ui/view/topView/BigShotOneView.kt
View file @
8c1ea6ce
...
...
@@ -11,7 +11,7 @@ import com.ydl.ydl_image.module.GlideApp
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.yidianling.consultant.R
import
com.yidianling.consultant.bean.ExpertSearchBigShotBean
import
com.yidianling.consultant.constants.ConsultBIConstants
.ConsultEvent.Companion.YDL_USER_CONSULT_TYPE_CLICK
import
com.yidianling.consultant.constants.ConsultBIConstants
import
kotlinx.android.synthetic.main.consultant_expert_search_big_shot_one.view.*
class
BigShotOneView
:
LinearLayout
{
...
...
@@ -54,6 +54,10 @@ class BigShotOneView : LinearLayout {
consultant_one_img_1
.
setOnClickListener
{
val
h5Params
=
H5Params
(
bean
.
specialTopicUrl
,
null
)
NewH5Activity
.
start
(
context
,
h5Params
)
ActionCountUtils
.
count
(
ConsultBIConstants
.
PART_ID_CONSULT_FILTER_PAGE
+
"|"
+
ConsultBIConstants
.
POSITION_CONSULT_COUNSELOR_LIST_BANNER_CLICK
,
bean
.
specialTopicTitle
)
}
}
}
\ No newline at end of file
m-consultant/src/main/java/com/yidianling/consultant/ui/view/topView/BigShotThreeView.kt
View file @
8c1ea6ce
...
...
@@ -8,8 +8,10 @@ import android.widget.LinearLayout
import
com.ydl.webview.H5Params
import
com.ydl.webview.NewH5Activity
import
com.ydl.ydl_image.module.GlideApp
import
com.ydl.ydlcommon.utils.actionutil.ActionCountUtils
import
com.yidianling.consultant.R
import
com.yidianling.consultant.bean.ExpertSearchBigShotBean
import
com.yidianling.consultant.constants.ConsultBIConstants
import
kotlinx.android.synthetic.main.consultant_expert_search_big_shot_three.view.*
class
BigShotThreeView
:
LinearLayout
{
...
...
@@ -56,16 +58,31 @@ class BigShotThreeView : LinearLayout {
consultant_three_img_1
.
setOnClickListener
{
val
h5Params
=
H5Params
(
bean1
.
specialTopicUrl
,
null
)
NewH5Activity
.
start
(
context
,
h5Params
)
ActionCountUtils
.
count
(
ConsultBIConstants
.
PART_ID_CONSULT_FILTER_PAGE
+
"|"
+
ConsultBIConstants
.
POSITION_CONSULT_COUNSELOR_LIST_BANNER_CLICK
,
bean1
.
specialTopicTitle
)
}
mContext
?.
let
{
GlideApp
.
with
(
it
).
load
(
bean2
.
topicImages
[
2
].
imageUrl
).
into
(
consultant_three_img_2
)
}
consultant_three_img_2
.
setOnClickListener
{
val
h5Params
=
H5Params
(
bean2
.
specialTopicUrl
,
null
)
NewH5Activity
.
start
(
context
,
h5Params
)
ActionCountUtils
.
count
(
ConsultBIConstants
.
PART_ID_CONSULT_FILTER_PAGE
+
"|"
+
ConsultBIConstants
.
POSITION_CONSULT_COUNSELOR_LIST_BANNER_CLICK
,
bean2
.
specialTopicTitle
)
}
mContext
?.
let
{
GlideApp
.
with
(
it
).
load
(
bean3
.
topicImages
[
2
].
imageUrl
).
into
(
consultant_three_img_3
)
}
consultant_three_img_3
.
setOnClickListener
{
val
h5Params
=
H5Params
(
bean3
.
specialTopicUrl
,
null
)
NewH5Activity
.
start
(
context
,
h5Params
)
ActionCountUtils
.
count
(
ConsultBIConstants
.
PART_ID_CONSULT_FILTER_PAGE
+
"|"
+
ConsultBIConstants
.
POSITION_CONSULT_COUNSELOR_LIST_BANNER_CLICK
,
bean3
.
specialTopicTitle
)
}
}
...
...
m-consultant/src/main/java/com/yidianling/consultant/ui/view/topView/BigShotTwoView.kt
View file @
8c1ea6ce
...
...
@@ -55,12 +55,22 @@ class BigShotTwoView : LinearLayout {
ActionCountUtils
.
count
(
ConsultBIConstants
.
ConsultEvent
.
YDL_USER_CONSULT_TYPE_CLICK
,
bean1
.
specialTopicTitle
)
val
h5Params
=
H5Params
(
bean1
.
specialTopicUrl
,
null
)
NewH5Activity
.
start
(
context
,
h5Params
)
ActionCountUtils
.
count
(
ConsultBIConstants
.
PART_ID_CONSULT_FILTER_PAGE
+
"|"
+
ConsultBIConstants
.
POSITION_CONSULT_COUNSELOR_LIST_BANNER_CLICK
,
bean1
.
specialTopicTitle
)
}
mContext
?.
let
{
GlideApp
.
with
(
it
).
load
(
bean2
.
topicImages
[
1
].
imageUrl
).
into
(
consultant_two_img_2
)
}
consultant_two_img_2
.
setOnClickListener
{
ActionCountUtils
.
count
(
ConsultBIConstants
.
ConsultEvent
.
YDL_USER_CONSULT_TYPE_CLICK
,
bean2
.
specialTopicTitle
)
val
h5Params
=
H5Params
(
bean2
.
specialTopicUrl
,
null
)
NewH5Activity
.
start
(
context
,
h5Params
)
ActionCountUtils
.
count
(
ConsultBIConstants
.
PART_ID_CONSULT_FILTER_PAGE
+
"|"
+
ConsultBIConstants
.
POSITION_CONSULT_COUNSELOR_LIST_BANNER_CLICK
,
bean2
.
specialTopicTitle
)
}
}
...
...
m-consultant/src/main/java/com/yidianling/consultant/ui/view/topView/RecommendItemView.kt
View file @
8c1ea6ce
...
...
@@ -4,17 +4,16 @@ import android.content.Context
import
android.util.AttributeSet
import
android.view.View
import
android.widget.LinearLayout
import
com.alibaba.android.arouter.launcher.ARouter
import
com.ydl.webview.H5Params
import
com.ydl.webview.NewH5Activity
import
com.ydl.ydl_image.module.GlideApp
import
com.ydl.ydlcommon.
base.config.HttpConfig
import
com.ydl.ydlcommon.
utils.actionutil.ActionCountUtils
import
com.yidianling.common.tools.RxDeviceTool
import
com.yidianling.common.tools.RxImageTool
import
com.yidianling.consultant.R
import
com.yidianling.consultant.bean.ExpertSearchRecommandBean
import
com.yidianling.consultant.constants.ConsultBIConstants
import
kotlinx.android.synthetic.main.consultant_expert_search_top_item_view.view.*
import
java.net.URLDecoder
class
RecommendItemView
:
LinearLayout
{
...
...
@@ -70,6 +69,11 @@ class RecommendItemView : LinearLayout {
setOnClickListener
{
val
h5Params
=
H5Params
(
bean
.
specialTopicUrl
,
null
)
NewH5Activity
.
start
(
context
,
h5Params
)
ActionCountUtils
.
count
(
ConsultBIConstants
.
PART_ID_CONSULT_FILTER_PAGE
+
"|"
+
ConsultBIConstants
.
POSITION_CONSULT_COUNSELOR_LIST_BANNER_CLICK
,
bean
.
specialTopicTitle
)
}
}
...
...
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