Authored by chenl

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

@@ -64,7 +64,7 @@ export default class NewArrivalMoreFilter extends React.Component { @@ -64,7 +64,7 @@ export default class NewArrivalMoreFilter extends React.Component {
64 <TouchableOpacity onPress={() => { 64 <TouchableOpacity onPress={() => {
65 let filters = this.state.filters; 65 let filters = this.state.filters;
66 let filter = this.state.filters[rowID]; 66 let filter = this.state.filters[rowID];
67 - this.props.onPressMoreFilter && this.props.onPressMoreFilter(filter.value); 67 + this.props.onPressMoreFilter && this.props.onPressMoreFilter(filter.value, filter.name);
68 }}> 68 }}>
69 <View key={'row' + rowID} style={styles.rowContainer}> 69 <View key={'row' + rowID} style={styles.rowContainer}>
70 <Text style={[styles.name, colorStyle]}>{rowData.name}</Text> 70 <Text style={[styles.name, colorStyle]}>{rowData.name}</Text>
@@ -128,12 +128,16 @@ class NewArrivalContainer extends Component { @@ -128,12 +128,16 @@ class NewArrivalContainer extends Component {
128 this.props.actions.resetListPageInfo(); 128 this.props.actions.resetListPageInfo();
129 this.props.actions.getProductList(true); 129 this.props.actions.getProductList(true);
130 } 130 }
131 - _onPressMoreFilter(value){ 131 + _onPressMoreFilter(value, name){
132 this.props.actions.setFilterMoreView(false); 132 this.props.actions.setFilterMoreView(false);
133 this.props.actions.resetListPageInfo(); 133 this.props.actions.resetListPageInfo();
134 this.props.actions.setProductListFilter(value); 134 this.props.actions.setProductListFilter(value);
135 this.props.actions.getProductList(true); 135 this.props.actions.getProductList(true);
136 136
  137 + if(name == '人气'){
  138 + ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_GOODS_LIST_HOT_TAB_C', {TYPE_ID: 3});
  139 + }
  140 +
137 } 141 }
138 _onPressCloseMoreFilter(){ 142 _onPressCloseMoreFilter(){
139 this.props.actions.setFilterMoreView(false); 143 this.props.actions.setFilterMoreView(false);