Authored by lixia.zhang

逛页面数据曝光

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