Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
YH_RNComponent
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
陈林
8 years ago
Commit
d9b66f7f2c5ddbde55141a2bd8be17a326d234fe
1 parent
fa676135
增加了品类热门推荐埋点。review by 孙凯。
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
8 deletions
js/classify/containers/CategoryBContainer.js
js/classify/containers/CategoryBContainer.js
View file @
d9b66f7
...
...
@@ -158,6 +158,24 @@ class CategoryBContainer extends Component {
}
}
_onPressHotRecommendItem
(
url
,
index
=
0
)
{
if
(
url
&&
url
.
length
)
{
ReactNative
.
NativeModules
.
YH_CommonHelper
.
jumpWithUrl
(
url
);
//埋点
let
{
currentChannelId
,
currentCateId
}
=
this
.
props
.
categoryB
;
let
params
=
{
TAB_ID
:
currentChannelId
+
''
,
F_ID
:
"1004"
,
F_NAME
:
"热门推荐"
,
F_INDEX
:
"2"
,
L1_CATE
:
currentCateId
+
''
,
I_INDEX
:
parseInt
(
index
)
+
1
+
''
,
};
NativeModules
.
YH_CommonHelper
.
logEvent
(
'YB_CATEGORY_CAT_FLR_C'
,
params
);
}
}
_onPressCategoryBMore
()
{
let
{
currentChannelId
,
currentCateId
}
=
this
.
props
.
categoryB
;
this
.
props
.
actions
.
pressCategoryBMore
(
currentCateId
);
...
...
@@ -167,7 +185,7 @@ class CategoryBContainer extends Component {
TAB_ID
:
currentChannelId
+
''
,
F_ID
:
"1002"
,
F_NAME
:
"MORE"
,
F_INDEX
:
"
2
"
,
F_INDEX
:
"
3
"
,
L1_CATE
:
currentCateId
+
''
,
L2_CATE
:
""
,
I_INDEX
:
'0'
,
...
...
@@ -175,11 +193,7 @@ class CategoryBContainer extends Component {
NativeModules
.
YH_CommonHelper
.
logEvent
(
'YB_CATEGORY_CAT_FLR_C'
,
params
);
}
_onPressHotRecommendItem
(
url
,
index
=
0
)
{
if
(
url
&&
url
.
length
)
{
ReactNative
.
NativeModules
.
YH_CommonHelper
.
jumpWithUrl
(
url
);
}
}
_onPressHotCategoryItem
(
value
,
index
)
{
let
{
currentChannelId
,
currentCateId
,
currentCateValue
}
=
this
.
props
.
categoryB
;
...
...
@@ -199,7 +213,7 @@ class CategoryBContainer extends Component {
TAB_ID
:
currentChannelId
+
''
,
F_ID
:
"1002"
,
F_NAME
:
"全部"
+
currentCateValue
,
F_INDEX
:
"
2
"
,
F_INDEX
:
"
3
"
,
L1_CATE
:
currentCateId
+
''
,
L2_CATE
:
subcategoryId
+
''
,
I_INDEX
:
parseInt
(
index
)
+
1
+
''
,
...
...
@@ -217,7 +231,7 @@ class CategoryBContainer extends Component {
TAB_ID
:
currentChannelId
+
''
,
F_ID
:
"1003"
,
F_NAME
:
"热门品牌"
,
F_INDEX
:
"
3
"
,
F_INDEX
:
"
4
"
,
L1_CATE
:
currentCateId
+
''
,
I_INDEX
:
parseInt
(
index
)
+
1
+
''
,
BRAND_ID
:
data
.
id
+
''
,
...
...
Please
register
or
login
to post a comment