Authored by lixia.zhang

逛页面数据曝光

@@ -101,9 +101,11 @@ export default class GoodsCell extends React.Component { @@ -101,9 +101,11 @@ export default class GoodsCell extends React.Component {
101 let prd_id = product.product_id; 101 let prd_id = product.product_id;
102 let isGlobal = product.is_global=='Y'?true:false; 102 let isGlobal = product.is_global=='Y'?true:false;
103 let is_limitbuy = product.is_limitbuy=='Y'?true:false; 103 let is_limitbuy = product.is_limitbuy=='Y'?true:false;
  104 + let yh_exposureData = this.props.yh_exposureData?this.props.yh_exposureData:null;
104 105
105 return ( 106 return (
106 <TouchableOpacity 107 <TouchableOpacity
  108 + yh_exposureData={yh_exposureData}
107 key={product_skn + '_key_' + i} 109 key={product_skn + '_key_' + i}
108 style={styles.content_View} 110 style={styles.content_View}
109 activeOpacity={0.5} 111 activeOpacity={0.5}
@@ -63,12 +63,12 @@ export default class GoodsGroupList extends React.Component { @@ -63,12 +63,12 @@ export default class GoodsGroupList extends React.Component {
63 if (!list || list.size == 0) { 63 if (!list || list.size == 0) {
64 return null; 64 return null;
65 } 65 }
66 -  
67 let backgroundWidth = width; 66 let backgroundWidth = width;
68 let backgroundHeight = 40 + Math.ceil(list.size / 2) * (rowHeight+rowMarginHorizontal) + 20; 67 let backgroundHeight = 40 + Math.ceil(list.size / 2) * (rowHeight+rowMarginHorizontal) + 20;
69 return( 68 return(
70 <View style={{width: backgroundWidth, height:backgroundHeight, backgroundColor:'white'}}> 69 <View style={{width: backgroundWidth, height:backgroundHeight, backgroundColor:'white'}}>
71 <ListView 70 <ListView
  71 + yh_viewVisible = {true}//自动曝光开关
72 contentContainerStyle={styles.contentContainer} 72 contentContainerStyle={styles.contentContainer}
73 initialListSize={Math.ceil(list.size)} 73 initialListSize={Math.ceil(list.size)}
74 dataSource={this.dataSource.cloneWithRows(list.toArray())} 74 dataSource={this.dataSource.cloneWithRows(list.toArray())}