...
|
...
|
@@ -54,6 +54,7 @@ class InterestContainer extends Component { |
|
|
this._onPressInterestActivity = this._onPressInterestActivity.bind(this);
|
|
|
this._onPressInterestProduct = this._onPressInterestProduct.bind(this);
|
|
|
this._onInterestLogin = this._onInterestLogin.bind(this);
|
|
|
this._interestListTipRemove = this._interestListTipRemove.bind(this);
|
|
|
|
|
|
this.subscription = NativeAppEventEmitter.addListener(
|
|
|
'ChannelDidChangeEvent',
|
...
|
...
|
@@ -103,8 +104,12 @@ class InterestContainer extends Component { |
|
|
});
|
|
|
}
|
|
|
|
|
|
_onInterestLike(item, index) {
|
|
|
this.props.actions.addFavorite(item, index);
|
|
|
_onInterestLike(item, index, bliked = false) {
|
|
|
if (!bliked) {
|
|
|
this.props.actions.addFavorite(item, index);
|
|
|
} else {
|
|
|
NativeModules.YH_CommonHelper.jumpToBrand(item.toJS());
|
|
|
}
|
|
|
|
|
|
let params = {
|
|
|
CAT_NUM: index + 1 + '',
|
...
|
...
|
@@ -113,7 +118,11 @@ class InterestContainer extends Component { |
|
|
NativeModules.YH_CommonHelper.logEvent('YB_CATEGORY_BRAND_TAB_FAV', params);
|
|
|
}
|
|
|
|
|
|
_onPressInterestBrand(item, index) {
|
|
|
_interestListTipRemove() {
|
|
|
this.props.actions.interestListTipRemove();
|
|
|
}
|
|
|
|
|
|
_onPressInterestBrand(item, index) {
|
|
|
// let url = item.get('url', '');
|
|
|
NativeModules.YH_CommonHelper.jumpToBrand(item.toJS());
|
|
|
|
...
|
...
|
@@ -167,6 +176,7 @@ class InterestContainer extends Component { |
|
|
onPressProduct={this._onPressInterestProduct}
|
|
|
onPressActivity={this._onPressInterestActivity}
|
|
|
onInterestLogin={this._onInterestLogin}
|
|
|
interestListTipRemove={this._interestListTipRemove}
|
|
|
/>
|
|
|
</View>
|
|
|
);
|
...
|
...
|
|