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
d34d9a80be5d435129265e5a94d6c0bc8be6c916
1 parent
c5c3f28a
Log event for good goods recommend like action.
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
js/goodGoodsRecommend/reducers/detail/detailActions.js
js/goodGoodsRecommend/reducers/list/listActions.js
js/goodGoodsRecommend/reducers/detail/detailActions.js
View file @
d34d9a8
...
...
@@ -46,6 +46,12 @@ export function onPressPraise() {
let
likeCount
=
json
.
total
;
dispatch
(
likeSuccess
({
likeStatus
,
likeCount
}));
NativeModules
.
YH_CommonHelper
.
goodGoodsRecommendDetailPraiseStatusChanged
({
likeStatus
,
likeCount
});
let
param
=
{
PRD_SKN
:
product_skn
,
LIKE_TYPE
:
forLike
?
1
:
2
,
POS_ID
:
102
,
}
NativeModules
.
YH_CommonHelper
.
logEvent
(
'YB_GOOD_GDS_LIKE_C'
,
param
);
}).
catch
(
error
=>
{
dispatch
(
likeSuccess
({
likeStatus
:
detail
.
get
(
'is_praised'
),
likeCount
:
detail
.
get
(
'total_praised'
)}));
});
...
...
js/goodGoodsRecommend/reducers/list/listActions.js
View file @
d34d9a8
...
...
@@ -63,6 +63,12 @@ export function like(index) {
let
likeCount
=
json
.
total
;
let
newProduct
=
currentProduct
.
set
(
'is_praised'
,
likeStatus
).
set
(
'total_praised'
,
likeCount
);
dispatch
(
likeSuccess
(
newProduct
,
index
));
let
param
=
{
PRD_SKN
:
product_skn
,
LIKE_TYPE
:
forLike
?
1
:
2
,
POS_ID
:
101
,
}
NativeModules
.
YH_CommonHelper
.
logEvent
(
'YB_GOOD_GDS_LIKE_C'
,
param
);
}).
catch
(
error
=>
{
dispatch
(
likeSuccess
(
currentProduct
,
index
));
});
...
...
Please
register
or
login
to post a comment