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
52ce4d1d2ddd70663d7ee2e17facd7ee94f4c4d9
1 parent
60716a1d
逛详情埋点优化 review by 孙凯
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
js/guang/containers/DetailContainer.js
js/guang/containers/DetailContainer.js
View file @
52ce4d1
...
...
@@ -88,7 +88,14 @@ class DetailContainer extends Component {
let
{
articleId
}
=
detail
;
ReactNative
.
NativeModules
.
YH_CommonHelper
.
jumpWithUrl
(
url
);
ReactNative
.
NativeModules
.
YH_CommonHelper
.
logEvent
(
'YB_STROLL_CONT_BRND'
,
{
TOURL
:
url
,
NAV_NUM
:
rowID
,
CONTENT_ID
:
articleId
,
BRAND_ID
:
id
});
let
params
=
{
TOURL
:
url
,
NAV_NUM
:
parseInt
(
rowID
)
+
1
+
''
,
CONTENT_ID
:
articleId
,
BRAND_ID
:
id
,
};
ReactNative
.
NativeModules
.
YH_CommonHelper
.
logEvent
(
'YB_STROLL_CONT_BRND'
,
params
);
}
_onPressArticle
(
url
)
{
...
...
@@ -123,7 +130,14 @@ class DetailContainer extends Component {
let
url
=
`
http
:
//m.yohobuy.com?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":"${productSkn}"}}`;
ReactNative
.
NativeModules
.
YH_CommonHelper
.
jumpWithUrl
(
url
);
ReactNative
.
NativeModules
.
YH_CommonHelper
.
logEvent
(
'YB_STROLL_CONT_REC_PRD'
,
{
TOURL
:
url
,
PRD_SKN
:
productSkn
,
CONTENT_ID
:
articleId
,
NAV_NUM
:
rowID
});
let
params
=
{
TOURL
:
''
,
PRD_SKN
:
productSkn
,
CONTENT_ID
:
articleId
,
NAV_NUM
:
parseInt
(
rowID
)
+
1
+
''
,
};
ReactNative
.
NativeModules
.
YH_CommonHelper
.
logEvent
(
'YB_STROLL_CONT_REC_PRD'
,
params
);
}
...
...
Please
register
or
login
to post a comment