...
|
...
|
@@ -54,7 +54,7 @@ class ListContainer extends Component { |
|
|
this._onPressShare = this._onPressShare.bind(this);
|
|
|
this._onPressLike = this._onPressLike.bind(this);
|
|
|
this._onPressHeader = this._onPressHeader.bind(this);
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
componentDidMount() {
|
...
|
...
|
@@ -63,11 +63,26 @@ class ListContainer extends Component { |
|
|
}
|
|
|
|
|
|
componentWillUnmount() {
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
_onPressCell(url) {
|
|
|
_onPressCell(url, index, article_id) {
|
|
|
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
|
|
|
|
|
|
let {list} = this.props;
|
|
|
let type = list.type;
|
|
|
let name = 'YB_STROLL_AUTHOR_FLR_C'
|
|
|
if (type == 'editor') {
|
|
|
name = 'YB_STROLL_AUTHOR_FLR_C'
|
|
|
} else {
|
|
|
name = 'YB_STROLL_TAG_FLR_C'
|
|
|
}
|
|
|
|
|
|
let params = {
|
|
|
CONTENT_INDEX: parseInt(index) + 1 + '',
|
|
|
CONTENT_ID: article_id,
|
|
|
};
|
|
|
NativeModules.YH_CommonHelper.logEvent(name, params);
|
|
|
}
|
|
|
|
|
|
_onPressHeader(url) {
|
...
|
...
|
@@ -87,6 +102,21 @@ class ListContainer extends Component { |
|
|
|
|
|
_onPressLike(article_id, isLike) {
|
|
|
this.props.actions.onPressLike(article_id, isLike);
|
|
|
|
|
|
let {list} = this.props;
|
|
|
let type = list.type;
|
|
|
let name = 'YB_STROLL_AUTHOR_LIKE_C'
|
|
|
if (type == 'editor') {
|
|
|
name = 'YB_STROLL_AUTHOR_LIKE_C'
|
|
|
} else {
|
|
|
name = 'YB_STROLL_TAG_LIKE_C'
|
|
|
}
|
|
|
|
|
|
let params = {
|
|
|
C_TYPE: isLike ? '1' : '2' ,
|
|
|
CONTENT_ID: article_id,
|
|
|
};
|
|
|
NativeModules.YH_CommonHelper.logEvent(name, params);
|
|
|
}
|
|
|
|
|
|
_onEndReached() {
|
...
|
...
|
|