...
|
...
|
@@ -82,11 +82,31 @@ class DetailContainer extends Component { |
|
|
|
|
|
_onSubmitForComment(content,replyTo){
|
|
|
this.props.actions.addCommentsForArtivle(content,replyTo);
|
|
|
if (replyTo.length) {
|
|
|
let articleId = this.props.detail.get('articleId');
|
|
|
let params = {
|
|
|
ID: articleId,
|
|
|
COMMENT_UID: replyTo,
|
|
|
};
|
|
|
NativeModules.YH_CommonHelper.logEvent('YB_STROLL_DETAIL_REPLY_C', params);
|
|
|
} else {
|
|
|
let articleId = this.props.detail.get('articleId');
|
|
|
let params = {
|
|
|
ID: articleId,
|
|
|
};
|
|
|
NativeModules.YH_CommonHelper.logEvent('YB_STROLL_DETAIL_COMMENT_C', params);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
_onPressConcerns(isFav){
|
|
|
if (isFav == 'Y') {
|
|
|
this.props.actions.addFavorite();
|
|
|
|
|
|
let articleId = this.props.detail.get('articleId');
|
|
|
let params = {
|
|
|
ID: articleId,
|
|
|
};
|
|
|
NativeModules.YH_CommonHelper.logEvent('YB_STROLL_DETAIL_FAV_ART_C', params);
|
|
|
}else {
|
|
|
this.props.actions.cancelFavorite();
|
|
|
}
|
...
|
...
|
@@ -99,14 +119,29 @@ class DetailContainer extends Component { |
|
|
_addPraiseForArtivle(isPraise){
|
|
|
if (isPraise == 'Y') {
|
|
|
this.props.actions.praiseForArtivle();
|
|
|
|
|
|
let articleId = this.props.detail.get('articleId');
|
|
|
let params = {
|
|
|
ID: articleId,
|
|
|
};
|
|
|
NativeModules.YH_CommonHelper.logEvent('YB_STROLL_DETAIL_ART_LIKE_C', params);
|
|
|
}else {
|
|
|
this.props.actions.cancelPraiseForArtivle();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
_addPraiseForComments(comment_id,praise){
|
|
|
_addPraiseForComments(comment_id,praise, uid){
|
|
|
this.props.actions.setPraiseForComments(comment_id,praise);
|
|
|
this.props.actions.addPraiseForComments(comment_id,praise);
|
|
|
|
|
|
if (praise == 'Y') {
|
|
|
let articleId = this.props.detail.get('articleId');
|
|
|
let params = {
|
|
|
ID: articleId,
|
|
|
COMMENT_UID: uid,
|
|
|
};
|
|
|
NativeModules.YH_CommonHelper.logEvent('YB_STROLL_DETAIL_USER_LIKE_C', params);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
_onPressFilter(value) {
|
...
|
...
|
@@ -117,9 +152,15 @@ class DetailContainer extends Component { |
|
|
this.props.actions.setGoodsGroupY(y);
|
|
|
}
|
|
|
|
|
|
_onPressAuthor(url) {
|
|
|
_onPressAuthor(url, author_id, id) {
|
|
|
let authorUrl = urlAddParamOfType(url, '11')
|
|
|
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(authorUrl);
|
|
|
|
|
|
let params = {
|
|
|
ID: id + '' ,
|
|
|
UID: author_id,
|
|
|
};
|
|
|
NativeModules.YH_CommonHelper.logEvent('YB_STROLL_DETAIL_HEAD_C', params);
|
|
|
}
|
|
|
|
|
|
_onPressBrand(url,rowID,id) {
|
...
|
...
|
@@ -140,17 +181,33 @@ class DetailContainer extends Component { |
|
|
}
|
|
|
}
|
|
|
|
|
|
_onPressArticle(url) {
|
|
|
_onPressArticle(url, id) {
|
|
|
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
|
|
|
|
|
|
let articleId = this.props.detail.get('articleId');
|
|
|
let params = {
|
|
|
ID: articleId,
|
|
|
R_ART_ID: id + '',
|
|
|
};
|
|
|
NativeModules.YH_CommonHelper.logEvent('YB_STROLL_DETAIL_R_ART_C', params);
|
|
|
}
|
|
|
|
|
|
_onPressLink(url) {
|
|
|
ReactNative.NativeModules.YH_CommonHelper.goLinkUrl(url);
|
|
|
}
|
|
|
|
|
|
_onPressTag(url) {
|
|
|
_onPressTag(value) {
|
|
|
|
|
|
let url = value.url;
|
|
|
let taggedUrl = urlAddParamOfType(url, '12')
|
|
|
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(taggedUrl);
|
|
|
|
|
|
let articleId = this.props.detail.get('articleId');
|
|
|
let params = {
|
|
|
ID: articleId,
|
|
|
LABEL_NAME: value.name,
|
|
|
};
|
|
|
NativeModules.YH_CommonHelper.logEvent('YB_STROLL_DETAIL_LABEL_C', params);
|
|
|
}
|
|
|
_onPressMoreLink(url) {
|
|
|
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
|
...
|
...
|
|