Authored by chenl

增加新品到着 人气tab切换的埋点。review by 孙凯。

... ... @@ -64,7 +64,7 @@ export default class NewArrivalMoreFilter extends React.Component {
<TouchableOpacity onPress={() => {
let filters = this.state.filters;
let filter = this.state.filters[rowID];
this.props.onPressMoreFilter && this.props.onPressMoreFilter(filter.value);
this.props.onPressMoreFilter && this.props.onPressMoreFilter(filter.value, filter.name);
}}>
<View key={'row' + rowID} style={styles.rowContainer}>
<Text style={[styles.name, colorStyle]}>{rowData.name}</Text>
... ...
... ... @@ -128,12 +128,16 @@ class NewArrivalContainer extends Component {
this.props.actions.resetListPageInfo();
this.props.actions.getProductList(true);
}
_onPressMoreFilter(value){
_onPressMoreFilter(value, name){
this.props.actions.setFilterMoreView(false);
this.props.actions.resetListPageInfo();
this.props.actions.setProductListFilter(value);
this.props.actions.getProductList(true);
if(name == '人气'){
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_GOODS_LIST_HOT_TAB_C', {TYPE_ID: 3});
}
}
_onPressCloseMoreFilter(){
this.props.actions.setFilterMoreView(false);
... ...